Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message When Try To Update Category In Admin


grantli2002

Recommended Posts

I suddenly get the following error message when I try to update the category in admin.

Warning: Cannot modify header information - headers already sent by (output started at /home/onead3/public_html/admin/includes/languages/english.php:303) in /home/onead3/public_html/admin/includes/functions/general.php on line 22

 

I have many categories set up under Admin - Catalog. I could move the category or rename or change it without problem till yesterday.

Say, I have a category called "apple tree". If I want to change it into "lemon tree", I will see above error message. The category name did get changed even with the above error message.

 

On line 22 of general.php, I see the following clause (the bold clause) in the following, can someone tell me what should be done with it? I know 0 about php, I am only comfortable with copy and paste, so please help.

 

// 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

Never mind, I find the answer. I just noticed another file english.php, I copied and pasted something yesterday and didn't use it. After delete them, it is good.

 

/home/onead3/public_html/admin/includes/languages/english.php:303

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...