Page 1 of 1

Warning: Cannot modify header information - headers already

Posted: Mon Jun 15, 2009 9:12 pm
by georgekrastev
Hi,

I have short question. Since I uploaded the open cart to the remote server I am getting the following warnings:

Warning: Cannot modify header information - headers already sent by (output started at /homepages/31/d232853729/htdocs/oniarteu/catalog/language/german/german.php:1) in /homepages/31/d232853729/htdocs/oniarteu/system/library/currency.php on line 44

Warning: Cannot modify header information - headers already sent by (output started at /homepages/31/d232853729/htdocs/oniarteu/catalog/language/german/german.php:1) in /homepages/31/d232853729/htdocs/oniarteu/system/library/response.php on line 65

Unfortunately I do not know where they are comming from, but when I am working with my localhost everithing works fine!
I have added German lenguage as default and removed English.

Many thanks in advance for your support.

Regards,
George

Re: Warning: Cannot modify header information - headers already

Posted: Mon Jun 15, 2009 9:17 pm
by georgekrastev
Sorry. I have forgot to mention that I am using opencart v1.2.8.
Thanks

Re: Warning: Cannot modify header information - headers already

Posted: Tue Jun 16, 2009 12:48 am
by Daniel
goto your german.php file and check for any extra spaces at the bottom of the file.

Re: Warning: Cannot modify header information - headers already

Posted: Sat Jun 20, 2009 8:46 pm
by georgekrastev
Hi Daniel,

Thanks for your advice. Actually this is the first thing I did, but does not help. In fact the german.php is original english.php I copy-pasted with one modification. The solution I have found I explained under:
http://forum.opencart.com/viewtopic.php ... 671#p21671

Best regards,
George

Re: Warning: Cannot modify header information - headers alre

Posted: Wed Aug 24, 2011 10:18 pm
by bLIGU
georgekrastev wrote:Hi Daniel,

Thanks for your advice. Actually this is the first thing I did, but does not help. In fact the german.php is original english.php I copy-pasted with one modification. The solution I have found I explained under:
http://forum.opencart.com/viewtopic.php ... 671#p21671

Best regards,
George
Thx George!! I copy the solution here. Use the UltraEdit or other to change the format of header.php file.

Re: array_combine() and Cannot modify header information warning
by AndreasT ยป Mon Nov 16, 2009 6:55 pm
Hello.
Saving the files as UTF-8 without BOM works for me. Seems the byte order markers are interpreted as content and thus the error.
Cheers,
Andreas

Re: Warning: Cannot modify header information - headers alre

Posted: Wed Jan 11, 2012 4:07 am
by ab330ci
hello every body, i had the same problem with

the Cannot modify header information - headers already sent by (output started at.............

and i found the problem, when you edit a *.php file using txt editor you have to check under what format ur saving the file after editing , i used to change the footer.php in catalog/language/bulgarian/common/footer.php with a text editor so i received this problem , i just used the orginal file and made my correction under dreamweaver and the error message did'nt appear anymore

Re: Warning: Cannot modify header information - headers alre

Posted: Wed Jan 11, 2012 8:41 pm
by Daniel
make sure the files are saved in utf-8