Jump to content

Unable to load client statements ( WHMCS v9.0.3 )


Recommended Posts

Try to view a statement from the Client Summary tab or via Reports generates the following:

 

Error: Call to a member function lte() on bool in /home/redacted-1/public_html/modules/reports/client_statement.php:194
Stack trace:
#0 /home/redacted-1/public_html/redacted-2/reports.php(0): unknown()
#1 {main}

 

Is this a new bug?

 

Edited: The client statement works for clients that have not made payments prior to our upgrade to v 9.x.

Edited by Damo
Link to comment
Share on other sites

Hello,

It may be a new bug, but a good new is we can fix it as the report code is not encrypted.

Open the file 

/home/redacted-1/public_html/modules/reports/client_statement.php:

 

And then you will see a line 

$carbonDate = $entry['date'];  around the line 194,

just after that add the line 

 

if (!($carbonDate instanceof Carbon)) {
        continue;
   }

 

That should fix 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