Jump to content

Carbon\Carbon::createFromFormat('l, F jS, Y', '25-01-2020')


Recommended Posts



when i open the page https://emailforward.mx/admin/transactions.php  or run a report https://emailforward.mx/admin/reports.php?report=pdf_batch , then execute report ; i get this error:



For additional assistance, please reference the WHMCS TroubleShooting Guide »

InvalidArgumentException: A textual day could not be found
Unexpected data found.
Unexpected data found. in /var/www/clients/client1/web1/web/vendor/nesbot/carbon/src/Carbon/Carbon.php:425
Stack trace:
#0 /web/vendor/whmcs/whmcs-foundation/lib/Carbon.php(0): Carbon\Carbon::createFromFormat('l, F jS, Y', '25-01-2020')
#1 /web/admin/transactions.php(0): WHMCS\Carbon::parseDateRangeValue(Array)
#2 {main}


can you please help?

Link to comment
Share on other sites

It looks like the date 25-01-2020 from the transaction data in the database is trying to be parsed into a Carbon object but it's looking for a date format such as " Mon, Jan 25th, 2020" instead. Unfortunately I'm not sure why that's happening; hopefully someone with more knowledge than me will reply.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

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

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