Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2015, 04:47 PM
FurryPinups FurryPinups is offline
Member
 
Join Date: Apr 2014
Posts: 3
Gender: Female
Credits: 1,276
FurryPinups is on a distinguished road
Unhappy 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
Reply With Quote
  #2  
Old 03-11-2015, 05:47 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 110,162
Kyttias is on a distinguished road
Default

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.
__________________
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.
Reply With Quote
  #3  
Old 03-12-2015, 08:36 AM
FurryPinups FurryPinups is offline
Member
 
Join Date: Apr 2014
Posts: 3
Gender: Female
Credits: 1,276
FurryPinups is on a distinguished road
Default

Oh okay thank you so much ^_^ I'll see if that works.
Reply With Quote
  #4  
Old 07-20-2020, 03:57 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 63,958
Missy Master is an unknown quantity at this point
Default

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.
Reply With Quote
  #5  
Old 07-20-2020, 03:59 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 63,958
Missy Master is an unknown quantity at this point
Default

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

Tags
timezone issue


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 05:46 AM.

Currently Active Users: 887 (0 members and 887 guests)
Threads: 4,081, Posts: 32,029, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636