Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Cannot send ~ headers already sent.


Guest

Recommended Posts

Posted

Is it possible to set osCommerce up on a server if you don't have any administrative rights?

 

I'm attempting to setup the php scripts on a Red Hat hosting server that permits me to setup an use my own mysql database. I have only one problem. I can't seem to get rid of the headers already sent error. I've read through the forum and found that if you edit the files on a windows system you may have problems with the headers being sent. I edit them through cpanel file editor on the Red Hat host. I'm not really familiar with php :oops: but I'm learning as I go. Any advice would be helpful.

 

Thanks

Marty

Posted

Try removing any white space at the end of the scripts mentioned in the error message. You might also look for white space in any scripts included or required by those in the error message.

Posted

Yes this is right.. get rid of the white spaces at the end of the script in the file it mentions and it'll probably work!

 

Took me a while to find this out myself!

Posted

if it's says in the php error output where the headers start you know where to look for the white space.

Posted

:oops: I found the white space. They were in my config.php file for the catalog. There were two spaces right at the bottom of the file. I'm not sure how they got there since they didn't show up in any of my editors. When you highlight the file in the editor it will show blank spaces as well and none were showing after the ?>. The only place I could see them was in WS_FTP file edit. WS_FTP shows a black box for every "white space". I did untar the files on a windows system and sent them by ftp to my site without opening any of them so somewhow that space appeared on its own.

 

Then again, maybe some gremlin put those in when I went for coffee. :wink:

 

Thanks for the help.

Marty

Archived

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

×
×
  • Create New...