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 11-14-2020, 08:22 PM
Gliderluv68 Gliderluv68 is offline
Member
 
Join Date: Sep 2020
Posts: 4
Gender: Female
Credits: 1,490
Gliderluv68 is on a distinguished road
Default

i set my php to 5.6 and this is the new error

[15-Nov-2020 02:18:18 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /home2/sugargli/public_html/adoptables/classes/class_visitor.php:14
Stack trace:
#0 /home2/sugargli/public_html/adoptables/classes/class_visitor.php(14): DateTime->__construct()
#1 /home2/sugargli/public_html/adoptables/classes/class_visitorcreator.php(34): Visitor->__construct('192.82.10.18')
#2 /home2/sugargli/public_html/adoptables/classes/class_visitorcreator.php(20): VisitorCreator->create_guest()
#3 /home2/sugargli/public_html/adoptables/classes/class_mysidia.php(273): VisitorCreator->create()
#4 /home2/sugargli/public_html/adoptables/classes/class_mysidia.ph in /home2/sugargli/public_html/adoptables/classes/class_visitor.php on line 14
Reply With Quote
  #2  
Old 11-14-2020, 10:50 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 137,016
Kyttias is on a distinguished road
Default

According to my brief google search, it sounds like your PHP installation does not have a default timezone set, which is highly unsual.

You need to set the time zone, either using php.ini (which you may need to ask customer support to do for you if you don't have access to edit that yourself) or with the php function date_default_timezone_set() in the file where the error is happening.

Via php.ini (this will fix it everywhere):

PHP Code:
[Date]
Defines the default timezone used by the date functions
http://php.net/date.timezone
date.timezone Europe/London 

Or using php (before the line that has the error):
PHP Code:
date_default_timezone_set("Europe/London"); 
For a list of example timezones, https://secure.php.net/manual/en/timezones.php has the list of supported timezones in php. (Click a content, and then paste in a value found on one of these pages.)
__________________
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
Reply

Thread Tools
Display Modes

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


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

Currently Active Users: 2778 (0 members and 2778 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636