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.

#2 Re: Backlight Support » PayPal issue » 2019-12-12 19:02:03

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

#4 Re: Backlight Support » PayPal issue » 2019-12-12 06:20:20

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

#5 Re: Backlight Support » PayPal issue » 2019-12-11 21:30:08

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);

#6 Re: Backlight Support » PayPal issue » 2019-12-11 19:16:36

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

#7 Re: Backlight Support » PayPal issue » 2019-12-11 04:03:45

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

#8 Re: Backlight Support » PayPal issue » 2019-12-11 03:52:59

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

#9 Re: Backlight Support » PayPal issue » 2019-12-10 22:41:54

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

#10 Re: Backlight Support » PayPal issue » 2019-11-23 09:06:35

Ben wrote:

Please see my comment on this topic: http://community.theturninggate.net/vie … 871#p60871

Thanks so much Ben, that has fixed it.

Hugely appreciated.

Mark

#12 Re: Backlight Support » PayPal issue » 2019-11-23 01:28:17

rod barbee wrote:

I don’t know.
Were you ever able to upload the edited .htaccess file?

Looking through the forum, every time the error you’re getting pops up it seems to be related to php version.

I did manage to edit and upload the .htaccess file in the end. Everyone should be automatically directed to the secure site now.

All worked fine for a while - galleries, checkout and PayPal.

This error message on my galleries page and the admin site is different...

"count(): Parameter must be an array or an object that implements Countable in SimpleHTMLTag.php on line 44"

Just didn't want to hassle the host guy yet if it's something dumb I've done.

#13 Re: Backlight Support » PayPal issue » 2019-11-23 00:38:19

Thanks Rod, everything worked fine for a while. Do you not think the problem is something I've done?

#14 Re: Backlight Support » PayPal issue » 2019-11-22 22:47:25

Spoke a little too soon.

In going into the .htaccess file I appear to have screwed something up.

No Galleries page and I can't access my Backlight admin page either!

This is the error message (same on galleries and admin)...

Something went wrong
count(): Parameter must be an array or an object that implements Countable in SimpleHTMLTag.php on line 44

http://leighonseaphotography.co.uk/galleries/

#15 Re: Backlight Support » PayPal issue » 2019-11-22 20:22:16

Hi Ben,

Success! Just tested the site after the guy sent me this...

i configured your site to now run php 7.3.X and chcking modules:

php7.3-curl ist schon die neueste Version (7.3.11-1+0~20191026.48+debian10~1.gbpf71ca0).

is installed
7.4 curl also

#16 Re: Backlight Support » PayPal issue » 2019-11-22 17:47:18

Thanks Daniel.

I did contact my host. He installed the php-curl module and asked me to test Paypal again. The problem isn't fixed.

Here's his reply...

ok i will check again, because your gallery that you use still requires php 5.X
which I do provide on the server, but it is seriously out of date

standard on the server is now php 7.3+

please talk to your web agency to mak some upgrades to the code and the site https ready
from my side the site has a ssl certificate and could be run in ssl, but the code is not ready for it it seems

#17 Re: Backlight Support » PayPal issue » 2019-11-22 10:14:14

You're right Daniel, I hadn't changed it.

All done now but I'm still getting the error message below after editing the .htaccess file and trying to upload it.


Status:    Starting upload of /Applications/Backlight-Pages-123-Release7/.htaccess
Command:    CWD /
Response:    250 OK. Current directory is /
Command:    TYPE A
Response:    200 TYPE is now ASCII
Command:    PASV
Response:    227 Entering Passive Mode (144,76,176,188,156,232)
Command:    STOR .htaccess
Response:    553 Can't open that file: Operation not permitted
Error:    Critical file transfer error

#18 Re: Backlight Support » PayPal issue » 2019-11-21 22:10:34

Thanks Rod.

I've had a go but after editing the file as below and trying to upload to the server, FileZilla says "Can't open that file. Operation not permitted. Critical transfer error."

# ------------------------------------------------------------------------------
# | Web fonts access                                                           |
# ------------------------------------------------------------------------------

# Allow access from all domains for web fonts

