Page 1 of 1

Sessions problems using a different language pack

Posted: Tue Sep 28, 2010 3:09 pm
by vinicius
Script URL: http://www.fastmind.com.br /suporte
Version of script: 2.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: languages, portuguese, sessions problem

Write your message below:

Hi everyone!

Well, I had a problem and try to find a solution, but all that I find didn't help me anyway.

After install Hesk, I found a Portuguese (Brazil) pack in this forum. After uploading the files and activating on the admin panel, all the links target to a blank page. Activating the Debug mode shows many session errors:

"Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fastmibr/html/www/suporte/language/br/text.php:1) in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 1021"

"Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/fastmibr/html/www/suporte/language/br/text.php:1) in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 1021"

"Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 925"

"Warning: Cannot modify header information - headers already sent by (output started at /home/fastmibr/html/www/suporte/language/br/text.php:1) in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 611"

"Warning: Cannot modify header information - headers already sent by (output started at /home/fastmibr/html/www/suporte/language/br/text.php:1) in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 612"

"Warning: Cannot modify header information - headers already sent by (output started at /home/fastmibr/html/www/suporte/language/br/text.php:1) in /home/fastmibr/html/www/suporte/inc/common.inc.php on line 637"

But when I turn back to English Hesk works fine. :idea:

I don't know what to do. And it seams I made all correct, so I don't understand the problem. :roll:

Sorry for my rusty english... years without classes and practices...

Re: Sessions problems using a different language pack

Posted: Tue Sep 28, 2010 5:01 pm
by Klemen
It's because your language file has some chars before the <?php tag which in turns breaks the sessions.

Try with these files instead:
http://www.hesk.com/languages/22/br.zip

Re: Sessions problems using a different language pack

Posted: Tue Sep 28, 2010 5:28 pm
by vinicius
Thank you so much, man! Apparently worked! :D

Another question, to resolve the accents problem I need only to change the ENCONDING to UTF-8, right?

Re: Sessions problems using a different language pack

Posted: Tue Sep 28, 2010 5:55 pm
by Klemen
Before you change the encoding try posting a test ticket with all the chars with an accent and see if it works. It's possible old tickets will have problems, but new ones should work.

You could change to utf-8, but it's possible you will have problems with the translation as it's been translated in iso. Whatever you do, make sure you save the language file itself as PLAIN TEXT and not in UTF-8 encoding, because utf-8 ads some bytes to the start of files and that is exactly what was the problem with your previous language file.

Re: Sessions problems using a different language pack

Posted: Tue Sep 28, 2010 6:19 pm
by vinicius
Ok! Thanks for the tips!

It worked perfectly now :wink: