Warning: array_slice() [function.array-slice]: The first argument should be an array in /opt/lampp/htdocs/mediawiki-1.11.0/languages/Language.php on line 1153
can somebody tell me, what's the reason for this warning-message? i didn't change anything in this file so far. i've just installed the hierarchy-extension. since this moment, this message occures...
greets demagggus
demagggus schreef:
Warning: array_slice() [function.array-slice]: The first argument should be an array in /opt/lampp/htdocs/mediawiki-1.11.0/languages/Language.php on line 1153
can somebody tell me, what's the reason for this warning-message? i didn't change anything in this file so far. i've just installed the hierarchy-extension. since this moment, this message occures...
Looking at Language.php:1153 and context, it's probably a bug in Hierachy, which should provide an array but doesn't.
Roan Kattouw (Catrope)
On Jan 21, 2008 6:37 AM, Roan Kattouw roan.kattouw@home.nl wrote:
Looking at Language.php:1153 and context, it's probably a bug in Hierachy, which should provide an array but doesn't.
This seems to be an annoyingly common error, evidently on the part of extension authors not using display_errors. Someone should figure out what behavior is appropriate there when given a bogus array (sanitizing the input, returning immediately, printing an appropriate error, or some combination thereof) and have the function do it, rather than proceed to try treating something as an array that isn't.
wikitech-l@lists.wikimedia.org