Differences

This shows you the differences between two versions of the page.

knowhow:dokuwiki [2009/12/06 12:30]
attilio pavone
knowhow:dokuwiki [2009/12/06 13:18] (current)
attilio pavone
Line 4: Line 4:
===== php 5.3 and dokuwiki-rc2009-12-02 ===== ===== 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:+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:
 +
 +<code>call_user_func_array(array(&$renderer, $i[0]),$i[1]);</code>
 +
 +modified line:
 +
 +<code>call_user_func_array(array(&$renderer, $i[0]),$i[1]?$i[1]:array());</code>
 +==== 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:
 +
 +<code>call_user_func_array(array(&$renderer, $instruction[0]),$instruction[1]);</code>
 +
 +modified lines:
 +
 +<code>call_user_func_array(array(&$renderer, $instruction[0]), $instruction[1]?$instruction[1]:array());</code>
 +
 +NB: actually in 562 it was $Renderer (with a capital 'R') so I substituted it accordingly...

Navigation
Personal Tools