Zen Cart Logo
Forums / General Questions / Locating issue with old ZC version when enabling PHP7

Locating issue with old ZC version when enabling PHP7

Views: 806

Results 1 to 5 of 5
10 Oct 2017, 7:14 PM
#1
jerrygarciuh avatar

jerrygarciuh

New Zenner

Join Date:
Jul 2014
Location:
New Orleans LA
Posts:
26
Plugin Contributions:
0

Locating issue with old ZC version when enabling PHP7

Hello,

I am running ZC v1.5.3 under PHP 5.6 and need to migrate to PHP 7. We are on v1.5.3 because the client refuses to pay for a full upgrade of ZC to 1.55.

Payment module is Authorize.net AIM module by Dr.Byte. I don't see version info in it but header is

/**
 * authorize.net AIM payment method class
 *
 * @package paymentMethod
 * @copyright Copyright 2003-2014 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version GIT: $Id: Author: DrByte  Tue Jun 3 2014 -0500 Modified in v1.5.3 $
 */
/**

Currently when credit card information is entered I get message on front end associated with ERROR_NO_PAYMENT_MODULE_SELECTED but no PHP errors are logged.

Initially I ran into ereg_replace() error, and issues with Paypal and LinkPoint modules declaring global $$order_totals[$i]['code'];. These have been resolved using advice found here and all of the problematic payment modules were not in use anyway and so have been removed.

After those were removed I stopped getting myDEBUG-adm-*.log messages and admin seems ok so far.

AIM_Debug__*.log files not being generated since I cannot complete sale.

In normal myDEBUG-.log files I am only getting warnings regarding the method declarations in parser files where the method overloading did not use same interface. Example:

[10-Oct-2017 13:39:24 America/Chicago] PHP Warning:  Declaration of manufacturersParser::identifyName($string) should be compatible with SSUParser::identifyName($string, $identifier) in /home/foo/public_html/products/includes/classes/ssu/plugins/parsers/manufacturers.php on line 0
[10-Oct-2017 13:39:24 America/Chicago] PHP Warning:  Declaration of manufacturersParser::getName($id, $languages_id, $languages_code) should be compatible with SSUParser::getName($id, $id_field, $name_field, $table, $identifier, $cache_folder, $languages_id, $languages_code, $languages_field = 'languages_...') in /home/foo/public_html/products/includes/classes/ssu/plugins/parsers/manufacturers.php on line 0

Since no errors are logged and cPanel has no errors logged for server I am stumped as to how to continue to pursue problem. Should I remove current Authorize module and use the one distributed with 1.5.5?

Thank you for any advice.

10 Oct 2017, 8:09 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Locating issue with old ZC version when enabling PHP7

I am running ZC v1.5.3 under PHP 5.6 and need to migrate to PHP 7. We are on v1.5.3 because the client refuses to pay for a full upgrade of ZC to 1.55.

You can't do that.

There are dozens and dozens of code changes required to accommodate the language changes in PHP 7.

You need to upgrade. Or stay on the old almost-obsolete version of PHP required to use your old version of Zen Cart.

10 Oct 2017, 8:10 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Locating issue with old ZC version when enabling PHP7

jerrygarciuh:

[10-Oct-2017 13:39:24 America/Chicago] PHP Warning: Declaration of manufacturersParser::identifyName($string) should be compatible with SSUParser::identifyName($string, $identifier) in /home/foo/public_html/products/includes/classes/ssu/plugins/parsers/manufacturers.php on line 0
[10-Oct-2017 13:39:24 America/Chicago] PHP Warning: Declaration of manufacturersParser::getName($id, $languages_id, $languages_code) should be compatible with SSUParser::getName($id, $id_field, $name_field, $table, $identifier, $cache_folder, $languages_id, $languages_code, $languages_field = 'languages_...') in /home/foo/public_html/products/includes/classes/ssu/plugins/parsers/manufacturers.php on line 0

Those errors are from the "SSU" plugin you've installed. That is not part of Zen Cart itself.
10 Oct 2017, 8:18 PM
#4
jerrygarciuh avatar

jerrygarciuh

New Zenner

Join Date:
Jul 2014
Location:
New Orleans LA
Posts:
26
Plugin Contributions:
0

Re: Locating issue with old ZC version when enabling PHP7

Thank you for the reply. I will need to locate a contractor to get that done as the last attempt I made nearly cost me my sanity. Any place you can recommend seeking out someone who would take on the job of migrating from 1.5.3?

12 Oct 2017, 9:07 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: Locating issue with old ZC version when enabling PHP7

By far the best method is discussed at https://www.zen-cart.com/entry.php?3-How-do-I-rebuild-my-site-on-the-new-version-instead-of-upgrading

You can keep the old while bringing in the new. There have been several changes in mods between 1.5.3 and 1.5.5e as well. The time spent learning is well worth it.