If this is your first visit, check our documentation. To post, register or login.

Authorize.net AIM problems 1.5.8

Started by dbltoe on 5 Dec 2022, 5:36 PM · Views: 6,037

Results 1 to 15 of 15
5 Dec 2022, 5:36 PM
#1
dbltoe avatar

dbltoe

Totally Zenned

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

Post #1 by dbltoe

Recent move to 1.5.8 from 1.5.1 with all new files and db upgrade.
all mods current as of today
1.5.8 current as of yesterday

OPC
bootstrap
Edit Orders
Clone a Template
Sitemap XML
Mod List

Made a successful order on 1 December witht the production server.

Only changes since then are updates to include new merges for 1.5.8 and minor changes to bootstrap and OPC

Can no longer make test or production orders

Getting the following error

[05-Dec-2022 09:53:10 America/Denver] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.255, Language id 1
#1 zcAjaxPayment->prepareConfirmation() called at [/ajax.php:85]
--> PHP Warning: Undefined array key "cc_id" in /includes/classes/ajax/zcAjaxPayment.php on line 129.

[05-Dec-2022 09:53:10 America/Denver] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.255, Language id 1
#1 zcAjaxPayment->prepareConfirmation() called at [/ajax.php:85]
--> PHP Warning: Undefined variable $authorizenet_aim in /includes/classes/ajax/zcAjaxPayment.php on line 166.

[05-Dec-2022 09:53:10 America/Denver] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /includes/classes/ajax/zcAjaxPayment.php:166
Stack trace:
#0 /includes/classes/ajax/zcAjaxPayment.php(166): method_exists(NULL, 'alterShippingEd...')
#1 /ajax.php(85): zcAjaxPayment->prepareConfirmation()
#2 {main}
thrown in /includes/classes/ajax/zcAjaxPayment.php on line 166

[05-Dec-2022 09:53:10 America/Denver] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 216.177.186.199
--> PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /includes/classes/ajax/zcAjaxPayment.php:166
Stack trace:
#0 /includes/classes/ajax/zcAjaxPayment.php(166): method_exists(NULL, 'alterShippingEd...')
#1 /ajax.php(85): zcAjaxPayment->prepareConfirmation()
#2 {main}
thrown in /includes/classes/ajax/zcAjaxPayment.php on line 166.

We did attempt to load the add customers from admin mod during that time but it failed due to the new language file styling. All files were removed and the uninstall MySQL was run successfully.

site is hornedlizardcreationsDOTcom

Hopefully all needed info is provided.

THANX

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

13 Dec 2022, 4:07 PM
#2
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Post #2 by icemint

I have the same issue.
I have a fresh install of v1.5.8 with following plugins:

ZCA-Bootstrap-Template-3.4.1 added
backup_mysql_plugin_v1-5g
Ultimate URLs v3.0.11
Image Handler 5 (Zen Cart 1.5.7+)
ColorBox for Zen Cart - Version: 2.1.2

Regardless of the correct AIM keys entered, the "Continue" button in check out Step 2 of 3 does not proceed.

13 Dec 2022, 6:14 PM
#3
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Post #3 by icemint

I see only following error in CURL testing:

Error 28 suggests that a DNS lookup was taking too long. This might suggest a problem, but could be a result of this script testing multiple connections in a row.
If ALL destinations report this error, then you have a server DNS resolution problem; if only ONE destination consistently reports this, then you may have an outdated DNS source: in both cases your server administrator will need to assist you with diagnosing.

Error 28: Connection timeout after 5000 ms

Connecting to Canada Post REST API (SSL) ...
GOOD: CURL Connection successful.

Connecting to PayPal IPN (port 443)...
GOOD: Socket established

GOOD: CURL Connection successful.

Connecting to PayPal IPN (port 443) Sandbox ...
GOOD: Socket established

GOOD: CURL Connection successful.

Connecting to PayPal Express/Pro Server ...
GOOD: CURL Connection successful.

Connecting to PayPal Express/Pro Sandbox ...
GOOD: CURL Connection successful.

Connecting to PayPal Payflowpro Server ...
GOOD: CURL Connection successful.

Connecting to PayPal Payflowpro Pilot/Sandbox Server ...
GOOD: CURL Connection successful.

Connecting to Cardinal Commerce 3D-Secure Server ...
GOOD: CURL Connection successful.

Connecting to Square Payments Server ...
GOOD: CURL Connection successful.

Connecting to AuthorizeNet Production Server ...
GOOD: CURL Connection successful.

Connecting to AuthorizeNet API Production Server ...
GOOD: CURL Connection successful.

Connecting to AuthorizeNet Developer/Sandbox Server ...
GOOD: CURL Connection successful.

Connecting to AuthorizeNet API Developer/Sandbox Server ...
GOOD: CURL Connection successful.

14 Dec 2022, 7:01 PM
#4
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Post #4 by icemint

