Login Error Message
4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 4, 2010 (RSS)
By chrisl - March 1, 2010
Client reports that website is down and unable to login - getting following error:
Notice: date_default_timezone_set(): Timezone ID 'US/Pacific-New' is invalid in /home1/domain/public_html/cmsAdmin/lib/init.php on line 142
When I try to login into the admin area I get the same error. No work has been done on this site for some time. Any hints on this one?
Notice: date_default_timezone_set(): Timezone ID 'US/Pacific-New' is invalid in /home1/domain/public_html/cmsAdmin/lib/init.php on line 142
When I try to login into the admin area I get the same error. No work has been done on this site for some time. Any hints on this one?
cj
Re: [chrisl] Login Error Message
By Dave - March 1, 2010
Hi Chris,
Sounds like the web host may have upgraded PHP and broke something.
Try this:
- Edit /cmsAdmin/settings.dat.php
- Find this line: timezone = "US/Pacific-New"
- And change it to: timezone = "UTC"
- Once you get it working, update your timezone again under: Admin > General
Hope that helps! Let me know if that fixes it.
Sounds like the web host may have upgraded PHP and broke something.
Try this:
- Edit /cmsAdmin/settings.dat.php
- Find this line: timezone = "US/Pacific-New"
- And change it to: timezone = "UTC"
- Once you get it working, update your timezone again under: Admin > General
Hope that helps! Let me know if that fixes it.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Login Error Message
By chrisl - March 1, 2010
Hi
Yes got hold of server and sure enough they confirmed software upgrade - modified ../data/settings.dat and changed "timezone = "US/Pacific_new" to timezone = "US/Pacific" - corrected the problem.
All is well.
With thanks
Yes got hold of server and sure enough they confirmed software upgrade - modified ../data/settings.dat and changed "timezone = "US/Pacific_new" to timezone = "US/Pacific" - corrected the problem.
All is well.
With thanks
cj
Re: [chrisl] Login Error Message
By Dave - March 4, 2010
Thanks for the update on this. I'm glad to hear it's working.
I'm going to remove the "US/Pacific-New" timezone option from future versions. It's one of the timezones returned by PHP (and Unix), but it's related to a bill passed by the US House in April 1989 to move daylight savings time around on election years, but it was never signed into law.
So basically it's never used, or not meant to be, and as sysadmins update their systems to remove this supposably never used tiemzone it can break things if a user accidentally selected it.
That's one of the stranger bugs I've seen in a while! :)
Reference:
http://catless.ncl.ac.uk/Risks/13.87.html#subj1
I'm going to remove the "US/Pacific-New" timezone option from future versions. It's one of the timezones returned by PHP (and Unix), but it's related to a bill passed by the US House in April 1989 to move daylight savings time around on election years, but it was never signed into law.
So basically it's never used, or not meant to be, and as sysadmins update their systems to remove this supposably never used tiemzone it can break things if a user accidentally selected it.
That's one of the stranger bugs I've seen in a while! :)
Reference:
http://catless.ncl.ac.uk/Risks/13.87.html#subj1
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com