Topic on Project:Support desk

[RESOLVED] PHP errors when trying to upgrade

8
198.84.227.123 (talkcontribs)

I'm attempting to update our version of Mediawiki. I've been following the upgrade instructions and have uploaded all of the new files to the server. When I go to /mw-config/index.php, I see this error:

Fatal error: Access to undeclared static property: LanguageConverter::$languagesWithVariants in ..../public_html/help/includes/User.php on line 1369

I've searched all over and have not found any references to this error.

Any advice would be greatly appreciated.

198.84.227.123 (talkcontribs)

Mediawiki version: 1.23.3 PHP version: 5.4.30 MySQL version: 5.5.37-cll

Jackmcbarn (talkcontribs)

What version are you upgrading from?

209.167.40.12 (talkcontribs)

1.17.0

Jackmcbarn (talkcontribs)

Did you extract/upload the new files to a new directory and then move over only a few files, or did you extract/upload the new files right on top of the old installation? You should do the former.

198.84.227.123 (talkcontribs)

I backed up the images and extensions folders and the LocalSettings.php file then deleted the folder and installed fresh.

Jackmcbarn (talkcontribs)

Look at languages/LanguageConverter.php and make sure it includes $languagesWithVariants. It should be on line 36, exactly like the one you can see at .

209.167.40.12 (talkcontribs)

It didn't so I deleted everything again and reinstalled from a fresh download. Seems to have worked, thanks for the help.

Reply to "[RESOLVED] PHP errors when trying to upgrade"