hanstavo Posted October 29, 2018 Share Posted October 29, 2018 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} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 30, 2018 Share Posted October 30, 2018 @hanstavo could you please try deleting and readding a fresh copy of the /vendor folder to see if this assists. 0 Quote Link to comment Share on other sites More sharing options...
hanstavo Posted October 30, 2018 Author Share Posted October 30, 2018 Yes I can thank you 5 hours ago, WHMCS ChrisD said: @hanstavo could you please try deleting and readding a fresh copy of the /vendor folder to see if this assists. 0 Quote Link to comment Share on other sites More sharing options...
hanstavo Posted October 30, 2018 Author Share Posted October 30, 2018 @WHMCS ChrisD Could this be in the validation.php file? Just thinking back, I had a issue with some validations awhile back and I replaced that file. I maybe got the wrong version of the file. 7 hours ago, WHMCS ChrisD said: @hanstavo could you please try deleting and readding a fresh copy of the /vendor folder to see if this assists. 0 Quote Link to comment Share on other sites More sharing options...
hanstavo Posted October 30, 2018 Author Share Posted October 30, 2018 (edited) @WHMCS ChrisD That didn't work I also reinstalled the includes directory I tried creating level 1 and 2 tax percentage, but still no change still says the exact same stack trace Edited October 30, 2018 by hanstavo 0 Quote Link to comment Share on other sites More sharing options...
hanstavo Posted October 30, 2018 Author Share Posted October 30, 2018 (edited) @WHMCS ChrisD I even tried complete reinstall I dont understand WHAT IS HAPPENING??? I didnt reinstall the templates though. or hooks although I did remove hooks to see if it was in a hook....It wasnt! I tried purging both site cache and browser cache Edited October 30, 2018 by hanstavo 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 31, 2018 Share Posted October 31, 2018 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! 0 Quote Link to comment Share on other sites More sharing options...
hanstavo Posted October 31, 2018 Author Share Posted October 31, 2018 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Sachin Posted November 1, 2018 WHMCS Technical Analyst Share Posted November 1, 2018 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? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.