Kidz Toyz Posted March 5, 2007 Share Posted March 5, 2007 If I click on the buy now button I get this error message Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/k/i/kidztoyz.org.uk/htdocs/www/includes/languages/english.php:2) in /data/members/paid/k/i/kidztoyz.org.uk/htdocs/www/includes/functions/general.php on line 33 It also comes up if you go on 'add to cart', 'write a review' and 'my account'. I know it's indicating that the error is in functions/general.php on line 33. My problem is that I can't see what is wrong, I'm new to this and as far as I remember this is a file that I've not changed at all. Can anyone help? This is the section that has line 33 //// Nikki // Redirect to another page or site function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } header('Location: ' . $url); tep_exit(); } //// Thanks, Nikki Link to comment Share on other sites More sharing options...
Kidz Toyz Posted March 5, 2007 Author Share Posted March 5, 2007 Line 33 is header('Location: ' . $url); Link to comment Share on other sites More sharing options...
Kidz Toyz Posted March 6, 2007 Author Share Posted March 6, 2007 I also have this: 1062 - Duplicate entry '8120320204b8bfffccb9b24ec4306cb2' for key 1 insert into oscommerce_sessions values ('8120320204b8bfffccb9b24ec4306cb2', '1173174917', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"GBP\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"index.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:0:{}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}') [TEP STOP] showing in the footer bar, under the logo. Any ideas people? Is it a related problem or a new one? Nikki Link to comment Share on other sites More sharing options...
Kidz Toyz Posted March 6, 2007 Author Share Posted March 6, 2007 Ignore the previous, footer seems to have sorted itself out?! :) The original problem still stands though and is getting rather more urgent now because it's stopping me from getting on :( Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.