Test Language Error
Posted: Mon Aug 13, 2012 10:49 am
It seems the test language function is not working properly on HESK 2.4 which unables you to change any setting at all on the admin/settings page.
The function is unable to read the text.php file correctly thus returning the following error(s):
This problem is caused by a wrong REGEX on the preg_match function because the file_get_contents() returns the PHP variables as: $hesklang[\'LANGUAGE\'] and the regex is looking for $hesklang['LANGUAGE'].
The simplest work-around I found is to simply add the stripslashes() function on the file_get_contents() on line 1759 of your admin_settings.php like this:
Hope this helps.
And thanks, Klemen Stirn, for you work on this tool!
The function is unable to read the text.php file correctly thus returning the following error(s):
Code: Select all
/language
|-> /en
|-> text.php: ERROR
|----> MISSING: $hesklang['LANGUAGE']
|----> MISSING: $hesklang['ENCODING']
|----> MISSING: $hesklang['_COLLATE']
|----> MISSING: $hesklang['EMAIL_HR']
|----> WRONG VERSION (not 2.4)
The simplest work-around I found is to simply add the stripslashes() function on the file_get_contents() on line 1759 of your admin_settings.php like this:
Code: Select all
stripslashes(file_get_contents($langu));
And thanks, Klemen Stirn, for you work on this tool!