Authorize.net AIM problems 1.5.8
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
Code:
[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
Re: Authorize.net AIM problems 1.5.8
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.
Re: Authorize.net AIM problems 1.5.8
I see only following error in CURL testing:
Quote:
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.
Re: Authorize.net AIM problems 1.5.8
Here's the log:
HTML Code:
[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.
Re: Authorize.net AIM problems 1.5.8
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.
Re: Authorize.net AIM problems 1.5.8
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?).
Re: Authorize.net AIM problems 1.5.8
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.
Re: Authorize.net AIM problems 1.5.8
Reproduced issue. Investigating.
Re: Authorize.net AIM problems 1.5.8
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.
Re: Authorize.net AIM problems 1.5.8
Re: Authorize.net AIM problems 1.5.8
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
Re: Authorize.net AIM problems 1.5.8
I'm a dumb ######. I never enabled amex in the admin > config. I'll get this done and run another test.
Thank you,
John
Re: Authorize.net AIM problems 1.5.8
I may have made this same mistake myself in the past. :)
Re: Authorize.net AIM problems 1.5.8
I'll let you borrow my sign above my desk.
Pobody's Nerfect!
Re: Authorize.net AIM problems 1.5.8
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