Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Errors after switching to PHP 7.2.8
Avatar
retemirabile #1
Member since Sep 2011 · 63 posts
Group memberships: Members
Show profile · Link to this post
Subject: Errors after switching to PHP 7.2.8
Hi,
until recently, my DokuWiki was running under PHP 5.6.x – after I’d realised that I switched to 7.2.8. Now, on a page with a bureaucracy form on it, I get this error message when the page loads.


By the way, the display is indeed as strange as the copy-pasted code below suggests (see screenshot below).



Warning: Declaration of helper_plugin_bureaucracy_fieldhiddenautoinc::renderfield(
p
a
r
a
m
s
,
D
o
k
u
F
o
r
m
form) should be compatible with helper_plugin_bureaucracy_field::renderfield(
p
a
r
a
m
s
,
D
o
k
u
F
o
r
m
form, $formid) in /home/www/intern/lib/plugins/bureaucracy/helper/fieldhiddenautoinc.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/www/intern/lib/plugins/bureaucracy/helper/fieldhiddenautoinc.php:7) in /home/www/intern/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /home/www/intern/lib/plugins/bureaucracy/helper/fieldhiddenautoinc.php:7) in /home/www/intern/lib/tpl/bootstrap3/main.php on line 13


[Image: https://download.kalt.name/Bildschirmfoto-2018-09-05-um-21.34.55/Bildschirmfoto-2018-09-05-um-21.34.55.png]

Thanks for any ideas on how to solve this.

Andreas
This post was edited on 2018-09-05, 21:37 by retemirabile.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4293 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
The warnings about function declarations have been common with plugins that are not php 7 compatible.  See for instance:
https://forum.dokuwiki.org/post/61581
https://forum.dokuwiki.org/post/61582
https://forum.dokuwiki.org/post/61111
Normally, these are only warnings and do not have an effect on the output.  It seems that you asked about this earlier.  Re-visit the answers t here:  https://forum.dokuwiki.org/thread/15046



The headers problem usually means that one of the php files is outputting blank lines from the top of a script.  If you have just upgraded the bootstrap template, this might be the source of that problem .  Try switching to the dokuwiki template and see if the problem persists.  If so, then the problem is in the  plugin and should be reported to the plugin's issues page
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
retemirabile #3
Member since Sep 2011 · 63 posts
Group memberships: Members
Show profile · Link to this post
Thanks – I thought since the bureaucracy plugin is maintained by Andi Gohr that it couldn’t be the problem with PHP 7. But it seems it is.
Avatar
andi (Administrator) #4
User title: splitbrain
Member since May 2006 · 3330 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Please see https://www.patreon.com/posts/declaration-be-20638123
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-09-23, 14:34:48 (UTC +02:00)