Author Topic: [1.7.8] Support for PHP4  (Read 15098 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[1.7.8] Support for PHP4
« on: September 17, 2010, 02:52:04 PM »
If after upgrade or fresh installation you are getting white page or error message:
Quote
Fatal error: call to undefined function: date_default_timezone_set() in ...

The fix is the following:

In includes/functions.php find:
?>

Insert above :above::
if (!function_exists("date_default_timezone_set"))
{
  function 
date_default_timezone_set($timezone)
  {
    return 
true;
  }
}


Then open config.php if you find a line with date_default_timezone_set then insert above :above::
if (function_exists("date_default_timezone_set"))
« Last Edit: September 21, 2010, 03:44:29 PM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)