Topic on Project:Support desk

Unsupported operand types

2
178.132.31.226 (talkcontribs)

hello everyone !

i wanted to try something with my mediawiki, i wanted to put my 1.24 install (future production, functioning properly) on the same DB with the 1.19 install (production) then, comes the problems :D :'(

My 1.19 install doesn t work anymore, i m getting those errors :

Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/LocalisationCache.php on line 362
Warning: Invalid argument supplied for foreach() in /usr/share/mediawiki/includes/LocalisationCache.php on line 422
Fatal error: Unsupported operand types in /usr/share/mediawiki/languages/Language.php on line 345

i really don t know where to start to solve it, anyone got those errors before ?

thank you in advance

Florianschmidtwelzow (talkcontribs)

Just a guess: You haven't set $wgCacheDirectory to true in your LocalSettings.php and haven't set $wgLocalisationCacheConf, too? In this case, mediawiki's interface messages are saved to the database.

Now another guess: Maybe (i don't know, sorry) the database schema (or the values stored in the same schema) changed from 1.19 to 1.24, so your new install saves some data, which can't be handled by MW 1.19 anymore. It's never a good idea to have one database for several wikis with different versions (in case you haven't different prefixes). I suggest you rollback to your backup and setup MediaWiki 1.24 to a new copy of your database, run the installer to update the database schema and use the new wiki from now :)

Remember that MediaWiki 1.24 is already outdated. The newest MediaWiki version is 1.24.2 and can be downloaded from here.

Reply to "Unsupported operand types"