On 10/25/07, demagggus magggus@gmx.de wrote:
What about this error message? Can anybody tell me what's the problem?
"Warning: array_slice() [function.array-slice]: The first argument should be an array in D:\xampp\htdocs\mediawiki-1.11.0\languages\Language.php on line 1153"
I've just installed mediawiki-1.11.0 Seems this error message is linked to the "Extension:Hierarchy" (http://www.mediawiki.org/wiki/Extension:Hierarchy). As far as i don't include it, the message dissapears. I've seen, that this extension it's written for MW 1.8, 1.9. But maybe it's possible to solve this problem...
If the relevant variable is not an array, that would have caused a problem since the inception of magic words. Look at the very first version of that function and you'll see array_slice there as now:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Language.ph...
I don't know why an incorrect value is being created there, but it's certainly due to the extension somehow. There should be better error-handling in that code, which is to say, there should be some error-handling period beyond just logging an error.
If it doesn't seem to cause problems, though, I guess you can ignore it. It's just a warning.