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...
greets...demagggus
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.
But what about the message shown in the browser? To avoid this messages I need to turn off the warning-messages, and I think this wouldn't a very good idea?
On 10/26/07, demagggus magggus@gmx.de wrote:
But what about the message shown in the browser? To avoid this messages I need to turn off the warning-messages, and I think this wouldn't a very good idea?
Usually, on a production (non-testing) server, you want to have display_errors=0, so your users aren't puzzled by being told about minor internal errors that don't hurt them anyway. You should set a valid file for the PHP error log and check it periodically.
wikitech-l@lists.wikimedia.org