Jump to content

6 5.4 calculation errors


Recommended Posts

Posted (edited)
3 hours ago, Al Brookbanks said:

Uploaded https://github.com/cubecart/v6/blob/v6.5-master/classes%2Fcart.class.php

cleared cache

still got errors

https://petiteshowers.co.uk/


Basket icon top right shows correct price        £180.00

Checkout
Unit price Fibreglass shower tray 24" x 36"      £150.00
Subtotal                                                                £150.00
Select your shipping method: -- Please Select --£0.00 (FREE Delivery)Shipping£0.00
VAT (Standard Rate 20%)                                   £90.00
Grand Total                                                        £240.00

Sorry for delay I am in Vancouver for a few days so had to borrow a laptop

Update: doesn't seem to affect sites where prices include VAT

Edited by Frank Auffret
Link to comment
Share on other sites

It just got worse!
I tried switching to the default Foundation skin now the storefront won't load
https://tritoncontrols.co.uk/index.php

cleared cache and switched back to the custom skin and site still won't load.

Error log:
[<strong>Exception</strong>] /home/tritoncontrolsco/public_html/classes/gd.class.php:103 - Call to undefined function exif_read_data()
https://tritoncontrols.co.uk/index.php

Link to comment
Share on other sites

There are two approaches: replace the file /classes/gd.class.php with the file found in CC653, or visit your site's control panel and manage the extensions installed in PHP. Enable 'EXIF' (and 'MBSTRING' if not already) to the group of enabled extensions.

 

 

Link to comment
Share on other sites

Posted (edited)
2 hours ago, bsmither said:

There are two approaches: replace the file /classes/gd.class.php with the file found in CC653, or visit your site's control panel and manage the extensions installed in PHP. Enable 'EXIF' (and 'MBSTRING' if not already) to the group of enabled extensions.

 

 

Thank you so much, that's got the storefront open again - used gd.class.php from 6.5.3

Your help is much appreciated

Now just need to solve the calculations issue 

 

UPDATE
just checked phpinfo() EXIF is enabled

Edited by Frank Auffret
Link to comment
Share on other sites

30 minutes ago, Al Brookbanks said:

Frank I'm sorry that you've had problems. 

Can you switch the green line out for the red one:
https://github.com/cubecart/v6/commit/83387f9b35f2e60cca0a4e8b33a66814388caa58

Done that but no change
https://tritoncontrols.co.uk/

Basket  £199.99

Subtotal                                   £166.66
Select your shipping method: -- Please Select --£0.00 (Free carriage)Shipping  £0.00
VAT (Standard Rate 20%)       £99.99

Grand Total                             £266.65

Link to comment
Share on other sites

So what do I need to do?

All four sites that use VAT exclusive prices have same issue

another example 
https://petiteshowers.co.uk/


basket price  £180.00

Subtotal                       £150.00

Select your shipping method: -- Please Select --£0.00 (FREE Delivery)Shipping    £0.00

VAT (Standard Rate 20%)             £90.00

Grand Total£240.00

Link to comment
Share on other sites

Sorry Frank. The release is new and I've been tied up on support all day. 

Restoring a backup is a good plan for now. I haven't come across any stores with this problem yet using the files I've linked to in this thread. 

Link to comment
Share on other sites

6 minutes ago, Al Brookbanks said:

Sorry Frank. The release is new and I've been tied up on support all day. 

Restoring a backup is a good plan for now. I haven't come across any stores with this problem yet using the files I've linked to in this thread. 

No probs thanks for your help so far - much appreciated.
Currently being 8 hours behind isn't helping so I will revert for now.

 

Link to comment
Share on other sites

All sites restored back to 6.5.3 Thinking about trying a 6.5.4 clean install i.e. delete all folders and files except /images, /skins, /modules & global.inc.php 

Are there any other essential files that need keeping so the setup doesn't do a first time install and truncate the tables?

Link to comment
Share on other sites

My feeling is that there is a new or newly revealed systemic issue in the CC654 code, meaning whether it is a "clean" install or an "upgrade", the end result will be the same.

Which is to say, an upgrade is actually a whole-cloth replacement of all the system files and the Foundation skin.

I do not think it likely that there is a new incompatibility between CC654 code and any module, especially where tax calculations are concerned.

 

Link to comment
Share on other sites

10 hours ago, bsmither said:

My feeling is that there is a new or newly revealed systemic issue in the CC654 code, meaning whether it is a "clean" install or an "upgrade", the end result will be the same.

Which is to say, an upgrade is actually a whole-cloth replacement of all the system files and the Foundation skin.

I do not think it likely that there is a new incompatibility between CC654 code and any module, especially where tax calculations are concerned.

 

Thank you I thought same but am just trying everything in my capability to upgrade those four sites. I have two other sites which use vat inclusive prices and the system seems to be working so I left them on 6.5.4. 

Probably wait until I get back to the UK before doing further work.

Thanks again your feedback is appreciated

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...