Page 1 of 1

Changing title made my admin area dissapear

Posted: Sat Jan 04, 2014 1:18 pm
by Star
Script URL:
Version of script: 2.5.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: admin login, blank page

Write your message below:
I wanted to change the e-mail title to include my domain name. I read the help docs: http://www.hesk.com/knowledgebase/index.php?article=66 and it looked simple enough.
I used notepad to open the file language/en/text.php. I only added my domainname and moved the track tag to the end of the title for 2 e-mails subjects:
$hesklang['ticket_received'] = 'Star Ticket received: %%SUBJECT%% [#%%TRACK_ID%%]';
$hesklang['new_reply_by_staff'] = 'Star New reply to: %%SUBJECT%% [#%%TRACK_ID%%]';
I uploaded it and sent a test e-mail and it looked fine.

But now after I login I only get a white page and if I look at the page sourcecode all I see is: 1
I have e-mail notices and if I click the link I can get into my admin area fine - atleast now that I'm still logged in, not sure if that will work when I get logged out.
When trying to for example change a ticket to resolved I get the same blank page, I click back and home and the ticket is now listed as resolved.

There's a update available but I'm not sure if I should update before I've gotten this fixed. Or would an update to 2.5.2 fix this problem?
I'm kicking myself because I always save the original but this looked easy so I didn't. Lession learned.
Any idea what could have caused this?

Thank you very much
Star

Re: Changing title made my admin area dissapear

Posted: Sun Jan 05, 2014 7:22 am
by Star
Update: Tried today to login and then click the link in the saved e-mail and now I cannot get in at all and only get a blank page. So now this is kinda urgent.

Thank you
Star

Re: Changing title made my admin area dissapear

Posted: Sun Jan 05, 2014 10:51 am
by Klemen
You probably have a hidden UTF-8 byte order mark at the beginning the file which is breaking HTTP headers.

This happens when files are either saved with byte order mark or edited with software that doesn't handle them properly.

Uploading back the original text.php file should fix the issue (you can use the one from 2.5.2)

See also my last reply here for other options:
viewtopic.php?f=13&t=4793&p=20913&hilit ... ark#p20913

Re: Changing title made my admin area dissapear

Posted: Sun Jan 05, 2014 2:44 pm
by Star
Thank you for the reply.
When saving I did save in uti-8, but maybe notepad wasn't the optimal program to open this file in.

I've downloaded 2.5.2 but there is no text.php file. Would it be safe to just update?

Thank you
Star

Re: Changing title made my admin area dissapear

Posted: Sun Jan 05, 2014 6:24 pm
by Klemen
Notepad is indeed not a good file for editing, because it doesn't save files without byte order mark.

You can try this:
1. download Notepad++
http://notepad-plus-plus.org/

2. Open your text.php in Notepad++

3. Click "Encoding" > "Encode in UTF-8 without BOM"

4. Save, upload and test.


The text.php file is inside "language/en" folder (you have to download the full version, not just the 2.5.0 to 2.5.2 patch file). Upgrading using patch files will not help because text.php is not included in the upgrade.

Re: Changing title made my admin area dissapear

Posted: Sun Jan 05, 2014 9:40 pm
by Star
Thank you for the suggestions, I will download notepad plus before attempting making changes again.

I visited http://www.hesk.com/download.php and downloaded what I thought was a full version. If this is not correct, where can I find the full version and not the updated version?

Thank you again for your support
Star

Re: Changing title made my admin area dissapear

Posted: Mon Jan 06, 2014 12:07 pm
by Klemen
http://www.hesk.com/download.php is indeed the full version, the text.php is included there.

But to upgrade from version 2.5.0 to 2.5.2 you need to use the patch file instead:
http://www.hesk.com/update.php?v=2.5.0

Re: Changing title made my admin area dissapear

Posted: Tue Jan 07, 2014 9:51 am
by Star
I did another download and got the correct zip that included the text.php file. I uploaded it and now it all works.
I will make sure to keep a original copy before trying to change it again :mrgreen:

Thank you very much for this great script and support!
Star