Jump to content

Error opening old invoice


Recommended Posts

Hello

We are having problems when trying to see an old invoice.

Errors:

Error: Call to a member function isRecurring() on null in vendor/whmcs/whmcs-foundation/lib/Billing/Invoice.php:0
Stack trace:
#0 /whmcs-foundation/lib/Invoice.php(0): WHMCS\Billing\Invoice->cart()
#1 /whmcs/includes/gatewayfunctions.php(0): WHMCS\Invoice->getGatewayInvoiceParams()
#2 whmcs/admin/invoices.php(0): getGatewayVariables('paypal', 22960)
#3 {main}

This was not happening with previous WHMCS versions. Any idea how to solve this issue? Thanks!

Link to comment
Share on other sites

I am running 7.10.2 and still have this issue but with authorize:

ERROR: Error: Call to a member function isRecurring() on null in vendor/whmcs/whmcs-foundation/lib/Billing/Invoice.php:0 Stack trace:
 #0 /home/billingfiresidea/public_html/vendor/whmcs/whmcs-foundation/lib/Invoice.php(0): WHMCS\Billing\Invoice->cart()
 #1 /home/billingfiresidea/public_html/includes/gatewayfunctions.php(0): WHMCS\Invoice->getGatewayInvoiceParams()
 #2 /home/billingfiresidea/public_html/admin/invoices.php(0): getGatewayVariables('authorize', 6678)
 #3 {main}

 

Link to comment
Share on other sites

  • 1 month later...

I'm having the same issue I have installed the plug-in and has fixed a few of the invoices but not all of them

Believe it or not I opened 1300 old invoices only 2 of them have errors the 2 that have errors are active.

Oops!

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

Please go back to the previous page and try again.

Error: Call to a member function getSensitiveDataAttributeName() on null in /home/signup/public_html/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php:0
Stack trace:
#0 /home/signup/public_html/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileHtml(Object(WHMCS\User\Client), 'client-paymetho...')
#1 /home/signup/public_html/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileSummaryHtmlTableRows(Object(WHMCS\User\Client))
#2 /home/signup/public_html/admin/clientssummary.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileSummaryHtml(Object(WHMCS\User\Client))
#3 {main}

 

 

Link to comment
Share on other sites

  • 6 months later...
  • WHMCS Support Manager

Hi all,

This has been observed when a previous after-market payment gateway has been deleted without first being deactivated via the Manage Existing Gateways page. As a result the affect clients have records related to the module, but when the system tries to load that module it is not found.  Re-uploading the gateway module files and then deactivating it will resolve this: https://docs.whmcs.com/Payment_Gateways#Deactivating_Gateway_Modules

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