Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot Modify Header Information


Guest

Recommended Posts

Posted

Whats wrong here?

 

Warning: Cannot modify header information - headers already sent by (output started at /home/croberts/public_html/13GcC/includes/languages/english/orders.php:2) in /home/croberts/public_html/13GcC/includes/functions/general.php on line 86

General.php

 

// Redirect to another page or site
 function tep_redirect($url) {
global $logger;

if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
  tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}

header('Location: ' . $url);

if (STORE_PAGE_PARSE_TIME == 'true') {
  if (!is_object($logger)) $logger = new logger;
  $logger->timer_stop();
}

exit;
 }

////

Posted
Whats wrong here?

 

Warning: Cannot modify header information - headers already sent by (output started at /home/croberts/public_html/13GcC/includes/languages/english/orders.php:2) in /home/croberts/public_html/13GcC/includes/functions/general.php on line 86

General.php

 

// Redirect to another page or site
 function tep_redirect($url) {
global $logger;

if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
  tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}

header('Location: ' . $url);

if (STORE_PAGE_PARSE_TIME == 'true') {
  if (!is_object($logger)) $logger = new logger;
  $logger->timer_stop();
}

exit;
 }

////

This might be white spaces

open this file up includes/languages/english/orders.php delete and empty lines before and after ?> at the bottom of the file

Posted

Thanks I appreciate your help! This solved the problem. Again many thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...