Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Still having some problems with Cart and PayPal.
A customer messaged last night to say at the final stage of the checkout process on PayPal, he received the message "Sending you back to the website to complete your purchase", at which point he got:
"Something went wrong
count(): Parameter must be an array or an object that implements Countable in paypal_review.php on line 15"
I've tried deleting and reinstalling the cart module, but that hasn't done the trick.
Any ideas?
Many thanks,
Mark
Offline
Mark, which php version do you use?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Hi Daniel, the lad I deal with says 7.3 "and 7.4 curl also" if that makes sense?
Offline
Don't know if there is an issue with using 7.3. Can you ask him to downgrade to 7.2 and see if it works?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Yes I can, although he only upgraded it recently because other things were going wrong.
Before he did the upgrade to 7.3, just hitting the PayPal button gave an error. Now customers are directed to PayPal as they should be, but can't finish their orders.
Confusing...
Offline
Hi Mark, this was addressed in an update a year ago. Can you download the latest version of the Cart and replace the directory on your server backlight/modules/module-cart with the same directory from the zip file?
Offline
Hi Mark, this was addressed in an update a year ago. Can you download the latest version of the Cart and replace the directory on your server backlight/modules/module-cart with the same directory from the zip file?
Hi Ben,
I can see an update for Backlight 2 from a year ago (Oct 8) that fixes a Cart issue but I'm using the original Backlight.
I think I have the latest version of that and everything is up to date.
I tried deleting and reinstalling the Cart module but it didn't fix the problem.
Mark
Offline
Hi Mark, unfortunately the manual updating process of Backlight 1 makes it hard to make sure that we've provided the right files and that you have them.
Can you view the contents of the file backlight/modules/module-cart/application/models/OrderDetails.php on your server, and paste the top ten or so lines here?
Offline
Thanks Ben, here you go...
<?php
defined('APP_DIR') or die('No direct script access allowed in ' . __FILE__);
abstract class OrderDetails
{
protected $data;
protected $errors;
/*function getData()
{
return $this->data;
}*/
abstract function getAdditionalFieldsKey();
function setDetails($resArray)
{
foreach ($resArray as $k => $v) {
$this->data[$k] = stripslashes($v);
}
$this->setCheckboxes($resArray);
$this->setAdditionalFields($resArray);
Offline
Thanks for that, Mark. In that case, you don't have the latest version. Can you download the latest Cart zip file, named Cart-416.zip, and replace the contents of the backlight/modules/cart/ directory?
(FYI, the difference in that one file is line 8, which should look like the following. There are other changes across various files, so the directory needs to be updated with the latest
protected $errors = array();
)
Offline
Thanks Ben, can you let me know where to find that please?
Offline
There are a couple of links on the main support page you can try to either access your orders or have them resent to you: http://theturninggate.net/support/
And if you still have any of the old emails that announced new versions, you should be able to use the link contained in one of those.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod
Offline
Almost there! The Cart update has fixed the PayPal checkout process (thank you all).
There's just one remaining glitch. I sell a book on the website here New book
When customers click "Order your copy HERE" it takes them to a gallery of images and hitting the cart icon on any of those images used to add a book to their cart.
Hitting the cart icon no longer works and, stranger still, after visiting this gallery it also becomes impossible to add images to the cart from other galleries
I wondered if I'd missed an update to the pangolin-theater module, so I've re-uploaded that, but the problem persists.
Mark
Offline
Not theater, those aren’t Theater albums. Try updating the Pangolin album module.
In fact, you should update all modules to the latest version available. Try that first.
And you don’t need to use an album to sell your book. You can use a write-in button on any page.
http://backlight.theturninggate.net/doc … se_buttons
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod
Offline