messir Posted January 15, 2017 Share Posted January 15, 2017 Hi All. Start get error when press from user on domain in account. 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 /var/www/tongohost/data/www/tongohost.com/includes/classes/WHMCS/Domains.php:0 Stack trace: #0 /var/www/tongohost/data/www/tongohost.com/includes/classes/WHMCS/Domains.php(0): DateTime->__construct() #1 /var/www/tongohost/data/www/tongohost.com/clientarea.php(0): WHMCS\Domains::getRenewableDomains() #2 {main} Next 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 in /var/www/tongohost/data/www/tongohost.com/includes/classes/WHMCS/Terminus.php on line 0 Thanks for any help 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 16, 2017 Share Posted January 16, 2017 https://forum.whmcs.com/showthread.php?102887-My-Domains-Issue&p=426610#post426610 Please try setting a timezone in your php.ini: http://docs.whmcs.com/Changing_Timezone 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 16, 2017 Share Posted January 16, 2017 Rather than change server configuration for a simple application (rather excessive), use date_defaukt_timezone_set (http://php.net/manual/en/function.date-default-timezone-set.php) In your configuration.php file, add date_defaukt_timezone_set('America/Chicago'); Or another valid time zone. This has the added benefit of sticking with the WHMCS install whempn/if you move it 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 16, 2017 Share Posted January 16, 2017 that's true. https://forum.whmcs.com/showthread.php?95954-How-to-change-WHMCS-timezone&p=402179#post402179 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.