Topic on Project:Support desk

Sudden PHP Parse error & PHP Fatal Error | MWDebug.php & GlobalFunction.php

8
Alejanic (talkcontribs)

Please help,

My wiki page (latest version) is suddenly white and the error log produces two errors:

[19-Apr-2015 22:58:58 America/Chicago] PHP Parse error: syntax error, unexpected '|' in /wiki/includes/debug/MWDebug.php on line 341 [19-Apr-2015 22:58:58 America/Chicago] PHP Fatal error: Class 'MWDebug' not found in /wiki/includes/GlobalFunctions.php on line 981

Prior to that the wiki has been running without a hitch the last error was over a month ago for the autodiscovery mechanism issue with skins (I resolved that)

I'm a total novice with PHP, so any insight would be greatly appreciated. The wiki is used for commercial purposes so it has put us at a stand-still.

Florianschmidtwelzow (talkcontribs)

What is the "latest version"? You should look at Special:Version for the version number.

Is this problem reproduceable?

Alejanic (talkcontribs)

I'm quite certain it is version 1.24.2, it was installed fresh a little over 2 months ago. I'm not sure what you mean by "Special:Version" The site is inaccessible. (Is there a file I can ftp to to find version?

wiki.floatpod.com

I'm not sure what you mean by reproduceable either... If I try to access it, the error_log.php will show those errors above.


Thank you so much.

88.130.99.71 (talkcontribs)

On April 8th you used version 1.24.1 (at least according to the Google cache).

The website currently only shows a blank page, meaning: Yes, the error most likely happens on each and every page hit.

209.234.212.2 (talkcontribs)

Any idea how to resolve this? Maybe try updating? (not even sure that's possible if the site is inaccessible)

88.130.123.4 (talkcontribs)

Yes, version 1.24.2 is available and upgrading might clear some PHP caches. It should not hurt and maybe it helps - give it a try!

209.234.212.2 (talkcontribs)

For someone that is really bad with PHP; what is the 'easiest' method from going from 1.24.1 to 1.24.2-- The upgrading post seems rather overwhelming.

Ciencia Al Poder (talkcontribs)

Upgrading from a minor release should be something as simple as taking a backup and unpack the new files over the old ones. If you were going to upgrade to a major release (1.24.x to 1.25.x for example) then you should unpack the new installation on a new empty directory and move other files needed on the new folder.

Reply to "Sudden PHP Parse error & PHP Fatal Error | MWDebug.php & GlobalFunction.php"