Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Posts
    449
    Plugin Contributions
    0

    Default Undefined index and undefined variable errors in paypalwpp

    Ever since January 3, 2022, every PayPal Express Checkout order has triggered the following errors:
    • Undefined index: PAYMENTREQUEST_0_ADDRESSSTATUS in line 1847 of paypalwpp.php
    • Undefined variable: country_code3 in paypalwpp.php lines 1983, 1997, and 2010
    • Undefined index: countries_id in paypalwpp lines 2022 and 2075

    A PayPal EC on January 2 did not trigger these notices. All orders were for virtual products. I transitioned to zc157c on the production server on January 1. Has anyone else experienced these errors, especially this year?

    php 7.3.27

  2. #2
    Join Date
    Jul 2012
    Posts
    16,796
    Plugin Contributions
    17

    Default Re: Undefined index and undefined variable errors in paypalwpp

    Was this transition to 1.5.7, 1.5.7c, or to the latest of the v157 branch in Github?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jun 2012
    Posts
    449
    Plugin Contributions
    0

    Default Re: Undefined index and undefined variable errors in paypalwpp

    Quote Originally Posted by mc12345678 View Post
    Was this transition to 1.5.7, 1.5.7c, or to the latest of the v157 branch in Github?
    The version is 1.5.7c.

  4. #4
    Join Date
    Jun 2012
    Posts
    449
    Plugin Contributions
    0

    Default Re: Undefined index and undefined variable errors in paypalwpp

    I should have provided the PayPal settings. Here they are:
    • Enable this payment module - true
    • Sort order of display - 5
    • Payment Zone - none
    • Express Checkout Shortcut Button - on
    • Set Order Status - Processing
    • Set Unpaid Order Status - Pending
    • Set Refund Order Status - Pending
    • Express Checkout: Require Confirmed Address - no
    • Express Checkout: Select Cheapest Shipping Automatically - Yes
    • Express Checkout: Skip Payment Page - yes
    • Express Checkout: Automatic Account Creation - Yes
    • Payment Action - Final Sale
    • Transaction Currency - Selected Currency
    • Store (Brand) Name at PayPal - [nothing entered]
    • Allow eCheck? - Instant Only
    • Fraud Magmt Filters - FMF - No
    • PayPal Page Style - Primary
    • PayPal Mode - payPal
    • Use InContext Checkout? - InContext
    • Live or Sandbox - live
    • Debug Mode - Log File

  5. #5
    Join Date
    Jun 2012
    Posts
    449
    Plugin Contributions
    0

    Default Re: Undefined index and undefined variable errors in paypalwpp

    I forgot to add one other undefined variable notice to the list in my first post in this thread: address_book_id on line 2075 in paypalwpp.php

  6. #6
    Join Date
    Jul 2012
    Posts
    16,796
    Plugin Contributions
    17

    Default Re: Undefined index and undefined variable errors in paypalwpp

    Initial review of code related to the above batista indicates that these issues may be previously unreported and seem to be yet unresolved. When say virtual product, could you 1, identify the product settings in the virtual section, the address required section and settings in that vicinity and 2, explain what makes this a virtual product and not simply a download?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v156 Undefined variable: errorHeadingFlag
    By PanZC2020 in forum Bug Reports
    Replies: 1
    Last Post: 30 Jan 2019, 04:47 PM
  2. v151 db Execute issue -- Undefined variable: $db
    By tmpinsnty in forum General Questions
    Replies: 14
    Last Post: 25 Apr 2018, 07:57 PM
  3. v154 Call to undefined method currencies::get_decimal_places() in paypalwpp.php line 1055
    By Kenton in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 12 Apr 2016, 07:04 AM
  4. v154 Tax Variable Undefined In GV Module
    By PaulRRogers in forum Bug Reports
    Replies: 0
    Last Post: 4 Mar 2015, 10:16 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