Post by Tunox » Sat Nov 24, 2007 10:01 pm

Hi all,
I have installed the french language along with the english (default). I have no troubles when switching from EN->FR in frontend but when I go the other way around I get a pretty nice warning on my face:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /...server path.../catalog/language/french/controller/home.php:1) in /...server path.../library/language/language.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /...server path.../catalog/language/french/controller/home.php:1) in /...server path.../library/environment/response.php on line 22
Checking those respective lines I see that they have to do with the language cookie and secondly with the redirect urls.

Refreshing the page makes the warning go away. Anyone having the same issues? Any idea how to get rid of these pesky errors ?
Last edited by Tunox on Tue Nov 27, 2007 10:14 pm, edited 1 time in total.

Newbie

Posts

Joined
Sat Sep 08, 2007 5:43 pm

Post by Tunox » Tue Nov 27, 2007 10:13 pm

any input on this issue guys?

I could really use your help on this.

Newbie

Posts

Joined
Sat Sep 08, 2007 5:43 pm

Post by mehdi » Sat Dec 01, 2007 10:50 pm

Hi
I don't know a lot about PHP but i had the same problem.
which php editor you use ?
i have solved this problem by changing my php editor your editor should support utf-8.
i recommend you use http://devphp.sourceforge.net/.
hope it helps.

Newbie

Posts

Joined
Sat Dec 01, 2007 5:40 am

Post by Bazooka_Bull » Wed Dec 19, 2007 4:47 pm

Hi Tunox

I am having this same problem when switching languages.
Were you able to find a solution, please help !

Thx
Bazooka_Bull

Newbie

Posts

Joined
Wed Dec 19, 2007 4:23 pm

Post by qq198310 » Thu Jan 03, 2008 4:12 pm

I have the same problem when I switch from Chinese to English. I must refresh the page can show correctly. Hope you can help me.... Thanks a lot!

Newbie

Posts

Joined
Thu Jan 03, 2008 12:34 am

Post by X-Rayden » Tue Jan 15, 2008 12:45 am

after analysis i came to the same conclusion as Tunox,

it is a cookie problems for mostly. and it is not code-wise.

let me explain :

I've got the EXACTLY SAME opencart installed on 2 servers, with 2 different domains, the problem is, on one it does this error, and not on the other.

the one working is our inside dev-safe work environnement vps webserver, and the other is a shared hosting service.

so I think there is a problem with setting on the shared hosting servers configs that give those awfull warning.

btw, it goes warning to on  :

loggin ->`disconnect -> loginagain "warning strikes"

User avatar
New member

Posts

Joined
Sat Jan 12, 2008 3:54 am
Location - Québec, Qc, Canada

Post by X-Rayden » Tue Jan 15, 2008 1:14 am

so far some differences run between the shared hosting (warning maker) and the vps (warning free)

working :
HTTP Response Headers
X-Powered-By PHP/5.0.4
Set-Cookie PHPSESSID=8g2q9jpod0mm1kbkqb57j9m613; path=/

sessions :
session.bug_compat_42 Off Off

session.gc_divisor 1000 1000
session.hash_bits_per_character 5 5

non-working :
HTTP Response Headers
X-Powered-By PHP/5.2.4

sessions :
session.bug_compat_42 On On
session.cookie_httponly Off Off
session.gc_divisor 100 100
session.hash_bits_per_character 4 4





the working one has his cookie information in the server information, and the non-working one had no-information on possible setted cookie.

User avatar
New member

Posts

Joined
Sat Jan 12, 2008 3:54 am
Location - Québec, Qc, Canada

Post by X-Rayden » Thu Jan 17, 2008 12:26 pm

error found :

every CONTROLERS in the controlers was in utf-8 encoding when all the other files in the whole were in  iso-8859-1.

User avatar
New member

Posts

Joined
Sat Jan 12, 2008 3:54 am
Location - Québec, Qc, Canada

Post by X-Rayden » Thu Jan 24, 2008 2:33 am

i've upload a working version of the French catalogue in contribution :
http://www.opencart.com/contribution/in ... ution_id/7

User avatar
New member

Posts

Joined
Sat Jan 12, 2008 3:54 am
Location - Québec, Qc, Canada

Post by Pomme » Wed Feb 13, 2008 6:34 pm

In fact, there are ISO characters before <?php in all files in the controller folder. To resolved this,  I changed UTF to ISO, remove characters and change ISO to UTF.

In fact, when I've got this message
Warning: Cannot modify header information - headers already sent by (output started at / ... :1)
It's the same prob.


Excuse me for my english and I hope it will help someone
Last edited by Pomme on Wed Feb 13, 2008 6:35 pm, edited 1 time in total.

Newbie

Posts

Joined
Wed Feb 13, 2008 6:26 pm
Who is online

Users browsing this forum: No registered users and 3 guests