Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Fatal Timezone Error Please Help (http://www.mysidiaadoptables.com/forum/showthread.php?t=4801)

FurryPinups 03-11-2015 04:47 PM

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

What does this even mean and how do I fix it? I don't remember a lot of the code or what to do or even the admin panel area since I've been away from it for so long. Any help is appreciated thank you. The website is http://www.pets.furrypinups.com

Kyttias 03-11-2015 05:47 PM

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:

date_default_timezone_set("America/New_York"); 

But I'm not sure where to actually set this at. The BEST thing to do would be to tell your hosting provider to please just set a time zone, any time zone, in their php.ini configuration file. It is a known error that has nothing to do with our script.

FurryPinups 03-12-2015 08:36 AM

Oh okay thank you so much ^_^ I'll see if that works.

Missy Master 07-20-2020 03:57 PM

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!

Missy Master 07-20-2020 03:59 PM

and if it asks for it again in class_members I think it is, insert it again for line 35 I believe!


All times are GMT -5. The time now is 11:51 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.