![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
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:
Or using php (before the line that has the error): 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. |
![]() |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |