If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / Checkout page 2 - payment options comes up blank

Checkout page 2 - payment options comes up blank

Locked

Started by loveofthehorse on 31 Dec 2019, 6:13 PM · Views: 6,752

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Dec 2019, 6:13 PM
#1
loveofthehorse avatar

loveofthehorse

New Zenner

Join Date:
Jul 2014
Location:
Blanchard, Idaho USA
Posts:
21
Plugin Contributions:
0

Post #1 by loveofthehorse

This happened suddenly and the site was not being edited. Got a not from a customer that the payment page wasn't coming up. I verified that when I click continue checkout on page 1 it goes to
https://loveofthehorse.com/index.php?main_page=checkout_payment but its totally blank.

I found that paypal isn't coming up in the admin payment options module either.

Debug shows
PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /public_html/includes/modules/payment/paypal/paypal_functions.php on line 711

The syntax around that this line all looks fine. I went ahead and replaced the 5 or so files in the directory from an archive and that didn't change anything.

I've considered reinstalling paypal but not finding the module to download.

Any advise is welcome. Even if its just to point me to the paypal module to reinstall

THanks

loveofthehorse.com

1 Jan 2020, 3:16 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #2 by mc12345678

loveofthehorse:

This happened suddenly and the site was not being edited. Got a not from a customer that the payment page wasn't coming up. I verified that when I click continue checkout on page 1 it goes to
https://loveofthehorse.com/index.php?main_page=checkout_payment but its totally blank.

I found that paypal isn't coming up in the admin payment options module either.

Debug shows
PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /public_html/includes/modules/payment/paypal/paypal_functions.php on line 711

The syntax around that this line all looks fine. I went ahead and replaced the 5 or so files in the directory from an archive and that didn't change anything.

I've considered reinstalling paypal but not finding the module to download.

Any advise is welcome. Even if its just to point me to the paypal module to reinstall

THanks

loveofthehorse.com
It would appear that the PHP version for the site has been upgraded as the code:

global $$order_totals[$i]['code'];

is no longer acceptable in this case and should be:

global ${$order_totals[$i]['code']};

as then modified in Zen Cart version 1.5.5.

The "best" fix would be to upgrade the store which can be done without taking the current store off-line.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

15 Jan 2020, 5:41 AM
#3
loveofthehorse avatar

loveofthehorse

New Zenner

Join Date:
Jul 2014
Location:
Blanchard, Idaho USA
Posts:
21
Plugin Contributions:
0

Post #3 by loveofthehorse

Yes Thank you.

I found multiple instances where that change needed to be made.

I got past this issue and onto another. Just finally completed the upgrade to 1.5.6c which got me even further though things that stopped working.