Frank Auffret Posted April 18 Share Posted April 18 As reported in bugs I recently upgraded six sites to 6.5.4. Those customers are reporting errors with the vat and total calculations. Anyone else experiencing similar and is there a fix? e.g. www.wesleywindows.co.uk Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 18 Share Posted April 18 Can you replace this file: https://github.com/cubecart/v6/blob/v6.5-master/classes%2Fcart.class.php Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 18 Author Share Posted April 18 (edited) 3 hours ago, Al Brookbanks said: Can you replace this file: https://github.com/cubecart/v6/blob/v6.5-master/classes%2Fcart.class.php 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 April 18 by Frank Auffret Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 18 Author Share Posted April 18 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 19 Share Posted April 19 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. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 19 Author Share Posted April 19 (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 April 19 by Frank Auffret Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 19 Share Posted April 19 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 Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 19 Author Share Posted April 19 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 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 19 Share Posted April 19 No other changes in this version would affect the calculation. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 19 Author Share Posted April 19 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 Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 19 Author Share Posted April 19 Looks like my only option is to revert all the stores back to 6.5.3 and try again when I return to the UK In 20 years plus using Cubecart I have never had such an issue. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 19 Share Posted April 19 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. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 19 Author Share Posted April 19 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. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 22 Author Share Posted April 22 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? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 22 Share Posted April 22 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. Quote Link to comment Share on other sites More sharing options...
Frank Auffret Posted April 22 Author Share Posted April 22 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 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 22 Share Posted April 22 Did you see this? https://github.com/cubecart/v6/issues/3557 There is a code fix there. This release has been quite a dog. I'll have to get a new release out soon but I'm having to wait on something... 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.