PayPal IPN Module malfunction on PHP 5.2 / 5.3 server

The problem : $cart_PayPal_IPN_ID was not always a global (e.g. between functions confirmation and process_button.

Find Code in : catalog/includes/modules/payment/paypal_ipn.php
tep_session_register(‘cart_PayPal_IPN_ID’);
// Terra register globals fix
//$_SESSION[‘cart_PayPal_IPN_ID’] = $cartID . ‘-‘ . $insert_id;

Replace with code :

// FS start
$GLOBALS[‘cart_PayPal_IPN_ID’] = $cartID . ‘-‘ . $insert_id;
// FS stop
tep_session_register(‘cart_PayPal_IPN_ID’);
// FS start
// Terra register globals fix
//$_SESSION[‘cart_PayPal_IPN_ID’] = $cartID . ‘-‘ . $insert_id;
// FS stop

You can also applicate this version patch by downloading it

osCommerce_PayPal_IPN_2_3_4_7

extradrmtech

Since 20 years I work on Database Architecture and data migration protocols. I am also a consultant in Web content management solutions. I am an experienced web-developer with over 10 years developing PHP/MySQL, C#, VB.Net applications ranging from simple web sites to extensive web-based business applications. When not writing code, I like to dance salsa and swing and have fun with my little family.

You may also like...