Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2009
    Posts
    430
    Plugin Contributions
    0

    Default PHP Deprecated Warning

    I am running Zen Cart v.2.1.0 and haven't made any changes to it, my Paypal or my PHP version, but just today I started receiving the PHP deprecated warning of:

    [10-Oct-2025 13:55:49 America/Dallas] Request URI: /shop/index.php?main_page=checkout_process, IP address: 74.110.202.141, Language id 1
    #0 /home/mystore/public_html/shop/includes/modules/payment/paypalwpp.php(514): zen_debug_error_handler()
    #1 /home/mystore/public_html/shop/includes/classes/payment.php(350): paypalwpp->before_process()
    #2 /home/mystore/public_html/shop/includes/modules/checkout_process.php(98): payment->before_process()
    #3 /home/mystore/public_html/shop/includes/modules/pages/checkout_process/header_php.php(13): require('...')
    #4 /home/mystore/public_html/shop/index.php(35): require('...')
    --> PHP Warning: Undefined array key "PAYMENTINFO_0_TAXAMT" in /home/mystore/public_html/shop/includes/modules/payment/paypalwpp.php on line 514.

    I have read in other posts about it being hard to update the payment modules due to the large variables of testing it.....so just thought I'd post it to possibly help with a future upgrade.

    Hope this helps,

    Jeff

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,731
    Plugin Contributions
    95

    Default Re: PHP Deprecated Warning

    Hmm, is that repeatable? If so, please enable the module's debug-to-file. Once you've captured the debug-output, send me a PM and I'll send you my direct email address so you can send that debug-output for review.

  3. #3
    Join Date
    Oct 2009
    Posts
    430
    Plugin Contributions
    0

    Default Re: PHP Deprecated Warning

    Sure thing.....I will turn on the Debug now and send you a PM later today with its output.

    Thanks,

    Jeff

  4. #4
    Join Date
    Jan 2004
    Posts
    66,440
    Plugin Contributions
    279

    Default Re: PHP Deprecated Warning

    While the line numbers are a little different, I think this fix is what should address that.
    https://github.com/zencart/zencart/pull/7383/files
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2009
    Posts
    430
    Plugin Contributions
    0

    Default Re: PHP Deprecated Warning

    Thanks Dr.Byte....yes, this has fixed this PHP...as I have applied it and have had many orders come through without error.

    Thanks for posting this!

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,449
    Plugin Contributions
    327

    Default Re: PHP Deprecated Warning

    Yep, this is the fix. I have applied it to several carts already.
    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. v158 v1.58a with php 8.1, PHP Warning and PHP Deprecated
    By njcyx in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 11 Jun 2024, 10:00 PM
  2. Replies: 9
    Last Post: 16 Feb 2024, 06:20 PM
  3. v157 Warning and deprecated messages for CSS Flyout menu
    By Joseph M in forum General Questions
    Replies: 5
    Last Post: 17 Apr 2021, 02:22 AM
  4. v157 FedEx Module Version 1.5.4, PHP Warning and Deprecated error in logs
    By Mattie C in forum Addon Shipping Modules
    Replies: 3
    Last Post: 12 Aug 2020, 11:58 PM
  5. Replies: 2
    Last Post: 21 Aug 2010, 09:13 PM

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