Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Cannot modify header information


lomoland

Recommended Posts

Posted

Calling all,

 

I get the following warning when I go to take a product to checkout. I have checked that there are no extra spaces at the end of the PHP statement.

 

 

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/user/mydomain.com/catalog/includes/languages/english.php:3) in /hsphere/local/home/user/mydomain.com/catalog/includes/functions/general.php on line 23

 

Any advise greatly appreciated,

 

Al.

Posted

I get same error when filling out the Contact Us form:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/joshua/public_html/includes/languages/english/contact_us.php:11) in /home/joshua/public_html/includes/functions/general.php on line 29

Posted

What type of system are you guys running from? windows?

 

I am thinking you are useing windows, if you are read this,

 

Let's do some debugging ;-)

General rule: Always look at the first error message and ignore the rest.

 

So what is happening here?

 

- You are trying to send mail from a windows machine and it doesnt work, causing an error.

 

So what do we do?

 

- You need to have correct settings in your php.ini for this. Search for the SMTP part of php.ini and correct the stiuff. Maybe you even need to setup a local SMTP server.

- You need to setup the correct entries in the osC configuration. This has been explained before, but I will repeat here:

 

- Configuration - E-Mail Options:

 

E-Mail Transport method must be SMTP for windows

E-Mail Linefeeds must be CR+LF for windows

 

All other errors are caused by the mere fact that osC was unable to send the mail and can be ignored.

 

You can also search the forums for more information about smtp and windows. This question has been discussed numerous times before.

 

let us know if this fixs the problem!

 

digi

*Outlined in chalk everone looks the same*

 

Currently useing OSC 2.2 MS1

running on Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_jk/1.2.0 mod_perl/1.26 PHP/4.3.3 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b

Posted

Digi, I apologize for the lack of information. I was posting from work and was distracted. Here is my system information:

 

Operation System Linux

Apache Version 1.3.28 (Unix)

Kernel Version 2.4.18-3

Perl Version 5.006001

PHP Version 4.3.2

MySQL Version 4.0.13

 

This is a virtual server and I do not have shell access.

Posted

I forgot to mention, the mail is being sent as it's supposed to.

Posted

Do this...if you are using the text editor in cpanel go to the file that is giving the error and open the editor, scroll down all the way until you can go no further. See if you can place the cursor on the line below the final "?>", if so hit delete until the cursor is right next to "<?" and then hit save. For whatever reason the editor in things such as cpanel add an extra line to the bottom of every file when you go to edit it. After awhile, you either just get used to deleting the extra lines each time you edit a file or you start just using a phpeditor and FTP to avoid the hastle. ;) I know in my own case I have xcontroller and it adds at least two lines each time...yippee! HTH

Posted

I think you're right. I just had and resolved this same issue adding an ssl shared certificate. I couldn't figure out what the heck I did wrong until I kept seeing errors on line 60 and the page was only 56 lines deep.

Posted

Sure enough! I had to edit it no less than 6 times before it finally removed the extra blank line permanently. Works great now, thanks Jason!

Posted

Got it,

 

There was 2 extra linespaces in my english.php file. What a killer. Thanks for the help. I.O.U.1.

 

Al to tha D.

Archived

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

×
×
  • Create New...