PDA

View Full Version : 4.2.2 upgrade with time errors and you have no access to php.ino what worked for me


adnedarn
10-10-2013, 04:57 PM
Hello all! I did this upgrade this morning and got stuff messed up. My dedicated server is "managed" so I have no access to the php.ini file to edit it. BUT this worked for me... create a new php.ini file and in it put your timezone setting like

date.timezone="America/New_York"

For my server putting it in /forums didn't work since it doesn't trickle down. So I put one in /includes and that seemed to clear everything up.

I didn't think those "warnings" were keeping me from the admin panel... but they were! Clear those with the above and you can get into your admincp.

Good luck!
Andrew


edit: I've forwarded that to vb support...

eboggs_jkvl
10-10-2013, 05:45 PM
I think an edit to config.php with that line would have fixed you also. Problem with that method is if they put in a new config.php with the next update then you'd be broken again. If the new php.ini worked in your /includes folder, that is fantastic as that file will not be overwritten in any vb updates and thus keep the "fix" permanently.

Great stuff!

Elmer

RedTurtle
10-10-2013, 05:49 PM
I think an edit to config.php with that line would have fixed you also. Problem with that method is if they put in a new config.php with the next update then you'd be broken again. If the new php.ini worked in your /includes folder, that is fantastic as that file will not be overwritten in any vb updates and thus keep the "fix" permanently.

Great stuff!

Elmer

The vBulletin software package doesn't actually include a config.php in it for this very reason. They don't want it to overwrite your existing file. The download only contains a config.php.new file which won't overwrite your existing configuration.

adnedarn
10-10-2013, 08:28 PM
For some reason, no matter any of the "fixes" I did in config.php didn't work.. no matter if it were to fix the problem as you show, or to hide it. *shrug*
Andrew

ForceHSS
10-10-2013, 08:47 PM
you need to put the fix in your php.ini file this is what I have in mine but yours will be different so you need to find the right info to put in there


[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "America/Los_Angeles"

; http://php.net/date.default-latitude
date.default_latitude = 34.3981

; http://php.net/date.default-longitude
date.default_longitude = 118.1358

; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333