Page 1 of 1

[RESOLVED] Blank page when switching to anothe language

Posted: Fri Jun 11, 2010 1:53 pm
by m4dbra1n
Script URL:
Version of script: 2.2
Hosting company: local use
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi everybody, I'm having trouble with the language section of the new 2.2 version.

I successfully upgraded my 2.1 installation, and now I'm working on the Italian translation, but when I try to switch to italian from the settings page, it gives me only a blank page. The same thing happen if I go the the Hesk main page.

The only way to fix this is to open hesk_settings.inc.php and set the language back to English and disable the use of multiple languages: this fixes the problem.

Why is this happening? I've simply done it as it's in the readme: make a new "it" folder, copied all the files back from the "en" folder and started to work on the text.php.

Thanks in advance to everyone will help me :wink:

Posted: Fri Jun 11, 2010 1:57 pm
by Klemen
Probably an error in the translated text.php file. Try opening the text.php file directly in the browser and see what message you get.

If it says "No syntax errors detected" then the problem is somewhere else - try enabling Debug mode then see if you get any new errors when you switch to Italian.

Posted: Fri Jun 11, 2010 2:07 pm
by m4dbra1n
Hi Klemen, doing as you said give this:

Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\hesk\language\it\text.php on line 60

Making that line as comment only improve the line where it searches for this T_VARIABLE, that I don't know what is...

Posted: Fri Jun 11, 2010 2:20 pm
by Klemen
Like the message says, it's a syntax error. Make sure all lines around line 60 have proper syntax:
- check that lines end with ;
- check that text is within quotes 'text here'
- check that any quotes within quotes are escaped 'text\'s here'
and so on...

If you can't find the problem post lines 55-65 here.

Posted: Fri Jun 11, 2010 2:30 pm
by m4dbra1n
OH MY GOD!

Sorry Klemen, it was a stupid ";" missing...

I feel a lot :oops:

Thanks and sorry for my stupid mistake...