Here's the log: ```html
[14-Dec-2022 11:45:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.55
#0 /home/includes/init_includes/init_sessions.php(125): zen_debug_error_handler()
#1 /home/includes/autoload_func.php(40): require_once('/home/...')
#2 /home/includes/application_top.php(237): require('/home/...')
#3 /home/ajax.php(25): require('/home/...')
--> PHP Warning: Undefined array key "SSL_SESSION_ID" in /home/includes/init_includes/init_sessions.php on line 125.

[14-Dec-2022 11:45:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.55
#0 /home/includes/classes/ajax/zcAjaxPayment.php(128): zen_debug_error_handler()
#1 /home/ajax.php(85): zcAjaxPayment->prepareConfirmation()
--> PHP Warning: Undefined array key "cc_id" in /home/includes/classes/ajax/zcAjaxPayment.php on line 128.

[14-Dec-2022 11:45:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.55
#0 /home/includes/classes/ajax/zcAjaxPayment.php(165): zen_debug_error_handler()
#1 /home/ajax.php(85): zcAjaxPayment->prepareConfirmation()
--> PHP Warning: Undefined variable $authorizenet_aim in /home/includes/classes/ajax/zcAjaxPayment.php on line 165.

[14-Dec-2022 11:45:35 America/Boise] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/includes/classes/ajax/zcAjaxPayment.php:165
Stack trace:
#0 /home/includes/classes/ajax/zcAjaxPayment.php(165): method_exists(NULL, 'alterShippingEd...')
#1 /home/ajax.php(85): zcAjaxPayment->prepareConfirmation()
#2 {main}
thrown in /home/includes/classes/ajax/zcAjaxPayment.php on line 165

[14-Dec-2022 11:45:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 255.255.255.55
--> PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/includes/classes/ajax/zcAjaxPayment.php:165
Stack trace:
#0 /home/includes/classes/ajax/zcAjaxPayment.php(165): method_exists(NULL, 'alterShippingEd...')
#1 /home/ajax.php(85): zcAjaxPayment->prepareConfirmation()
#2 {main}
thrown in /home/includes/classes/ajax/zcAjaxPayment.php on line 165.

19 Dec 2022, 3:08 PM
#5
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Post #5 by icemint

I'm testing Zencart v1.5.8 on PHP Version: 8.1.12 (Zend: 4.1.12).

I also tested Authorize.net AIM on 1.5.7d clean install on PHP 8.0. The same issue - "Continue" button is not responsive at Step 2 of 3 - Payment Information stage.

This is a critical issue and should be addressed ASAP. The last known working version was Zencart v1.5.5 and PHP Version: 5.6.40.

These are done on the same hosting, Bluehost.

23 Dec 2022, 8:45 PM
#6
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Post #6 by njcyx

I guess the issue is related to the php vs the plug-in, not the zen cart nor the server.

You can probably downgrade your php to 7.4 (if there is an option) or so and see how it works.

Since php 8.0, lots of codes (?) have been changed so it is likely the some function may not work (from the previous plug-in?).

2 Jan 2023, 9:23 PM
#7
icemint avatar

icemint

New Zenner

Join Date:
Jan 2008
Posts:
32
Plugin Contributions:
0

Post #7 by icemint

Great suggestion!

I tested Zen-cart v1.5.8 running with PHP 7.4, unfortunately couldn't resolve Authorize AIM freeze issue.
However, I was able to get Auth.net AIM working on Zen-cart v1.5.7 with PHP 7.4 worked fine. I agree with your guess.

I believe the payment modules are the most critical part in a cart programming and look forward to seeing this addressed soon.

14 Mar 2023, 9:33 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #8 by swguy

Reproduced issue. Investigating.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 Mar 2023, 9:38 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #9 by swguy

Noticed that doing this workflow with the latest OPC enabled does work. So this might be a workaround at least for some.
Continuing to investigate.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 May 2023, 6:40 PM
#11
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
862
Plugin Contributions:
0

Post #11 by bumba000

Hello All,
We're running 1.5.8 on PHP 8.2. Having trouble processing Amex payments. System reports we do not accept amex. Anyone else having this issue? Is there a solution?

Thank you,
John

3 May 2023, 6:58 PM
#12
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
862
Plugin Contributions:
0

Post #12 by bumba000

I'm a dumb ######. I never enabled amex in the admin > config. I'll get this done and run another test.

Thank you,
John

3 May 2023, 7:38 PM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #13 by swguy

I may have made this same mistake myself in the past. :)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 May 2023, 8:10 PM
#14
dbltoe avatar

dbltoe

Totally Zenned

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

Post #14 by dbltoe

I'll let you borrow my sign above my desk.

Pobody's Nerfect!

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

3 May 2023, 9:29 PM
#15
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
862
Plugin Contributions:
0

Post #15 by bumba000

Thank you SWGUY and DBLTOE. I've given myself a little credit, but you all are really helping me feel better.

I started by digging into includes/modules/payment/authorizenet_aim.php where I found a call to the class cc_validate. So I found that class of course in classes/cc_validation.php. From there I realized it was checking what appeared to be constants defined in the database. That's when I realized this problem was likely my doing, or not doing as it were. lol.

Thanks again guys. ;)

Best,
John