Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Plugin Contributions
    0

    Default Paypal IPN not working after upgrading PHP version

    Hi I recently upgraded to PHP 5.3.2 and now Paypal IPN is no longer working. When somebody places an order, the IPN url is called but the order is not added. If I login to Paypal and resent the IPN, then the order is aded without issue. I can also get the raw data Paypal has posted, repost it using curl and the order also gets added into the system.

    I have enabled the logging and on the first IPN call, the log stops at Breakpoint: 5 - Transaction type (txn_type) = unique. If I resend the IPN call then the next log carries on past breakpoint 5 showing the new order row being created.

    I have added some extra logging trying to track down the issue. The scipt stops within ipn_main_handler.php on the line
    Code:
    $shipping_modules = new shipping($_SESSION['shipping']);
    .

    If I look at the shipping module, it basically initialises any modules that are enabled. The only shipping module I have is flat. So within the shipping module the execution stops at
    Code:
    $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
    where class is flat. I can then dig into flat.php and there are no issues in the constructer function, it gets to the bottom without issue.

    Any ideas?
    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Paypal IPN not working after upgrading PHP version

    Using the PayPal IPN module is a step backwards, for reasons such as you're experiencing.
    Switch to Express Checkout instead. Then your customers' orders will be saved immediately while they're still on-screen, instead of having to wait for the background communications to happen and then break due to something wrong on your site or between PayPal's servers and yours.

    Further, maybe you're having PHP errors due to addon conflicts or missing/damaged files. Such errors should show up in debug files if you're using a current version of Zen Cart. ref: https://www.zen-cart.com/tutorials/index.php?article=82
    .

    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.

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Paypal IPN not working after upgrading PHP version

    Thanks DrByte It's now using Paypal express checkout without any issues.

 

 

Similar Threads

  1. Paypal Express not working after upgrade from ipn
    By lilrowo in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 30 Dec 2011, 01:56 AM
  2. My Paypal IPN and Express NOT WORKING after Paypal Expansion
    By styledata in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 29 Sep 2011, 02:11 AM
  3. Paypal IPN not working properly after installation on GoDaddy
    By Timbo53 in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 19 Nov 2010, 09:17 PM
  4. IPN Orders are not shown after upgrading to 1.3.9c
    By tomliu in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 31 May 2010, 04:03 PM
  5. admin page blank after upgrading to PHP 4.4.2, latest ZC version, IIS
    By r3dw00d in forum Installing on a Windows Server
    Replies: 0
    Last Post: 19 Oct 2009, 04: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