Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Debug logs Undefined index: txn_type, random API calls from Paypal 173.0.81.1

    I have a mongrel 156-157 site.
    I have Report All Errors on permanently (NoDups) and have no errors apart from these.

    I get a block of these (like 9 over 45 minutes) with identical errors. The originating IP address is a Paypal site/appears to be legit.
    There does not appear to be any relation to any orders: an order may occur in the midst of these, or not at all.

    My query is if anyone else has Report All Errors enabled on a production site?
    Unlikely on a 156 site as it is a pile of work to clear the inherent errors to zero, and unlikely that there is a ZC157 (which has most errors fixed) in production/being used for Paypal tests....although this issue appears to be unrelated to Paypal orders.

    Is it possible Paypal is making these calls for its own purposes...but no-one has noticed, due to the above reasons?

    In the following debug, the final error for Call to undefined function zen_update_orders_history
    I don't get. As the function exists and other functions in the same file are used previously/so file is proven to have been loaded.

    I have modified the debug to show more details, there is no-one logged in on this session.
    Guest
    Navigation: [0][not set] [1][not set] [2][not set]
    Request URI: /tienda/ipn_main_handler.php
    IP address: 173.0.81.1
    --> PHP Notice: Undefined index: txn_type in /.../tienda/ipn_main_handler.php on line 226.


    [23-Jun-2020 19:44:55 Europe/Madrid]
    Guest
    Navigation: [0][not set] [1][not set] [2][not set]
    Request URI: /tienda/ipn_main_handler.php
    IP address: 173.0.81.1
    --> PHP Notice: Undefined index: txn_type in /.../tienda/ipn_main_handler.php on line 231.


    [23-Jun-2020 19:44:55 Europe/Madrid]
    Guest
    Navigation: [0][not set] [1][not set] [2][not set]
    Request URI: /tienda/ipn_main_handler.php
    IP address: 173.0.81.1
    --> PHP Notice: Undefined index: pending_reason in /.../tienda/ipn_main_handler.php on line 472.


    [23-Jun-2020 19:44:55 Europe/Madrid] PHP Fatal error: Uncaught Error: Call to undefined function zen_update_orders_history() in /.../tienda/includes/modules/payment/paypal/paypal_functions.php:649
    Stack trace:
    #0 /.../tienda/ipn_main_handler.php(476): ipn_update_orders_status_and_history('20200345', '1', 'parent')
    #1 {main}
    thrown in /.../tienda/includes/modules/payment/paypal/paypal_functions.php on line 649


    [23-Jun-2020 19:44:55 Europe/Madrid] Request URI: /tienda/ipn_main_handler.php, IP address: 173.0.81.1
    --> PHP Fatal error: Uncaught Error: Call to undefined function zen_update_orders_history() in /.../tienda/includes/modules/payment/paypal/paypal_functions.php:649
    Stack trace:
    #0 /.../tienda/ipn_main_handler.php(476): ipn_update_orders_status_and_history('20200345', '1', 'parent')
    #1 {main}
    thrown in /.../tienda/includes/modules/payment/paypal/paypal_functions.php on line 649.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Debug logs Undefined index: txn_type, random API calls from Paypal 173.0.81.1

    Quote Originally Posted by torvista View Post
    I have a mongrel 156-157 site.
    I have Report All Errors on permanently (NoDups) and have no errors apart from these.

    I get a block of these (like 9 over 45 minutes) with identical errors. The originating IP address is a Paypal site/appears to be legit.
    There does not appear to be any relation to any orders: an order may occur in the midst of these, or not at all.

    My query is if anyone else has Report All Errors enabled on a production site?
    Unlikely on a 156 site as it is a pile of work to clear the inherent errors to zero, and unlikely that there is a ZC157 (which has most errors fixed) in production/being used for Paypal tests....although this issue appears to be unrelated to Paypal orders.

    Is it possible Paypal is making these calls for its own purposes...but no-one has noticed, due to the above reasons?

    In the following debug, the final error for Call to undefined function zen_update_orders_history
    I don't get. As the function exists and other functions in the same file are used previously/so file is proven to have been loaded.

    I have modified the debug to show more details, there is no-one logged in on this session.
    While I haven't (yet) located when /includes/auto_loaders/paypal_ipn.core.php was updated for zc157, it sounds like you need to add the following line
    Code:
      $autoLoadConfig[60][] = array('autoType' => 'require',
                                    'loadFile' => DIR_WS_FUNCTIONS . 'functions_osh_update.php');
    ... just prior to the auto-load for DIR_WS_FUNCTIONS. 'functions_general.php'. Those are most likely PayPal IPNs coming back with status updates, maybe?

    Noting that the zc157 version of the /ipn_main_handler.php was updated to use the zen_update_orders_history function; you've apparently pulled that version in without the above change to its auto-loader.
    Last edited by lat9; 23 Jun 2020 at 07:54 PM. Reason: Add note

  3. #3
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Debug logs Undefined index: txn_type, random API calls from Paypal 173.0.81.1

    Thanks!


    I have had to add a few other checks in the ipn_handler for php notices...I would hope someone is doing nit-picking real transactions with ZC157 trap these notices...
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Debug logs Undefined index: txn_type, random API calls from Paypal 173.0.81.1

    That fix did clear the fatal error.

    The other notices remain...to be seen if they are squashed in ZC157!
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 

Similar Threads

  1. Replies: 10
    Last Post: 6 Sep 2014, 02:55 AM
  2. Authorize.net AIM still generating debug logs even with debug disabled
    By llynix in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 11 May 2010, 01:03 AM
  3. Replies: 9
    Last Post: 29 Jun 2009, 06:39 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