Dokuwiki notes

php 5.3 and dokuwiki-rc2009-12-02

After installing dokuwiki-rc2009-12-02 and upgrading to php 5.3.1 I got a few errors that I resolved as follows.

Blog plugin warning (in my home page)

Warning: call_user_func_array() expects parameter 2 to be array, null given in /web/htdocs/www.utillyty.eu/home/wiki/lib/plugins/blog/syntax/blog.php on line 184

original line:

call_user_func_array(array(&$renderer, $i[0]),$i[1]);

modified line:

call_user_func_array(array(&$renderer, $i[0]),$i[1]?$i[1]:array());

pageutils warnings

Warning: call_user_func_array() expects parameter 2 to be array, null given in /web/htdocs/www.utillyty.eu/home/wiki/inc/parserutils.php on line 426

Warning: call_user_func_array() expects parameter 2 to be array, null given in /web/htdocs/www.utillyty.eu/home/wiki/inc/parserutils.php on line 562

original lines:

call_user_func_array(array(&$renderer, $instruction[0]),$instruction[1]);

modified lines:

call_user_func_array(array(&$renderer, $instruction[0]), $instruction[1]?$instruction[1]:array());

NB: actually in 562 it was $Renderer (with a capital 'R') so I substituted it accordingly…


Navigation
Personal Tools