[pmwiki-users] database integration with PmWiki

Piotr A. Dybczyński piotr at dybczynski.pl
Mon Nov 27 14:51:25 CST 2017

Hi Hans,

> > I had to move my PmWiki server to a temporary place and it appeared,
> > that database cookbooks (Update Form and SelectQuerry) do not work
> > under PHP7.  
> it appears that both recipes had recently updated versions added,
> which are PHP 7.2 compatible. Will those recipe versions solve your
> problems?

Unfortunately no. Both upgrades are results of my summer request for help,
but both recipes do not work. Example:

Wiki page reads:
(:update form table=kom_ident

||! Oznaczenie:||(:update hidden kom_id:)(:update text kom_desig:)||
||! Nazwa:||(:update text kom_name:) ||
||! Nazwa wewn.:||(:update text kom_internal size=6:) ||
||! Wiki Page:||(:update text kom_wiki_page size=90:) ||
||! Etykiety:||Paper 1(:update checkbox kom_p1
value=1:)   Paper 2(:update checkbox kom_p2
value=1:)   Paper 3(:update checkbox kom_p3 value=1:)   NG(:update checkbox kom_NG value=1:)   Jupiter encounter(:update checkbox kom_Jupiter_enc value=1:)   Splitting comet(:update checkbox kom_splitt value=1:)||

(:update submit value="Zapisz zmiany":) %red%'''Ostrożnie! Modyfikujesz
rekord bazy!'''%%
(:update end:)

and after including updateform.php recipe it produces blank page. But
after enabling diagnostics it generates:

Fatal error: Uncaught Error: Call to a member function fetch() on boolean
in /home/dybol/WikiPAD/pmwiki/cookbook/updateform7.php:208 Stack trace: #0
[internal function]: UpdateMarkup(Array)
#1 /home/dybol/WikiPAD/pmwiki/pmwiki.php(1757):
preg_replace_callback('/\\(:update\\s+(\\...', 'UpdateMarkup', '(:title
Baza: p...') #2 /home/dybol/WikiPAD/pmwiki/pmwiki.php(1927):
MarkupToHTML('Wikicomet.BazaU...', '(:title Baza: p...')
#3 /home/dybol/WikiPAD/pmwiki/pmwiki.php(1838):
SaveAttributes('Wikicomet.BazaU...', Array, Array)
#4 /home/dybol/WikiPAD/pmwiki/pmwiki.php(2036):
UpdatePage('Wikicomet.BazaU...', Array, Array)
#5 /home/dybol/WikiPAD/pmwiki/pmwiki.php(401):
HandleEdit('Wikicomet.BazaU...', 'edit')
#6 /home/dybol/WikiPAD/pmwiki/pmwiki.php(388):
HandleDispatch('Wikicomet.BazaU...', 'edit') #7 {main} thrown
in /home/dybol/WikiPAD/pmwiki/cookbook/updateform7.php on line 208


I am in off-list contact with Ben Stallings. He send me today an alpha
version of the SelectQuerry recipe but it do not work. He promised next

All the best,
                          dr Piotr A. Dybczyński 
 homepage: http://www.dybczynski.pl/Piotr      e-mail: piotr at dybczynski.pl

__________ Information from ESET Mail Security, version of virus signature database 16480 (20171127) __________

The message was checked by ESET Mail Security.

More information about the pmwiki-users mailing list