{"id":2078,"date":"2014-08-15T09:07:21","date_gmt":"2014-08-15T07:07:21","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=2078"},"modified":"2014-08-15T09:07:50","modified_gmt":"2014-08-15T07:07:50","slug":"paypal-ipn-module-malfunction-on-php-5-2-5-3-server","status":"publish","type":"post","link":"http:\/\/www.extradrm.com\/?p=2078","title":{"rendered":"PayPal IPN Module malfunction on PHP 5.2 \/ 5.3 server"},"content":{"rendered":"<p>The problem : $cart_PayPal_IPN_ID was not always a global (e.g. between functions confirmation and process_button.<\/p>\n<div>Find Code in : catalog\/includes\/modules\/payment\/paypal_ipn.php<\/div>\n<div>tep_session_register(&#8216;cart_PayPal_IPN_ID&#8217;);<br \/>\n\/\/ Terra register globals fix<br \/>\n\/\/$_SESSION[&#8216;cart_PayPal_IPN_ID&#8217;] = $cartID . &#8216;-&#8216; . $insert_id;<\/div>\n<p>Replace with code :<\/p>\n<p>\/\/ FS start<br \/>\n$GLOBALS[&#8216;cart_PayPal_IPN_ID&#8217;] = $cartID . &#8216;-&#8216; . $insert_id;<br \/>\n\/\/ FS stop<br \/>\ntep_session_register(&#8216;cart_PayPal_IPN_ID&#8217;);<br \/>\n\/\/ FS start<br \/>\n\/\/ Terra register globals fix<br \/>\n\/\/$_SESSION[&#8216;cart_PayPal_IPN_ID&#8217;] = $cartID . &#8216;-&#8216; . $insert_id;<br \/>\n\/\/ FS stop<\/p>\n<p>You can also applicate this version patch by downloading it<\/p>\n<p><a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2014\/08\/osCommerce_PayPal_IPN_2_3_4_7.zip\">osCommerce_PayPal_IPN_2_3_4_7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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(&#8216;cart_PayPal_IPN_ID&#8217;); \/\/ Terra register globals fix \/\/$_SESSION[&#8216;cart_PayPal_IPN_ID&#8217;] = $cartID . &#8216;-&#8216; . $insert_id; Replace&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2841,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[95,301],"youtube_video":null,"_links":{"self":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2078"}],"collection":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2078"}],"version-history":[{"count":0,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2841"}],"wp:attachment":[{"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2078"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}