Post by maccent » Fri Jul 09, 2010 1:52 pm

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

Newbie

Posts

Joined
Fri Jul 09, 2010 1:39 pm

Post by JAY6390 » Fri Jul 09, 2010 6:18 pm

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by maccent » Fri Jul 09, 2010 7:42 pm

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

Attachments


Newbie

Posts

Joined
Fri Jul 09, 2010 1:39 pm

Post by JAY6390 » Fri Jul 09, 2010 7:46 pm

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by maccent » Fri Jul 09, 2010 10:27 pm

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

Newbie

Posts

Joined
Fri Jul 09, 2010 1:39 pm

Post by JAY6390 » Fri Jul 09, 2010 10:33 pm

Sure no problem :)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by vasioum » Tue Oct 05, 2010 2:09 am

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

Newbie

Posts

Joined
Sun Oct 03, 2010 10:56 pm

Post by vasioum » Tue Oct 05, 2010 5:42 am

Ok! Finaly! I opened the file with notpad ++

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

Done.

Newbie

Posts

Joined
Sun Oct 03, 2010 10:56 pm

Post by KuriN » Fri Feb 04, 2011 11:14 pm

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?

New member

Posts

Joined
Mon Jan 31, 2011 6:15 pm

Post by sirjoseph » Thu May 19, 2011 5:16 pm

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!!!

Newbie

Posts

Joined
Sun Feb 20, 2011 11:34 pm
Who is online

Users browsing this forum: No registered users and 4 guests