Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (M4TT, mmkk), 65 guests, and 268 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
isaac
isaac
California
Posts: 1,004
Joined: April 2004
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 15
FREAK 11
M4TT 10
Ruben 5
mmkk 5
isaac 4
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Unable to run the install/upgrade.php - fatal error #258068
02/21/16 10:24 PM
02/21/16 10:24 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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.php

I'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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258069
02/21/16 11:00 PM
02/21/16 11:00 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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.html
and
https://www.ubbwiki.com/archive/view/43/ubb-threads-v7-6-0-system-requirement-test-20151204.html


NOTE: UBB.threads 7.5.x does not support PHP v7

Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258070
02/21/16 11:24 PM
02/21/16 11:24 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California

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
Code
date_default_timezone_set(@date_default_timezone_get());


REPLACE WITH:
Code
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/21/16 11:32 PM.
Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258071
02/22/16 12:09 AM
02/22/16 12:09 AM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
The UBBWiki entry "Server Requirements and Suggestions" has been updated; I'll have to put a couple of checks in the test script.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Unable to run the install/upgrade.php - fatal error [Re: Gizmo] #258072
02/22/16 12:46 PM
02/22/16 12:46 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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 smile

Last edited by luket; 02/22/16 12:58 PM.

Member since November 2004
Gold Member since Feb 2008
Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258073
02/22/16 12:58 PM
02/22/16 12:58 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
https://www.ubbcentral.com/forums/ub...n-issue-windows-10-using-edge#Post257474

also, if you cannot update to the current php 5.6, you should look in to upgrading to at least the minimum of php 5.3. for performance and security reasons.

Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258074
02/22/16 01:01 PM
02/22/16 01:01 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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/16 01:02 PM.

Member since November 2004
Gold Member since Feb 2008
Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258075
02/22/16 01:42 PM
02/22/16 01:42 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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

Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258076
02/22/16 01:44 PM
02/22/16 01:44 PM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
ONLY upload those two files; NEVER overwrite the wrappers file.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Unable to run the install/upgrade.php - fatal error [Re: Gizmo] #258077
02/22/16 01:57 PM
02/22/16 01:57 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
Okay,

All is well and we are back online.

Thanks guys for the help.


Member since November 2004
Gold Member since Feb 2008
Re: Unable to run the install/upgrade.php - fatal error [Re: luket] #258078
02/22/16 02:23 PM
02/22/16 02:23 PM
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,785
Portland, OR; USA
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Unable to run the install/upgrade.php - fatal error [Re: Gizmo] #258079
02/22/16 05:15 PM
02/22/16 05:15 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
got it thanks smile


Member since November 2004
Gold Member since Feb 2008

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
I want to update forum but can't find license
by dimaninc. 11/23/17 10:51 AM
Forum Statistics
Forums36
Topics35,014
Posts190,533
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)