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 30 years I work on Database Architecture and data migration protocols. I am also a consultant in Web content management solutions and medias protecting solutions. I am 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. Besides my work, I like to work freelance only on some wordpress projects because it is relaxing and delightful CMS for me. When not working, I like to dance salsa and swing and to have fun with my little family.

You may also like...