Thread:Project:Support desk/Upgrade Wiki from 1.18 to 1.22.4 (2)/reply (6)

Two things:


 * Your above error looks like the file includes/GlobalFunctions.php has been changed on or around line 2300. This is the place where MediaWiki currently crashes. Core files should not be modified. Undo any changes you did.


 * It is enough to set $wgLocaltimezone once. Just remove all the lines you posted above.

Then set

$wgLocaltimezone = 'Asia/Jerusalem'; $wgLocalTZoffset = date("Z") / 60;

It is important to set $wgLocaltimezone first and then to use the date function. For a list of possible time zone identifiers see http://en.wikipedia.org/wiki/List_of_zoneinfo_time_zones