Jump to content

My Domains - Issue


tmr

Recommended Posts

Fresh install of WHMCS, not live.

 

With no orders this works fine.

First order placed "My Domains" now displays this error below

 

I've set timezone in php.ini but frankly I don't think that's the issue?

If I delete the order, issue goes away.

 

Any help much appreciated

 

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

If the problem persists, please contact us.

« Back to Homepage

For additional assistance, please reference the WHMCS TroubleShooting Guide »

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 /home/domain/public_html/register/vendor/whmcs/whmcs-foundation/lib/Domains.php:0
Stack trace:
#0 /home/admin/public_html/register/vendor/whmcs/whmcs-foundation/lib/Domains.php(0): DateTime->__construct()
#1 /home/admin/public_html/register/clientarea.php(0): WHMCS\Domains::getRenewableDomains()
#2 {main}

Link to comment
Share on other sites

Hey @tmr

It sounds like your timezones are causing an issue 

The steps at https://docs.whmcs.com/Changing_Timezone should help specifically creating a custom php.ini and entering your Timezone

Changing the server clock may not be desirable if clients are hosted on the server and would require root access, so option 2 is the most viable for the majority of users. A number of hosting providers allow the PHP configuration to be changed on an individual directory by creating a php.ini file within the WHMCS directory. In that situation the following line could be added:

date.timezone=Europe/London

For a full list of the available timezone localities you can use, please refer to http://www.php.net/manual/en/timezones.php

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