Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Fatal Timezone Error Please Help
Hey all,
I installed Mysidia Adoptables last year and got it working well but went away for other projects in the past 8 months and haven't touched it. I decided to pick it back up and when I went to visit the website it gave me this error. Code:
Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in Unknown on line 0 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead' in /home1/rad/public_html/pets/classes/class_visitor.php:14 Stack trace: #0 /home1/rad/public_html/pets/classes/class_visitor.php(14): DateTime->__construct() #1 /home1/rad/public_html/pets/classes/class_visitorcreator.php(34): Visitor->__construct('69.15.120.194') #2 /home1/rad/public_html/pets/classes/class_visitorcreator.php(20): VisitorCreator->create_guest() #3 /home1/rad/public_html/pets/classes/class_mysidia.php(273): VisitorCreator->create() #4 /home1/rad/public_html/pets/classes/class_mysidia.php(168): Mysidia->getCurrentUser() #5 /home1/ in /home1/rad/public_html/pets/classes/class_visitor.php on line 14 |
#2
|
||||
|
||||
I think your hosting provider made some changes in the last eight months - sounds to me like they updated their PHP version, but failed to set a timezone in their configuration.
This can be fixed by setting a timezone yourself in your files, using date_default_timezone_set() - you can browse through timezones here. An example would be PHP Code:
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
|||
|
|||
Oh okay thank you so much ^_^ I'll see if that works.
|
#4
|
||||
|
||||
late to the show but you can actually insert that code like this:
date_default_timezone_set("America/New_York"); $time = new DateTime(); $this->lastactivity = $time->getTimestamp(); $this->isloggedin = UserCreator::logincheck(); Didn't expect it to work! Last edited by Missy Master; 07-20-2020 at 03:59 PM. |
#5
|
||||
|
||||
and if it asks for it again in class_members I think it is, insert it again for line 35 I believe!
|
Tags |
timezone issue |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fatal Error with Myadopts page | Abronsyth | Questions and Supports | 2 | 12-29-2014 03:54 PM |
Fatal error: nesting level too deep | Skaiya | Questions and Supports | 2 | 03-30-2014 02:43 PM |
Shop Appearing As Fatal Error | Hwona | Questions and Supports | 6 | 09-09-2013 06:03 PM |
ACP Error : Fatal error: Class 'AppController' not found in... | Isura | Questions and Supports | 39 | 06-17-2013 02:26 AM |
Fatal Error... | Tequila | Questions and Supports | 15 | 11-15-2011 01:16 PM |
What's New? |
What's Hot? |
What's Popular? |