Page 1 of 1

1.4.8b Greek Language switching error

Posted: Fri Jul 09, 2010 1:52 pm
by maccent
I have installed to languages. when i switching between them i have the folowing error

Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/opencart/catalog/language/greek/common/home.php:1) in /Applications/MAMP/htdocs/opencart/system/engine/controller.php on line 27


or when i switch currency i have this


Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/opencart/catalog/language/greek/common/home.php:1) in /Applications/MAMP/htdocs/opencart/system/library/currency.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/opencart/catalog/language/greek/common/home.php:1) in /Applications/MAMP/htdocs/opencart/system/engine/controller.php on line 27

Re: 1.4.8b Greek Language switching error

Posted: Fri Jul 09, 2010 6:18 pm
by JAY6390
this isn't a bug. You've likely got a space or new line before the <?php at the start of that language file (/catalog/language/greek/common/home.php) so put your cursor to the left of the < and delete everything before it

Re: Post any OpenCart 1.4.8/1.4.8b Bugs here!

Posted: Fri Jul 09, 2010 7:42 pm
by maccent
JAY6390 wrote:this isn't a bug. You've likely got a space or new line before the <?php at the start of that language file (/catalog/language/greek/common/home.php) so put your cursor to the left of the < and delete everything before it
No that's not true i double checked and it gives me the same error

Re: 1.4.8b Greek Language switching error

Posted: Fri Jul 09, 2010 7:46 pm
by JAY6390
This could be a BOM issue then, but it's DEFINITELY because of output on that line before the <?php
Some editors add the BOM automatically. What are you using to edit your file?

BOM reference: http://en.wikipedia.org/wiki/Byte_order_mark

Re: 1.4.8b Greek Language switching error

Posted: Fri Jul 09, 2010 10:27 pm
by maccent
JAY6390 wrote:This could be a BOM issue then, but it's DEFINITELY because of output on that line before the <?php
Some editors add the BOM automatically. What are you using to edit your file?

BOM reference: http://en.wikipedia.org/wiki/Byte_order_mark

Ok you have absolutely right and i apologize. The problem is not only on "home.php" file but with all the greek language package which i download from the extensions http://www.opencart.com/index.php?route ... sion_id=86. All the files are saved either as UTF8 with BOM or with windows CRLF.

I will post a comment also on the specific extension.

Thank you for your time

Re: 1.4.8b Greek Language switching error

Posted: Fri Jul 09, 2010 10:33 pm
by JAY6390
Sure no problem :)

Re: 1.4.8b Greek Language switching error

Posted: Tue Oct 05, 2010 2:09 am
by vasioum
hello. I have exactly the same problem but I havent understand what I have to do.... :-(

I have made the translation with notpad++ Can someone give me please a tip?

...sorry for my english

Re: 1.4.8b Greek Language switching error

Posted: Tue Oct 05, 2010 5:42 am
by vasioum
Ok! Finaly! I opened the file with notpad ++

>Click on "Format"
>Select "Encode in UTF-8 without BOM"
>Save

Done.

Re: 1.4.8b Greek Language switching error

Posted: Fri Feb 04, 2011 11:14 pm
by KuriN
Ok, i have the same error. Language and currency. I have installed Bulgarian.

So i did everything you guys said here - opened it with notpad++ and converted it and encoded it in Encode in UTF-8 without BOM.... but still the error comes up.

There is no space before the <?php

Whats next?

Re: 1.4.8b Greek Language switching error

Posted: Thu May 19, 2011 5:16 pm
by sirjoseph
Yes! I have the same problem!
It happens when someone try to change the currency or language.
If I press a back the currency or language has changed right.
If it would be a real header (language file related) error it may not allow to appear the page wherever you are!!!