Jump to content

Recommended Posts

When I tried to do a test checkout I realized that I cant continue. I get an error about invalid tax percentage, but I don't even have tax setup. I am using WHMCS 7.4.2

I get the error no matter what payment gateway, and I have tried a fresh install of the checkout.tpl file and a bunch of other files that is included on multiple pages such as common and the sidebars.

When I enable error reporting, I get the following stack trace:


WHMCS\Exception\Billing\BillingException: Invalid tax percentage: in /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php:0
Stack trace:
#0 /home/myuser/public_html/vendor/whmcs/whmcs-foundation/lib/Billing/Tax.php(0): WHMCS\Billing\Tax->validateTaxPercentage(NULL)
#1 /home/myuser/public_html/includes/invoicefunctions.php(0): WHMCS\Billing\Tax->setLevel1Percentage(NULL)
#2 /home/myuser/public_html/includes/processinvoices.php(0): updateInvoiceTotal(0)
#3 /home/myuser/public_html/includes/processinvoices.php(0): createInvoicesProcess(false, true, '')
#4 /home/myuser/public_html/includes/orderfunctions.php(0): createInvoices(1, true, '', Array)
#5 /home/myuser/public_html/cart.php(0): calcCartTotals(true)
#6 {main}

Link to comment
Share on other sites

17 hours ago, hanstavo said:

I didn't reinstall the templates though. or hooks although I did remove hooks to see if it was in a hook....It wasn't!

you haven't said whether you're using a custom template and/or orderform templates - if you haven't already, you should test this with clean, unaltered versions of both Six and Standard Cart for your WHMCS version.

any addons installed that could be contributing to this ?

this might be one for you to open a ticket with Support and let them have a closer look at your setup - it could be any number of things causing this, but you've already seemingly ruled out some of the more obvious ones... you've already started two threads on this, but they will need to see what you're seeing before anyone can help!

Link to comment
Share on other sites

5 hours ago, brian! said:

you haven't said whether you're using a custom template and/or orderform templates - if you haven't already, you should test this with clean, unaltered versions of both Six and Standard Cart for your WHMCS version.

any addons installed that could be contributing to this ?

this might be one for you to open a ticket with Support and let them have a closer look at your setup - it could be any number of things causing this, but you've already seemingly ruled out some of the more obvious ones... you've already started two threads on this, but they will need to see what you're seeing before anyone can help!

Sorry I forgot to include that. I am not using any new modules that is mew since it was working. I am using a modified version of standard cart. And a customized template I got from the whmcs marketplace (supreme host) by zomex. Thank you for your reply.

Link to comment
Share on other sites

  • WHMCS Technical Analyst
11 hours ago, hanstavo said:

Sorry I forgot to include that. I am not using any new modules that is mew since it was working. I am using a modified version of standard cart. And a customized template I got from the whmcs marketplace (supreme host) by zomex. Thank you for your reply.

In that case, can you switch to the default templates (Standard Cart and Six) and see if the issue persists? 

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.

×
×
  • 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