Guest Posted June 16, 2011 Share Posted June 16, 2011 I get the following errors when trying to add a product to my shopping cart: Notice: Undefined index: id in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php on line 374 Notice: Undefined index: id in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php on line 374 Warning: Cannot modify header information - headers already sent by (output started at /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php:374) in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/functions/general.php on line 33 Not sure why. Keith Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2011 Share Posted June 16, 2011 This only happens from the product's page. I tried to add from the New Products page and all worked fine. Link to comment Share on other sites More sharing options...
stephen89 Posted June 16, 2011 Share Posted June 16, 2011 Don't personally know much php, but a quick google search came up with this http://www.oscommerce.com/forums/topic/156547-header-errors-please-help/ not saying it will help but it never hurts to try. Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2011 Share Posted June 16, 2011 No, does not pertain to my issue. No whitespace found. Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2011 Share Posted June 17, 2011 Here are the lines causing the error: // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Please note that the product does actually get added, then the error codes are displayed. Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2011 Share Posted June 17, 2011 Solved with this!!! http://addons.oscommerce.com/info/8046 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.