[RESOLVED] Blank page when switching to anothe language

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

[RESOLVED] Blank page when switching to anothe language

Post 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:
Last edited by m4dbra1n on Fri Jun 11, 2010 2:32 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

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

Post 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.
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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

Post by m4dbra1n »

OH MY GOD!

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

I feel a lot :oops:

Thanks and sorry for my stupid mistake...
Post Reply