Jump to content

Domain registration error


messir

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated