Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Cart problems following updates
Author « Topic »  

myraltis
Advanced Member

183 Posts

Posted - 02/20/2023 :  11:38:25  
Hi folks,

I've recently completed some work on an old site and, whilst all appeared well, the client has just spotted some cart related problems.

I did three things and am unsure as to what exactly has cause the problem, as it's only seen during checkout:
1, updated to PHP 7.4 from PHP5.6
2, updated the cart to v7.5.5 (not sure of the previous version but possible a year or so out of date)
3, implemented Search Engine friendly URLS

Problem 1: There are strange issues with the cart. If you add a product to the cart, the mini-cart link at the top right increments to show the number of products in the cart. Hovering over the mini-cart link displays the contents of the cart, but clicking on the link says "there are no items in the cart". If you navigate the site and add another product all the previous items reappear. Clicking the link again shows an empty cart, but clicking on the "Checkout" link from the product add pop-up will take you to the cart and show all the products you've added.

Problem 2: In the checkout phase, once you have entered shipping info, clicking on checkout to move to the screen to check details and proceed to process payment, multiple errors such as:
Warning: Illegal string offset 'PSPID' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36
Warning: Illegal string offset 'AMOUNT' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36
Warning: Illegal string offset 'CURRENCY' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36
appear at the top of the page, with the cart element displayed at the bottom.

The site uses Barclays ePDQ to process payments.

Site URL is https://www.pure-plastics.co.uk/ and the error is easilty reproduced.

Any assistance would be greatly appreciated.

Thanks,
Tim

dbdave
ECT Moderator

USA
10385 Posts

Posted - 02/20/2023 :  13:24:21  
Hi, first, be sure to check the db connection string as when going from PHP 5.X.X TO 7.X.X quite often you need to update a few things per this thread - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737

Next, it sounds like your site may be flipping between www and non-www or https and http, so check this thread for a solution to that issue - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=114720

Post back on how you get along.

Thanks,
David

myraltis
Advanced Member

183 Posts

Posted - 02/21/2023 :  00:33:26  
Hi David, thanks for your prompt reply.

The db_conn details were correctly set, as I'd spotted that thread during the upgrade.

I've updated .htaccess as shown in the other thread and that has slightly improved the cart issue. I can now go in and out of the cart without losing items, and am able to add products to the cart. However, if I click a product's "Quick Buy" link then select "Add to Cart" from the popup, the cart link at the top right hand side of the screen briefly changes to "View Cart undefined" before disappearing. Going to an alternate page restores the cart link but the Quick Buy item is not in the cart.

Problem 2 with the "Warning:Illegal string..." remains.

Is it OK to post the contents of my .htaccess file here for inspection?

Thanks,
Tim

Vince
Administrator

42692 Posts

Posted - 02/22/2023 :  01:37:08  
Hi Tim
If you send the site FTP login to my email (vince AT ecommercetemplates DOT com) I'll log in and take a look.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

myraltis
Advanced Member

183 Posts

Posted - 02/22/2023 :  01:41:56  
Thanks Vince, will do in the next 10/15 minutes.

I've temporarily fixed the checkout/ePDQ issue by reverting to PHP v5.6, although all relevant modules are enabled in 7.4.

The quick cart weirdness persists however.

Cheers,
Tim
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000