Jump to content

Carbon\Carbon::createFromFormat('Y-m-d', NULL)


Recommended Posts

This error is thrown from a custom registar module in a freshly installed WHMCS instance running v7.10.2, on PHP 7.3.11

InvalidArgumentException: Data missing in /home/xxxxx/httpdocs/orders/vendor/nesbot/carbon/src/Carbon/Carbon.php:425
Stack trace:
#0 /home/xxxxx/httpdocs/orders/clientarea.php(0): Carbon\Carbon::createFromFormat('Y-m-d', NULL)
#1 {main}

Prior to the update, there were no errors and WHMCS could load the "clientarea.php?action=domaindetails" page tab properly (domain name and amount is masked for anonymity)  
And the other thing is that only some domains are having this error whereas others load just fine. 
What could be causing this issue?

As mentioned, this is a new install so there are no other hooks that can interfere with the clientarea.php output.

Screenshot 2020-05-21 at 4.23.48 PM.png

Link to comment
Share on other sites

5 hours ago, uzzikie said:

Prior to the update

from what version, v7.10.1 or a much earlier release ?

if it was v7.10.1, then there might be an issue with v7.10.2; if it was a much earlier v7 release, then possibly it's an issue with the custom registrar module.

Link to comment
Share on other sites

was running 7.7.1 - no error
upgraded to 7.9 - no error
but at 7.10 - clientarea.php started throwing this error.
So I'm not entirely convinced that the problem lies within the custom registrar module. 

The custom registrar module does not use Carbon.
And there are no errors in the module log.

From the error message, it seems like WHMCS is trying to format some date that has a NULL value. 
But beyond that, it's hard to debug what's wrong

 

Link to comment
Share on other sites

2 hours ago, uzzikie said:

was running 7.7.1 - no error
upgraded to 7.9 - no error
but at 7.10 - clientarea.php started throwing this error.
So I'm not entirely convinced that the problem lies within the custom registrar module. 

The custom registrar module does not use Carbon.
And there are no errors in the module log.

From the error message, it seems like WHMCS is trying to format some date that has a NULL value. 
But beyond that, it's hard to debug what's wrong

 

This is not an error I have seen previously reported, it seems like this may be due to invalid data somewhere in the system causing the problem.

I would suggest disabling any custom modules or hooks you have and confirming if the issue persists first.

If this doesn't resolve the issue please feel free to drop us a ticket and we can investigate and advise further.

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