Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Cannot modify header information


mom4x

Recommended Posts

Posted

Starting from the beginning...

 

I have been attempting recently to change my title and header information. I have used the information from other forums to do this. (I'm a little green with this yet)

 

After successfully changing what I wanted (so I thought), I decided I best check the site and make sure all is working properly.

 

I logged in and received this message:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/homescho/public_html/includes/languages/english.php:327) in /home/homescho/public_html/login.php on line 43

 

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

 

So I then changed back to the previous version of the title and header and now am still receiving this warning. Is there anyone out there who could help me fix this? Keep in mind I'm still learning. If you need additional info to help me just let me know.

 

Appreciate any help! Thanks!

 

:)

Posted

I eliminated all white space and it worked!

 

Thank you so much! :D

  • 4 years later...
Posted

I am still having problem ( Warning: Cannot modify header information - headers already sent by (output started at /xampp/happy/includes/general.php:29) in /xampp/happy/include/function/email.php on line 553)

 

I am aware that there is some posting to remove the whitespace ?> however i still dont get this to work.

 

I have look in to file from header.php and general.php in include folder but did not realise any whitespace.

 

The error is really getting on my nerve.

 

Can someone advise wether how i can resolve this problem? PLEASE ! PLEASE ! PLEASE

Posted
I am aware that there is some posting to remove the whitespace ?> however i still dont get this to work.

Remove the whitespace after the final ?>

  • 2 weeks later...
Posted
chfields - you are the man - had the same issue and it worked.

 

PS.. My whitespace was at the top - so double check your codes

 

This was helpful to me as well. Dreamweaver may be placing extra spaces when editing a particular file. Be careful.

Posted

Warning: Cannot modify header information - headers already sent by (output started at /home/hordecom/public_html/includes/languages/english/login.php:22) in /home/hordecom/public_html/includes/functions/general.php on line 31

 

this is what mine says when a customer trys to log in... no white space either....

 

HELP plz

Posted

Post the contents of this file:

 

/includes/languages/english/login.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

  • 2 months later...
Posted

I had the same issue, didnt have any white spaces, but realized that when I first got to the login of my admin page, there was a "session not started" string at the top of the screen. In my admin/login.php at line 15-17 I commented the following lines:

 //if ($session_started == false) {
 //echo 'session not started';
// }

Don't know if this applies to everyone here, but thought I post it. So far it works, not sure if it will mess anything else up in the future. I am working with reg globals off...

Posted

Hi everyone, I had the same issue, customers got an error message of "Warning: Cannot modify header information...." similar to below except my file error was in: .../includes/languages/english/modules/shipping/rfq.php

 

Funny thing is, I've had this file installed and operational for about a year or more, but I just copy/pasted my whole store to a new server on Godaddy (becuase Dot5hosting sql servers just completely gave up on me) and for some reason goaddy did not like it. Sure enough, I removed the white space after the ?> at the end of the file and BAM! all is good now.

 

Thanks for the heads up on removing the white space!

 

Warning: Cannot modify header information - headers already sent by (output started at /home/hordecom/public_html/includes/languages/english/login.php:22) in /home/hordecom/public_html/includes/functions/general.php on line 31

 

this is what mine says when a customer trys to log in... no white space either....

 

HELP plz

Posted

Is there any actuall install instructions for the Header Tag Contri??

 

(file: header_tags.php)

 

I tried adding to the product_info.php page with no luck.

 

I don't see how it would become live in the admin section. Any ideas??

 

:blush:

Posted
Is there any actuall install instructions for the Header Tag Contri??

 

(file: header_tags.php)

 

I tried adding to the product_info.php page with no luck.

 

I don't see how it would become live in the admin section. Any ideas??

 

:blush:

You need to post this elswwhere.

Archived

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

×
×
  • Create New...