Jump to content
Dimitra

Function recalctotals() does not work - Error 500 on Google console after upgrade to 7.7.1

Recommended Posts

Hello,

I recently upgraded my website to the latest verson 7.7.1 and not I'am having the following problem.

When I choose a product and go to the product configuration page, the Order Summary is blank. Every time a choose a price from the dropdown menu, I can see the loading icon in the #producttotal div, but no price is calculated.

The errors I see in the DevTools Console are either ''Failed to load resource: the server responded with a status of 500 (Internal Server Error)'' or
image.png.25c81686514b65147b4dd82d008a7432.png

I tried changing back to the default templates (Six and Standard Card) but nothing changed.

Any ideas why this is happening or how i can fix it?

Thank you very much.

Share this post


Link to post
Share on other sites
On 18/02/2019 at 14:56, Dimitra said:

Any ideas why this is happening or how i can fix it?

I doubt that there's a generic problem with recalctotals - otherwise all hell would be breaking loose on here with other users stating their carts aren't working either.

my assumption would be that it's an incomplete/corrupted upgrade - the fact that it doesn't work under six/SC is a clue to that too... if it had worked there, it would imply a template issue... if it's not working full stop, it's a missing/corrupt file or a clash with an existing file.

did you use the automatic updater to update? which version did you update from ?? i'd be tempted to get hold of either the full or incremental zip and start uploading folders via ftp ('vendors' would be first on the list) to see if that resolves this.

Share this post


Link to post
Share on other sites

Hi @Dimitra,

A 500 Internal Server Error is a generic error message produced by the server due to a misconfiguration. There are potentially a wider number of causes for such a problem, here is a brief overview of them and potential fixes:

  • File Permissions are incorrectly set.  Should be (depending on server but general rule of thumb) 644 for files and 755 for folders/directories.
  • An error in one of the PHP Files - Try enabling the display errors options described at http://docs.whmcs.com/Blank_Pages
  • An error in an after-market customisation applied to your WHMCS installation
  • PHP Memory & Process limitations - Try increasing to 128MB
  • PHP Process Limitations - Check with server admin/hosting provider
  • Corrupt PHP Modules, Extensions, Builds - Check with server admin/hosting provider
  • The obscure - If points 1-5 don't produce a fix typically the best course of action is to check the Apache Error Logs

The most likely cause of this kind of error is an after-market customisation. Could you please ensure there are no customisations present on your installation as these can often change the way WHMCS operates.
These are typically located in the /includes/hooks and /modules/ directories

Once the issue is resolved you can add them back one-by-one until the problem begins again - at which point you have identified the troublesome customisation and can contact the vendor directly for assistance resolving the problem in their code.

Share this post


Link to post
Share on other sites

Hi everyone,

I'm sorry for the late reply.

I restored my website to the previous version and updated it again (manually this time). I think the first time  the update was not completed. The problem is not solved, but now I get the warning about the missing WHMCS Base URL. I added the script from the documentation page but in the console, the variable is empty. Is this variable related to the error 500 I'm having? Also, where is this variable defined?

 @WHMCS John I tried most of your recommendations, (except the builds check that I will check tomorrow) but nothing changed. What is more, when I enable the errors display option, there are no errors displayed.

Thanks again.

Share this post


Link to post
Share on other sites

have you opened a ticket with Support about this issue?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By sokalsondha
      Dear everyone.. greetings from me.
      i just need some suggestion from the experts.
      currently i am in ireland and using my whmcs for irish market. so my currency is euro. and my website all the products shows as in euros.
      i am planning to start a brand for host in bangladesh where i am originally from but i have the different price set for bangladesh website..
      just to let u know i made another website for bangladesh market. and in the website prices are set in BDT not in euro
       
      i am looking for some solution when a visitor visit bangladesh website and select the product it will be shows the product sets for bangladesh and price will shown BDT not in euros
      but when client from ireland will visit the website they will see euros.. i want to set euros as default. also like visitor from UK will see product sets for UK and price will shown in GBP.
      do i need hook make for this? or what thing i need to customise? or need some module?
      can someone help me with some suggestion?
       
      thanks in advance
    • By artaweb
      Hello,
      following this topic:
      What are the tags I need to use for Nameservers within template files? 
      Tried {$service_ns1} & {$service_ns2} but no luck. 
      Is there a cheatsheet for these tags? 
    • By vinc1402
      Hello WHMCS, 
       
      I've done the update to V7.7, now there is the End User License Agreement screen.
      I can accept this 10 times and the page keeps coming back leaving me unable to get into the admin area.
       
      Any help would be appreciated.
       
    • By hanstavo
      Can Someone Please help me? When I tried to do a test checkout I realized that I cant continue. I get the following error, but I don't even have tax setup. I am using WHMCS 7.4.2
      Oops!
      Something went wrong and we couldn't process your request.
      Please go back to the previous page and try again.
      If the problem persists, please contact us.
      « Back to Homepage
      For additional assistance, please reference the WHMCS TroubleShooting Guide »

      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}
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated