Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot modify header information - headers already sent


Guest

Recommended Posts

Posted

Strange error. As my oscommerce shop was working fine on windows host. Considering certain featrues I have changed my host to linux hosting and I am getting nigtmares.

 

I had added two links two information box 1.About us 2. support. Both links were working fine. Now after shifting the host, I am facing strange problem.

 

When a registered customer want to login, instead of logging him in, an error page is displayed with the following errors.

 

"Warning: Cannot modify header information - headers already sent by (output started at /home/orissait/public_html/includes/languages/english.php:1) in /home/orissait/public_html/includes/functions/general.php on line 33"

 

Please don't tell me to check for white spaces or extra blank lines. As when I am replacing the file /includes/languages/english.php file from the oscommerce installation, there is no error. as soon as I insert the line defining the link in included in /includes/boxes/information.php file I start getting the same error.

Even if remove the line I have added and upload the file, I still get the same error. when I upload the original installation file the error is gone.

 

I am really scratching my head. as the same set of file is working well with my other installation on windows server. I will go mad. Please help.

Posted

The problem is at the begginning of the includes/languages/english.php file. If the very first character isn't <, then the

problem is most likely the format of the file. If you look at that file, it will probably look like <?php*/. If that is the case, you have to convert the format to Windows or maybe just a reload of it from a backup will fix it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
The problem is at the begginning of the includes/languages/english.php file. If the very first character isn't <, then the

problem is most likely the format of the file. If you look at that file, it will probably look like <?php*/. If that is the case, you have to convert the format to Windows or maybe just a reload of it from a backup will fix it.

 

Jack

Jack,

The first character is exactly as mentioned. Again as I mentioned that when I am uploading the unmodified file from oscommerce installation catalog/includes/languages/english.php the registered customer can login, if I say modify this file and insert a line like for example:-

 

define('BOX_INFORMATION_SUPPORT', 'Support'); and upload the file the user get the error as mentioned. When I revert back and delete the inserted line and upload the file I still get the same error on login, which looks strange. when I replace the file with the original one "no error"

Posted

Sorry for troubling you.

I don't know from where this character was getting inserted in the beginning of the file "  ", while uploading it. when I opened this english.php or linked file about us.php form oscommerce file, i found this character "  ". after removing this character, the error was gone. not only the logging was ok, but linked file also opened correctly.

 

Now the big question is from where this character is cripping in to it, when I am uploading the file from expression web.

Archived

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

×
×
  • Create New...