Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Paypal payments pro fatal error in zcAjaxPayment.php

    redsautorehab.com
    1.5.8
    PHP 8.0
    I have not gotten a single order in several days, and had a customer call me to let me know that they can't pay. I verified that after entering the credit card info, and hitting the continue button, nothing happens at all, and I get a php fatal error with zcAjaxPayment.php. I checked on my host's website, and it looks like they forced me into php 8.0 recently with no way of going back to a lower version, so I need to figure out how to prevent this fatal error.
    [28-Feb-2024 14:00:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 71.223.48.160
    #1 zcAjaxPayment->prepareConfirmation() called at [/home1/redsauto/public_html/ajax.php:85]
    --> PHP Warning: Undefined array key "cc_id" in /home1/redsauto/public_html/includes/classes/ajax/zcAjaxPayment.php on line 129.

    [28-Feb-2024 14:00:35 America/Boise] Request URI: /ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 71.223.48.160
    #1 zcAjaxPayment->prepareConfirmation() called at [/home1/redsauto/public_html/ajax.php:85]
    --> PHP Warning: Undefined variable $paypaldp in /home1/redsauto/public_html/includes/classes/ajax/zcAjaxPayment.php on line 166.

    [28-Feb-2024 14:00:35 America/Boise] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home1/redsauto/public_html/includes/classes/ajax/zcAjaxPayment.php:166
    Stack trace:
    #0 /home1/redsauto/public_html/includes/classes/ajax/zcAjaxPayment.php(166): method_exists(NULL, 'alterShippingEd...')
    #1 /home1/redsauto/public_html/ajax.php(85): zcAjaxPayment->prepareConfirmation()
    #2 {main}
    thrown in /home1/redsauto/public_html/includes/classes/ajax/zcAjaxPayment.php on line 166

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

  2. #2
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: Paypal payments pro fatal error in zcAjaxPayment.php

    I was able to find a way of forcing the site back to php 7.4, but I would really like to get the files fixed, so that if I get forced into a newer php again, I won't lose functionality.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,696
    Plugin Contributions
    9

    Default Re: Paypal payments pro fatal error in zcAjaxPayment.php

    Quote Originally Posted by vanhorn_s View Post
    I was able to find a way of forcing the site back to php 7.4, but I would really like to get the files fixed, so that if I get forced into a newer php again, I won't lose functionality.
    i am guessing that this file:

    includes/classes/ajax/zcAjaxPayment.php

    is missing this PR.

    i would ensure that you are using this version of said file.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: Paypal payments pro fatal error in zcAjaxPayment.php

    Thank you. That fixed it, but now I have a whole bunch of Undefined array key warnings now, triggered by includes/modules/payment/paypaldp.php

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,708
    Plugin Contributions
    123

    Default Re: Paypal payments pro fatal error in zcAjaxPayment.php

    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.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,708
    Plugin Contributions
    123

    Default Re: Paypal payments pro fatal error in zcAjaxPayment.php

    Quote Originally Posted by carlwhat View Post
    i would ensure that you are using this version of said file.
    Thanks for tracking this down @carlwhat.

    @vanhorn_s: updated file noted above is one of the many fixes in Zen Cart 1.5.8a, the first patch release to 1.5.8. It's a good practice to update to the latest at your earliest opportunity.
    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.

 

 

Similar Threads

  1. New install 1.5.8 Paypal Pro PHP Fatal error: 1062
    By gtgeorge in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 22 Dec 2022, 12:44 AM
  2. v153 PayPal Payments Pro 2.0 Payflow edition causing Express Checkout to error
    By quickguitar in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 20 Dec 2016, 06:27 PM
  3. v151 PayPal Payments Pro Error 15010
    By AnnetteK in forum PayPal Website Payments Pro support
    Replies: 12
    Last Post: 5 Feb 2016, 03:50 PM
  4. Test PayPal Payments Pro before signing up for a PayPal Pro account?
    By menappi in forum PayPal Website Payments Pro support
    Replies: 7
    Last Post: 23 Aug 2012, 10:43 PM
  5. PayPal Website Payments Pro Shipping Field Error
    By fergusmacdonald in forum PayPal Website Payments Pro support
    Replies: 3
    Last Post: 28 Mar 2008, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR