Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Payment Modules Missing from Modules/Payment Modules When I Upgrade

Payment Modules Missing from Modules/Payment Modules When I Upgrade

Views: 3,263

Results 1 to 13 of 13
7 Apr 2017, 7:15 PM
#1
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Payment Modules Missing from Modules/Payment Modules When I Upgrade

I'm moving to a server running Xenial Xerus with PHP 7. On a fresh install of 1.5.5e, all the included payment modules show up in Modules/Payment Modules. When I move the store, remaining with 1.5.4, several payment modules are missing, including all Paypal, Net1 Payment, Check/Money Order and FirstData modules.

7 Apr 2017, 9:43 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Doesn't sound like used the upgrade process suggested by: http://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

Suggest following the guidance provided at this FAQ to address what is probably a partial blank screen: http://www.zen-cart.com/content.php?124-blank-page

10 Apr 2017, 6:38 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Right, but you're moving a Zen Cart 1.5.4 store (not upgraded) to a new webhost running PHP 7 and you're running into an incompatibility between the Zen Cart and PHP versions.

You might ask your new webhost if they have a cPanel control that you can use to "down-level" the PHP version to 5.6. Then you could transfer your ZC 1.5.4 store and get it used to its new home while you contemplate your upgrade to ZC 1.5.5 (which *does *inter-operate with PHP 7.0).

10 Apr 2017, 7:14 PM
#5
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Or.... upgrade on the old server, then move? I've confirmed I can't install the old version on the server running PHP 7.

10 Apr 2017, 7:23 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Yep, either way works!

18 Apr 2017, 2:39 PM
#7
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Except when it doesn't. Installed 1.5.5e on the old server. All the payment modules are showing. I moved it to the new one with PHP 7 (Xenial Xerus) and the Paypal modules, Net 1 payment services are all gone.

18 Apr 2017, 3:01 PM
#8
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

The modules show up on a fresh install.

18 Apr 2017, 3:07 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

greenftechn:

Except when it doesn't. Installed 1.5.5e on the old server. All the payment modules are showing. I moved it to the new one with PHP 7 (Xenial Xerus) and the Paypal modules, Net 1 payment services are all gone.
By "gone" do you mean "the rest of the screen isn't drawn" (including the right-hand sidebar)? Or do you mean that everything before and after those modules shows up fine, just that those specific modules are missing?

If it's because "the rest of the page didn't complete being drawn" (which I'm assuming is the case), then the PHP errors causing it to abort are logged in your /logs/ folder. Ref: http://www.zen-cart.com/content.php?124-blank-page
Tell us what the errors are, and we can help further.

I suspect your "Net 1" module has a PHP error incompatible with PHP7 and is aborting everything. Details in the /logs/ folder.

18 Apr 2017, 4:07 PM
#10
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Debug Log Lines:

[18-Apr-2017 15:57:00 UTC] PHP Parse error: syntax error, unexpected '[', expecting ',' or ';' in /var/www/html2/store/includes/modules/payment/linkpoint_api.php on line 320

This was repeated for each time the modules/payment page was loaded.

I removed the Linkpoint payment module and the other modules are now listed. You were correct. The rest of the page was not being drawn.

18 Apr 2017, 4:13 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

The whole linkpoint module is now obsolete. You can remove the rest of its files:

/includes/languages/english/modules/payment/linkpoint_api.php
/includes/modules/payment/linkpoint_api.php
/includes/modules/payment/linkpoint_api (entire folder)

If you still need to use FirstData, use the PayeezyJS module or the First Data HCO Hosted Checkout module.

18 Apr 2017, 5:43 PM
#12
greenftechn avatar

greenftechn

New Zenner

Join Date:
May 2010
Location:
Wells Tannery, PA, USA
Posts:
17
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

Thanks for the help!

23 Dec 2018, 9:57 PM
#13
picobot avatar

picobot

New Zenner

Join Date:
Aug 2005
Posts:
2
Plugin Contributions:
0

Re: Payment Modules Missing from Modules/Payment Modules When I Upgrade

OH LOL it's obsolete, ok justs delete it. Otherwise this seems to work:

change line 306 of includes/modules/payment/linkpoint_api.php as follows:

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

change to:

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

Apparently PHP 7 does not support variable substitution with array element. Wrap it in brackets and voila, the rest of the payment modules should show up in the admin.