|
Joined: Nov 2004
Posts: 198
Member
|
Member
Joined: Nov 2004
Posts: 198 |
I've copied the files as I always have, and when I run install/upgrade.php I get the following: Fatal error: Call to undefined function: date_default_timezone_set() in C:\inetpub\vhosts\game-master.net\httpdocs\pit\libs\ubbthreads.inc.php on line 33 try it yourself: http://www.game-master.net/pit/install/upgrade.phpI'm upgrading Version: 7.5.7 to the latest version 7.5.9 please help. I've never had a problem upgrading UBB in the many years I have been using it.
Member since November 2004 Gold Member since Feb 2008
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
As of UBB.threads 7.5.8, your server will need to be running at least PHP version 5.1.2+ (Released November 2005) -- From PHP 5.1.2+; The "date_default_timezone_set" function started to validate the timezone parameter. in PHP 5.1/5.2, you will get an error in the server logs if the setting is not set. -- From PHP 5.3+; The "date_default_timezone_set" function throws an E_WARNING instead of E_STRICT. In PHP 5.3, you will only get a warning if this variable is not set within your php.ini file. The PHP function "date_default_timezone_set" is set within your server's php.ini file. Most modern web servers are running at least PHP 5.3 (Released June 2009), with the most common version being either PHP 5.5 or PHP 5.6. UBBCentral runs PHP v5.3 My UBB.threads sites are on PHP 5.6 Further reading on server requirements: https://www.ubbwiki.com/article/view/27/server-requirements-and-suggestions.htmland https://www.ubbwiki.com/archive/view/43/ubb-threads-v7-6-0-system-requirement-test-20151204.htmlNOTE: UBB.threads 7.5.x does not support PHP v7
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
WARNING: There may be other issues in running the current version of UBB.Threads on an outdated version of PHP
If you just wanted to get around the error and get your site back up & running right now:
in libs/ubbthreads.php FIND
date_default_timezone_set(@date_default_timezone_get()); REPLACE WITH:
date_default_timezone_set("UTC");
If you know what state your server is located in, and you wanted to manually set it as such, you could replace UTC with that server timezone code. The common USA time zone codes are: PST - Pacific Standard Time MST - Mountain Standard Time CST - Central Standard Time EST - Eastern Standard Time
https://simple.wikipedia.org/wiki/List_of_U.S._states_by_time_zone
Lol, Ignore all that. UBB.Threads 7.5.8+ still needs the bare minimum of PHP 5.1 with the recommendation being at least PHP 5.3+
Last edited by id242; 02/22/2016 12:32 AM.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
The UBBWiki entry " Server Requirements and Suggestions" has been updated; I'll have to put a couple of checks in the test script.
|
|
|
|
Joined: Nov 2004
Posts: 198
Member
|
Member
Joined: Nov 2004
Posts: 198 |
Okay, thanks guys. I went into Plesk and selected PHP 5.2.13 and now I get a login screen. But I cannot login. It's the same user name/password I have been using for years. It just takes my username / password, and reloads the screen - no error.scratch that, tried another admin login and got in
Last edited by luket; 02/22/2016 1:58 PM.
Member since November 2004 Gold Member since Feb 2008
|
|
|
|
Joined: Nov 2004
Posts: 198
Member
|
Member
Joined: Nov 2004
Posts: 198 |
Okay, making progress, but now I get this error:
The following files are reporting a wrong version # (Make sure you updated these files) styles/admin.css styles/common.css styles/common.css styles/admin.css
The installation instructions say not to replace these files, right?
How to fix?
Last edited by luket; 02/22/2016 2:02 PM.
Member since November 2004 Gold Member since Feb 2008
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
You have duplicated your lines. But yes, the two files do need to be the current versions.
styles/common.css styles/admin.css
How to fix? Copy those two files from the "styles" directory of the installer package, to the "styles" directory of your forum.
Basically: Make sure you updated these files
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
ONLY upload those two files; NEVER overwrite the wrappers file.
|
|
|
|
Joined: Nov 2004
Posts: 198
Member
|
Member
Joined: Nov 2004
Posts: 198 |
Okay,
All is well and we are back online.
Thanks guys for the help.
Member since November 2004 Gold Member since Feb 2008
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Also, be sure that you remove the install/ directory after you've completed your upgrade.
Additionally, PHP5.6 has better performance than earlier builds of PHP5, if you have the option.
|
|
|
|
Joined: Nov 2004
Posts: 198
Member
|
Member
Joined: Nov 2004
Posts: 198 |
got it thanks
Member since November 2004 Gold Member since Feb 2008
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
2 members (DennyP, 1 invisible),
972
guests, and
155
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|