Jump to content

Account statements don't load


Recommended Posts

On customers profile when clicking account statements we started to get this error on new version, any ideas?

Oops!

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

Please go back to the previous page and try again.

For additional assistance, please reference the WHMCS TroubleShooting Guide »

Error: Call to a member function lte() on bool in /home/my/domains/my.domain.com/public_html/modules/reports/client_statement.php:169
Stack trace:
#0 /home/my/domains/my.domain.com/public_html/admin/reports.php(0): unknown()
#1 {main}

Edited by sahostking
Link to comment
Share on other sites

The issue is on line 169. File is open so you can debug easy

if ($carbonDate->lte($dateto)) {
   $balance += ($entry['credits'] - $entry['debits']);
}

$dateto is the date you set for the report filter.

Edited by pRieStaKos
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @sakamhosting,

I'm not able to replicate this error in my stock 8.13.1 install.

  1. Can you share a small screencast or step-by-step instructions to replicate on your instance?
  2. Does it affect certain clients or every one?
  3. What version of PHP are you using?
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