ozog Posted January 22, 2007 Share Posted January 22, 2007 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 More sharing options...
ozog Posted January 25, 2007 Author Share Posted January 25, 2007 doesn't anyone know the answer? Link to comment Share on other sites More sharing options...
countingsheep Posted January 25, 2007 Share Posted January 25, 2007 doesn't anyone know the answer? Ive been having the same problem with another contribution and have found answers that say there is a white space before or after the ending php tags. Mine wasnt on the specific file stated, but there was a whitespace. Link to comment Share on other sites More sharing options...
ozog Posted January 26, 2007 Author Share Posted January 26, 2007 Didn't help Link to comment Share on other sites More sharing options...
241 Posted January 26, 2007 Share Posted January 26, 2007 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! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
ozog Posted January 28, 2007 Author Share Posted January 28, 2007 That didn't help either. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.