Missing Language choices from Settings page after update
Moderator: mkoch227
Missing Language choices from Settings page after update
Script URL: helpdesk.johnsonlumber.biz
Version of script: 2.4.2
Hosting company: Internal
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
blank language selection, error missing hesklang, text.php wrong version not 2.4.2
Write your message below:
Just updated from 2.2 to 2.4.2. I accidentally deleted the hesk_settings.inc.php file before updating. I ended up running through the upgrade process using the generic settings php file tweaked with my DB info. everything looks good, i still see the tickets from 2.2 but in the Settings screen the Default Language dropdown has no values available. If I click the Test language folder link I get a pop up with an error message:
/language
|-> /en
|-> text.php: ERROR
|----> MISSING: $hesklang['LANGUAGE']
|----> MISSING: $hesklang['ENCODING']
|----> MISSING: $hesklang['_COLLATE']
|----> MISSING: $hesklang['EMAIL_HR']
|----> WRONG VERSION (not 2.4.2)
|-> /emails: OK
I tried copying over the language folder from the 2.4.2 zip file but it didn't help. I ended up deleting the entire directory and rerunning the install script but I get the same error. Searching brings up a ton of posts but none relate to this. I cant use the Settings page to change anything because as soon as I click Save changes it gives me a red error at the top telling me I need to choose a default language (which I can't)
Version of script: 2.4.2
Hosting company: Internal
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
blank language selection, error missing hesklang, text.php wrong version not 2.4.2
Write your message below:
Just updated from 2.2 to 2.4.2. I accidentally deleted the hesk_settings.inc.php file before updating. I ended up running through the upgrade process using the generic settings php file tweaked with my DB info. everything looks good, i still see the tickets from 2.2 but in the Settings screen the Default Language dropdown has no values available. If I click the Test language folder link I get a pop up with an error message:
/language
|-> /en
|-> text.php: ERROR
|----> MISSING: $hesklang['LANGUAGE']
|----> MISSING: $hesklang['ENCODING']
|----> MISSING: $hesklang['_COLLATE']
|----> MISSING: $hesklang['EMAIL_HR']
|----> WRONG VERSION (not 2.4.2)
|-> /emails: OK
I tried copying over the language folder from the 2.4.2 zip file but it didn't help. I ended up deleting the entire directory and rerunning the install script but I get the same error. Searching brings up a ton of posts but none relate to this. I cant use the Settings page to change anything because as soon as I click Save changes it gives me a red error at the top telling me I need to choose a default language (which I can't)
Re: Missing Language choices from Settings page after update
Reviewing it a bit I'm wondering if my messing with the hesk_settings.inc.php file before running the update screwed up a part of the process. Does it change anything within the DB during the update? I might need to run that manually or something similar.
Re: Missing Language choices from Settings page after update
Forgot some info:
HESK version: 2.4.2 - HESK is up to date
PHP version: 5.1.6
MySQL version: 5.0.77
/hesk_settings.inc.php Exists, Writable
/attachments Exists, Writable
I can provide more info if it would help, I downloaded the 2 scripts and put them on the server. The session script after page 2 shows $_SESSION['test'] is set to: TRUE and the phpinfo script gives me PHPs details like its supposed to
HESK version: 2.4.2 - HESK is up to date
PHP version: 5.1.6
MySQL version: 5.0.77
/hesk_settings.inc.php Exists, Writable
/attachments Exists, Writable
I can provide more info if it would help, I downloaded the 2 scripts and put them on the server. The session script after page 2 shows $_SESSION['test'] is set to: TRUE and the phpinfo script gives me PHPs details like its supposed to
Re: Missing Language choices from Settings page after update
Hi,
Could you let me know where your help desk is installed at, I can't seem to be able to open helpdesk.johnsonlumber.biz?
If you change to in your settings file then run the language folder test again, do you get any other error messages or PHP notices/warnings?
Are you 101% sure you have version 2.4.2 files? Could you try uploading the entire "admin" folder again to the server?
Also, please paste the top 30 lines of your text.php file here (the one on the server).
Could you let me know where your help desk is installed at, I can't seem to be able to open helpdesk.johnsonlumber.biz?
If you change
Code: Select all
$hesk_settings['debug_mode']=0;
Code: Select all
$hesk_settings['debug_mode']=1;
Are you 101% sure you have version 2.4.2 files? Could you try uploading the entire "admin" folder again to the server?
Also, please paste the top 30 lines of your text.php file here (the one on the server).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Missing Language choices from Settings page after update
And yes, the database did change from version 2.2.
However, the installation/update script doesn't rely on version information from the settings file, it detects old version by looking at the database structure, so the database should be fine.
Either way, if you didn't skip step #1 in the upgrade instructions, you might want to delete HESK, restore 2.2 and do the update again anyway.
However, the installation/update script doesn't rely on version information from the settings file, it detects old version by looking at the database structure, so the database should be fine.
Either way, if you didn't skip step #1 in the upgrade instructions, you might want to delete HESK, restore 2.2 and do the update again anyway.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Missing Language choices from Settings page after update
The site is located at helpdesk.johnsonlumber.biz but it is on our internal network and not accessible from the internet. I set debug mode to on but that didn't change the error I receive from running the language folder test, it gives me the exact same message:
Test language folder
Testing the language folder for valid languages. Only languages that pass all tests are properly installed. For language installation instructions and help with errors see the readme.html file!
/language
|-> /en
|-> text.php: ERROR
|----> MISSING: $hesklang['LANGUAGE']
|----> MISSING: $hesklang['ENCODING']
|----> MISSING: $hesklang['_COLLATE']
|----> MISSING: $hesklang['EMAIL_HR']
|----> WRONG VERSION (not 2.4.2)
|-> /emails: OK
Test again | Close window
I had already deleted everything in the hesk folder and uploaded it from the downloaded file to make sure everything is from 2.4.2, but I went ahead and deleted the admin folder and re-uploaded it just to make sure and it still gives me the error.
First section from the text.php file under language/en:
<?php
/*
* Language file for Help Desk Software HESK (www.hesk.com)
* Language: ENGLISH
* Version: 2.4
* Author: Klemen Stirn (http://www.hesk.com)
*
* !!! This file must be saved in UTF-8 encoding without byte order mark (BOM) !!!
*/
// Change "English" to the name of your language
$hesklang['LANGUAGE']='English';
// Language encoding. It MUST be set to UTF-8 for all languages!
$hesklang['ENCODING']='UTF-8';
// MySQL utf8 collation. Do not change if not sure what to use.
$hesklang['_COLLATE']='utf8_unicode_ci';
// This is the email break line that will be used in email piping
$hesklang['EMAIL_HR']='------ Reply above this line ------';
// EMAIL SUBJECTS
$hesklang['new_ticket_staff'] = '[#%%TRACK_ID%%] New ticket: %%SUBJECT%%';
$hesklang['ticket_received'] = '[#%%TRACK_ID%%] Ticket received: %%SUBJECT%%';
$hesklang['ticket_assigned_to_you'] = '[#%%TRACK_ID%%] Ticket assigned: %%SUBJECT%%';
$hesklang['new_reply_by_customer'] = '[#%%TRACK_ID%%] New reply to: %%SUBJECT%%';
$hesklang['new_reply_by_staff'] = '[#%%TRACK_ID%%] New reply to: %%SUBJECT%%';
$hesklang['category_moved'] = '[#%%TRACK_ID%%] Ticket moved: %%SUBJECT%%';
$hesklang['new_note'] = '[#%%TRACK_ID%%] Note added to: %%SUBJECT%%';
$hesklang['new_pm'] = 'New private message: %%SUBJECT%%';
$hesklang['forgot_ticket_id'] = 'List of your support tickets';
Test language folder
Testing the language folder for valid languages. Only languages that pass all tests are properly installed. For language installation instructions and help with errors see the readme.html file!
/language
|-> /en
|-> text.php: ERROR
|----> MISSING: $hesklang['LANGUAGE']
|----> MISSING: $hesklang['ENCODING']
|----> MISSING: $hesklang['_COLLATE']
|----> MISSING: $hesklang['EMAIL_HR']
|----> WRONG VERSION (not 2.4.2)
|-> /emails: OK
Test again | Close window
I had already deleted everything in the hesk folder and uploaded it from the downloaded file to make sure everything is from 2.4.2, but I went ahead and deleted the admin folder and re-uploaded it just to make sure and it still gives me the error.
First section from the text.php file under language/en:
<?php
/*
* Language file for Help Desk Software HESK (www.hesk.com)
* Language: ENGLISH
* Version: 2.4
* Author: Klemen Stirn (http://www.hesk.com)
*
* !!! This file must be saved in UTF-8 encoding without byte order mark (BOM) !!!
*/
// Change "English" to the name of your language
$hesklang['LANGUAGE']='English';
// Language encoding. It MUST be set to UTF-8 for all languages!
$hesklang['ENCODING']='UTF-8';
// MySQL utf8 collation. Do not change if not sure what to use.
$hesklang['_COLLATE']='utf8_unicode_ci';
// This is the email break line that will be used in email piping
$hesklang['EMAIL_HR']='------ Reply above this line ------';
// EMAIL SUBJECTS
$hesklang['new_ticket_staff'] = '[#%%TRACK_ID%%] New ticket: %%SUBJECT%%';
$hesklang['ticket_received'] = '[#%%TRACK_ID%%] Ticket received: %%SUBJECT%%';
$hesklang['ticket_assigned_to_you'] = '[#%%TRACK_ID%%] Ticket assigned: %%SUBJECT%%';
$hesklang['new_reply_by_customer'] = '[#%%TRACK_ID%%] New reply to: %%SUBJECT%%';
$hesklang['new_reply_by_staff'] = '[#%%TRACK_ID%%] New reply to: %%SUBJECT%%';
$hesklang['category_moved'] = '[#%%TRACK_ID%%] Ticket moved: %%SUBJECT%%';
$hesklang['new_note'] = '[#%%TRACK_ID%%] Note added to: %%SUBJECT%%';
$hesklang['new_pm'] = 'New private message: %%SUBJECT%%';
$hesklang['forgot_ticket_id'] = 'List of your support tickets';
Re: Missing Language choices from Settings page after update
Also, where can i download 2.2? I've looked around but can only find 2.4.2, I might still have it on my PC at work but I probably cleared it out after I got it working
Re: Missing Language choices from Settings page after update
would it be easier to completely delete HESK and set up a new install with a new database? Can i export then import the database entries?
Re: Missing Language choices from Settings page after update
You have the correct files, the problem must be somewhere else.
Not sure why the language file doesn't get detected as valid, but since it's on an internal server and I can't detect it you can try tricking HESK into ignoring the errors:
1. Open file "admin/admin_settings.php"
2. Find and change it to
3. Do the same with "admin/admin_settings_save.php"
4. Upload to the server and test
Not sure why the language file doesn't get detected as valid, but since it's on an internal server and I can't detect it you can try tricking HESK into ignoring the errors:
1. Open file "admin/admin_settings.php"
2. Find
Code: Select all
if ($add)
Code: Select all
if (true)
4. Upload to the server and test
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Missing Language choices from Settings page after update
I tried changing the if statement but it didn't seem to affect the Test Languages function. I tried clicking Save settings to see if it still gave me the red error message about no default languages and now HESK doesnt show up at all. I cant get any of the admin pages to display and the home page wont display either.
Re: Missing Language choices from Settings page after update
Open hesk_settings.inc.php file and set values under to the default ones:
Is there any way you can get the test help desk online, I'm running out of ideas here without being able to test it...
Code: Select all
// --> Language settings
Code: Select all
$hesk_settings['can_sel_lang']=0;
$hesk_settings['language']='English';
$hesk_settings['languages']=array(
'English' => array('folder'=>'en','hr'=>'------ Reply above this line ------'),
);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Missing Language choices from Settings page after update
Ii think I have the site accessible from the internet. Try pulling up http://helpdesk.johnsonlumber.biz:81 and see if that works
Re: Missing Language choices from Settings page after update
No, can't open the address you gave.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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