[dokuwiki] Re: warning message

  • From: Luis Machuca <ryan.chappelle@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 18 Aug 2018 22:54:34 -0300

El 08/08/18 a las 11:19, mark escribió:

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




Oooh. I'm the maintainer of the noiewarning plugin.

It has not been touched in a while, yes. And the errors that it is
causing is pretty much because of that: the code in the plugin is out of
sync with the programming and design of newer Dokuwiki versions.

I'll try to get a number of plugins upgraded... and hopefully their code
moved to version control somewhere, too, so that I can find out about
this stuff more easily.

Also, worth to note:

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

The purpose of the noiewarning plugin is not to remove warnings but to
*add* warnings; furthermore, the plugin has nothing to do with the
warnings generated by other plugins except for the fact that they all
seem to hail from the same general issue (code not in sync with newer DW
versions).

I'll try to report in the plugin's official wiki page as soon as I can
get everything upgraded and moved to version control. In the meantime,
simply making the required change by hand serves as the minimum patch path.

Cheers and thanks for notice.


-- 
----
Luis Machuca Bezzaza
Secretario Grupo de Usuarios de GNU/Linux de la IX Región
http://ryan.gulix.cl/
----
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: