Sessions problems using a different language pack

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
vinicius
Posts: 3
Joined: Tue Sep 28, 2010 2:57 pm

Sessions problems using a different language pack

Post 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...
Last edited by vinicius on Tue Sep 28, 2010 6:21 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Sessions problems using a different language pack

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinicius
Posts: 3
Joined: Tue Sep 28, 2010 2:57 pm

Re: Sessions problems using a different language pack

Post 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?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Sessions problems using a different language pack

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinicius
Posts: 3
Joined: Tue Sep 28, 2010 2:57 pm

Re: Sessions problems using a different language pack

Post by vinicius »

Ok! Thanks for the tips!

It worked perfectly now :wink:
Post Reply