Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot Modify Header Information


Guest

Recommended Posts

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;
 }

////

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...