Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Plugins not compatible with PHP7?
eilko #1
Member since Feb 2012 · 22 posts
Group memberships: Members
Show profile · Link to this post
Subject: Plugins not compatible with PHP7?
I have installed PHP7 and although Dokuwiki seems to work fine, the logs are filling up with warnings. Plugins like change, tag, columns, googlefonts, metaheaders, etc. give a warning while being registered. Have this to be fixed  in every plugin?

AH01071: Got error 'PHP message: PHP Warning:  Declaration of action_plugin_changes::register($controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/changes/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_columns::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/columns/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_description::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/description/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_googlefonts::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/googlefonts/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_metaheaders::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/metaheaders/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_recaptcha2::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/recaptcha2/action.php on line 0\nPHP message: PHP Warning:  Declaration of action_plugin_tag::register(&$contr) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/eilko.nl/httpdocs/lib/plugins/tag/action.php on line 0\n', referer: https://www.eilko.nl/start
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4741 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Beginning (I think) with  PHP 5.4, E_STRICT is used for checking errors.  E_STRICT requires complete identity between the plugin's function declaration and its declaration in the parent class.  So, these warnings are appearing in many instances in php 7.0.  There may have been some latitude in 5.4 but not in 7.0.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
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: 2019-12-14, 08:22:19 (UTC +01:00)