<IfModule mod_headers.c>
    <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
        RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
    RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
    RewriteRule ^.*$ - [E=BASE:%2]
    #RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################



    RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]

    RewriteRule ^([^\/.]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]

    RewriteRule ^([^\/.]*).css$ %{ENV:BASE}index.php?%{ENV:QS}&extension=css&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).js$ %{ENV:BASE}index.php?%{ENV:QS}&extension=js&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).gif$ %{ENV:BASE}index.php?%{ENV:QS}&extension=gif&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).png$ %{ENV:BASE}index.php?%{ENV:QS}&extension=png&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).jpg$ %{ENV:BASE}index.php?%{ENV:QS}&extension=jpg&name=$1 [QSA,L]

    #RewriteCond %{QUERY_STRING} !mod_rewrite=on
    #RewriteRule ^index.php$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^mobile.php$ %{ENV:BASE}mobile.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]
   
    RewriteRule ^$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]
   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ %{ENV:BASE}index.php?%{ENV:QS}&page=$1 [QSA,L]

</IfModule>

#19 Re: Backlight Support » PayPal issue » 2019-11-21 20:52:09

Thanks Daniel and Rod,

Bear with me because I put together my website solely using the Designer and have never been anywhere near coding before.

Here's what I've done so far. Using FileZilla, I've connected to the server and found the .htaccess file, then opened it. My question is, does the new code replace something else, or do I add it in a particular place and leave everything else untouched?

This is what I'm seeing at the moment...

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /dev/simpleapp/

    #RewriteRule ^application/data/phpliteadmin.php$ index2.php [L,QSA]

    RewriteCond %{REQUEST_URI} ^.*/framework/.*$
    RewriteRule ^(.*)$ index.php [L]

    RewriteCond %{REQUEST_URI} ^.*/application/.*$
    RewriteRule ^(.*)$ index.php [L]

    #handle relative paths in css url('../img/....')
    RewriteRule /(img)/(.*)?$ resources/$1/$2 [L,QSA]
    RewriteRule ^resources/(css|js|images|img)/(.*)?$ resources/$1/$2 [L,QSA]
    #RewriteRule ^(resources/css|js|images/.*?)$ $1 [L,QSA]
   
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ %{REQUEST_FILENAME} [L]
   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
   
    RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+).*$ index.php?c=$1&a=$2&p1=$3&p2=$4&p3=$5&u=%{REQUEST_URI}&mr=1&%{QUERY_STRING} [L]
    RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$ index.php?c=$1&a=$2&p1=$3&p2=$4&u=%{REQUEST_URI}&mr=1&%{QUERY_STRING} [L]
    RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/([a-zA-Z0-9_]+)/?$ index.php?c=$1&a=$2&p1=$3&u=%{REQUEST_URI}&mr=1&%{QUERY_STRING} [L]
    RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/?$ index.php?c=$1&a=$2&u=%{REQUEST_URI}&mr=1&%{QUERY_STRING} [L]
    RewriteRule ^/?([a-zA-Z_]+)/?$ index.php?c=$1&u=%{REQUEST_URI}&mr=1&%{QUERY_STRING} [L]
    RewriteRule ^.*$ index.php?%{QUERY_STRING}&mr=1&%{QUERY_STRING} [L]
   
</IfModule>

#20 Re: Backlight Support » PayPal issue » 2019-11-20 19:43:53

At first I wondered if it was a privacy issue because the site isn't https, so I got in touch with my server guy to see if he could sort me out with an SSL certificate. His reply below. Can you translate for a computer illiterate?

"hello!

it is the other way around,.. you hav an SSL certificat, because we can provide it for your site,
but your code seems like all designed for non-ssl

for example

    <link rel="stylesheet" type="text/css" media="all" href="http://leighonseaphotography.co.uk/backlight/publisher/resource.php?template=6&extension=css&name=style" />


you would need to edit your site to fully implement everything towards using https"

#22 Backlight Support » PayPal issue » 2019-11-20 18:43:45

Mark Taylor
Replies: 40

A customer emailed last night to say he'd tried to buy a print on my site and got the following error message when hitting the PayPal button...

"Unexpected error: Call to undefined function curl_init() in PayPalHelper.php on line 323"

On testing the button I get the same message.

Site has been up a couple of years and PayPal has always worked fine.

My site is http://leighonseaphotography.co.uk/

Many thanks,

Mark

Board footer

Powered by FluxBB