Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

database admin giving error during export


ozog

Recommended Posts

When I use the export feature on the database_admin contribution, I get an error message stating that the "Warning: Cannot modify header information - headers already sent by (output started at /catalog/admin/database_admin.php:25) in /catalog/admin/database_admin.php on line 160

 

Warning: Cannot modify header information - headers already sent by (output started at /catalog/admin/database_admin.php:25) in /catalog/admin/database_admin.php on line 161"

 

This is what line 160 and 161 look like in the database_admin.php file--" header("Content-type: text/plain");

header("Content-Disposition: filename=$_SESSION[DBN].$_SESSION[TBN].sql");"

 

What could be causing this error? Any help would be appreciated. I have only a very small knowledge of PHP as it has some resembelance to C/C++.

Link to comment
Share on other sites

The headers already sent is usually a whitespace error, so just to make sure download your admin/database_admin.php file using an ftp program and edit offline.

 

Open the file using an editor such as dreamweaver and locate line #821 place your cursor just after the ?> and hit delete several times, save the file and upload using an ftp program.

 

Lines #160 and #161 should not be the cause as they are part of the switched case for exporting in csv.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...