louis1st Posted December 1, 2004 Share Posted December 1, 2004 hi on my site, i am currently getting the following error message: Warning: Cannot modify header information - headers already sent by (output started at /home/sites/site245/web/shop/includes/languages/english.php:347) in /home/sites/site245/web/shop/includes/functions/general.php on line 29 My understanding is that it's because of a space between some lines which should not be there... Is this correct? also, as this is the "general.php " file I have just downloaded from oscommerce.com I am not sure how this file can come up with an error message straight away once uploaded (I haven't edited it at all) .... this is very strange...any ideas anybody? where can i get the correct file without the spaces in between the lines? is there a problem with my hosting account? what's happening as i am not doing anything to the files, but after a while i do get this error message!? is there a way to sort this so this doesn't happen again? thanks in advance for your help Link to comment Share on other sites More sharing options...
gscreations Posted December 1, 2004 Share Posted December 1, 2004 this often occurs when there is whitespace at the bottom of files put your cursor right after ?> at the bottom of the page and hit delete a few times making sure that nothing appears after ?> then upload and try again its a problem with some editing programs they add whitespace automatically, what are you using to edit with Link to comment Share on other sites More sharing options...
louis1st Posted December 1, 2004 Author Share Posted December 1, 2004 this often occurs when there is whitespace at the bottom of files put your cursor right after ?> at the bottom of the page and hit delete a few times making sure that nothing appears after ?> then upload and try again its a problem with some editing programs they add whitespace automatically, what are you using to edit with <{POST_SNAPBACK}> i didn't edit the file at all, just downloaded oscommerce from this site, and uploaded the file directly into my webspace account.... i didn't actually open or edit the file.... Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2004 Share Posted December 1, 2004 Did you extract the files on a Windows machine, and then upload to a Linux machine? If so, and the FTP software you used either did a binary upload, or didn't properly translate the EOL characters, then you might have an extraneous character at the end of every line - - makes script parsing (i.e. PHP execution) spotty at best. -jared Link to comment Share on other sites More sharing options...
OceanRanch Posted December 1, 2004 Share Posted December 1, 2004 Actually the error message is indicating that the problem with spaces and empty lines is in /home/sites/site245/web/shop/includes/languages/english.php This file is normally editted by folks to personalize the site. HTH Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.