robertk1 Posted March 5, 2007 Share Posted March 5, 2007 When I hit the Add to Cart button, products are not added to the cart. It always remains "Your Shopping Cart is empty!" We are using the Plesk 8.1 installer with no modifcations (yet). This is driving me crazy, as I have 8 carts to move over to a new server! see it here: osCommerce Test Site Please feel free to go there and add items to the cart. I'll be deleting this one once the solution is found ...... Any ideas where to begin looking? Your help is appreciated..... Thanks! Link to comment Share on other sites More sharing options...
Velveeta Posted March 5, 2007 Share Posted March 5, 2007 When I hit the Add to Cart button, products are not added to the cart. It always remains "Your Shopping Cart is empty!" We are using the Plesk 8.1 installer with no modifcations (yet). This is driving me crazy, as I have 8 carts to move over to a new server! see it here: osCommerce Test Site Please feel free to go there and add items to the cart. I'll be deleting this one once the solution is found ...... Any ideas where to begin looking? Your help is appreciated..... Thanks! Depending on your version of php, it may not like certain superglobal references, such as $HTTP_POST_VARS instead of $_POST... Easiest way to debug this would be to put a check in includes/application_top.php and have it print_r($HTTP_POST_VARS) inside of the add_product section of the $action switch statement... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
robertk1 Posted March 5, 2007 Author Share Posted March 5, 2007 Depending on your version of php, it may not like certain superglobal references, such as $HTTP_POST_VARS instead of $_POST... Easiest way to debug this would be to put a check in includes/application_top.php and have it print_r($HTTP_POST_VARS) inside of the add_product section of the $action switch statement... Richard. Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue. Thanks! Link to comment Share on other sites More sharing options...
Velveeta Posted March 5, 2007 Share Posted March 5, 2007 Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue.Thanks! Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Velveeta Posted March 5, 2007 Share Posted March 5, 2007 Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue.Thanks! Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Velveeta Posted March 5, 2007 Share Posted March 5, 2007 Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen... Richard. Doh, stupid double-posting... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
robertk1 Posted March 5, 2007 Author Share Posted March 5, 2007 Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen... Richard. If you would be so kind, please email me the modified file and I will insert it. After adding your mod, the screen just showed 100% blank. I strongly suspect I was inserting it into the wrong area. Email me HERE Thank you for your kind help! Link to comment Share on other sites More sharing options...
Velveeta Posted March 5, 2007 Share Posted March 5, 2007 If you would be so kind, please email me the modified file and I will insert it. After adding your mod, the screen just showed 100% blank. I strongly suspect I was inserting it into the wrong area. Email me HERE Thank you for your kind help! Ok, instead of that, how about you send me your application_top.php file, and I'll modify it and send it back... That way, in case you or someone else have made changes to it, those changes are still in there along with mine... You can email it to me at rllindsey <at> gmail.com... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
robertk1 Posted March 5, 2007 Author Share Posted March 5, 2007 Ok, instead of that, how about you send me your application_top.php file, and I'll modify it and send it back... That way, in case you or someone else have made changes to it, those changes are still in there along with mine... You can email it to me at rllindsey <at> gmail.com... Richard. Sent --- thanks Link to comment Share on other sites More sharing options...
Velveeta Posted March 6, 2007 Share Posted March 6, 2007 Sent --- thanks Sorry, just checked the forums for today and saw this, and it had gone to my spam folder in email so I didn't notice it come in yesterday... It's on its way back to you now... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.