[dokuwiki] Re: warning message

  • From: mark <mc.prins@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 8 Aug 2018 17:19:34 +0200

On 08/08/18 16:58, Frank Thommen wrote:

Ciao Giuseppe,

On 08/08/2018 04:25 PM, Giuseppe Amatulli wrote:
Hi All
I maintain the following dokuwiki http://www.spatial-ecology.net/dokuwiki/doku.php

with the intention to eliminate several warning like this one

Warning: Declaration of syntax_plugin_bliki::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler)

I installed the noiewarning pluging and now the page is not visible anymore reporting the following errors

Warning: Declaration of action_plugin_noiewarning::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/capooti/webapps/spatialecology_wiki/lib/plugins/noiewarning/action.php on line 305

Fatal error: Declaration of action_plugin_noiewarning::render_text(&$event, $param) must be compatible with DokuWiki_PluginInterface::render_text($text, $format = 'xhtml') in /home/capooti/webapps/spatialecology_wiki/lib/plugins/noiewarning/action.php on line 305

Questions:

1) how i can go back to functional web dokuwiki web page?
2) how I can eliminate the warning that always recur in any pages and with different plugin?
I have been try to solve this problem from several months, by update plugins, all wiki,  but no one seams to work.

Could be something related with php? I have this version running.

PHP 5.6.37 (cli) (built: Jul 23 2018 08:04:37) Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies  with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com <http://ioncube24.com> (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.

Or should I set the warning log file differently? how?

Any one that can help me directly? happy to donate some $ :-)

Thank you
Best Regards
Giuseppe


Unfortunately I can't help, but would also be interested in fixing this.  "Our" error messages are very similar but not completely identical (nginx with fastcgi and PHP 7.1).  They might still be related to the same basic issue:

-----
2018/08/08 16:40:31 [error] 1456#0: *1741 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of *action_plugin_source:*:register(&$controller) should be compatible with
action_plugin_source is the problem, you would need to check your installed plugins for a class with this name, it may be in a file source.php or not.

you need to fix the function signature (replace "&$controller" with "Doku_Event_Handler $controller" and preferably get the maintainer of the plugin to apply your fix as well so everyone may benefit

-m


Other related posts: