Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot modify header


Guest

Recommended Posts

Have a client at www.bodytropolis.com where they are suddenly (been working for months) getting the error below when someone is purchasing anything:

 

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/modules/shipping/table.php:1) in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/general.php on line 32

 

Any help would be greatly appreciated. Thanks.

Link to comment
Share on other sites

I followed this and now the whole site is down at www.bodytropolis.com with the error:

 

 

Parse error: parse error, unexpected T_VARIABLE in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/general.php on line 531

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/general.php:531) in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/sessions.php on line 67

 

Fatal error: Call to undefined function: tep_not_null() in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/banner.php on line 44

Link to comment
Share on other sites

You should always d/l a copy of the files on your computer, edit it with a text editor and upload back to your site

The file manager and windows dont get along and everytime you edit it will add a extra line eighter at the beginnig or the end of the file

 

The_Bear

Link to comment
Share on other sites

I used the OSCommerce file manager and edited in there.

:rolleyes:

 

Read through this forum.

 

The file manager's editor is notorious for munging files.

 

You need to edit with an external editor and upload.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

There's a terrific file manager available for free (single user) at http://www.gossamer-threads.com/scripts/fileman/index.htm

 

I'm not currently using it since I have other solutions but I've used it in the past with good success.

 

It lets you edit on line, u/l and d/l and gives you some telnet/ssh like control for people who don't have telnet/ssh access.

 

It's an install but it's not too hard.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I did as you said and removed the spaces at the bottom of both of these files and now I am back to the error:

 

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/modules/shipping/table.php:1) in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/functions/general.php on line 32

Link to comment
Share on other sites

Actually the error is now back for some new people and I am getting this error when attempting to pay for purchase:

 

Fatal error: Call to undefined function: curl_init() in /usr/local/apache/htdocs/bodytropolis/bodytropiles/shopping/catalog/includes/linkpoint/lpphp.php on line 166

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...