Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#26 2019-12-10 22:41:54

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

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

#27 2019-12-11 00:48:17

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: PayPal issue

Mark, which php version do you use?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#28 2019-12-11 03:52:59

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

Hi Daniel, the lad I deal with says 7.3 "and 7.4 curl also" if that makes sense?

Offline

#29 2019-12-11 03:57:40

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: PayPal issue

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

#30 2019-12-11 04:03:45

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

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

#31 2019-12-11 06:30:04

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: PayPal issue

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

#32 2019-12-11 19:16:36

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

Ben wrote:

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

#33 2019-12-11 21:14:22

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: PayPal issue

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

#34 2019-12-11 21:30:08

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

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

#35 2019-12-11 21:43:25

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: PayPal issue

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

#36 2019-12-12 06:20:20

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

Thanks Ben, can you let me know where to find that please?

Offline

#37 2019-12-12 06:41:33

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: PayPal issue

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

#38 2019-12-12 07:15:10

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

Thanks Rod

Offline

#39 2019-12-12 19:02:03

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

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

#40 2019-12-12 21:17:26

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: PayPal issue

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

#41 2019-12-12 23:46:35

Mark Taylor
Member
Registered: 2019-11-20
Posts: 22

Re: PayPal issue

Thanks Rod

Offline

Board footer

Powered by FluxBB