$hesklang['inve']='Invalid email file';

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
JohnR
Posts: 3
Joined: Tue Nov 26, 2013 2:35 pm

$hesklang['inve']='Invalid email file';

Post by JohnR »

Script URL:
Version of script: 2.5.2
Hosting company: domeneshop.no
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: 'Invalid email file'

Write your message below:
When I reply a costumer for the first time, English language, everything works fine.
When I switch to Norwegian I get the "ERROR: Invalid email file" ($hesklang['inve']) As I can see it comes from email_functions.inc.php.

To make it work until I get your feedback I have temporarily blocked out: (line 458 - 461):

/* Verify this is a valid email include */
/* if ( ! isset($valid_emails[$eml_file]))
{
hesk_error($hesklang['inve']);
}
-------------------------------------
and (line 360 - 371):

/* Get list of valid emails */
$valid_emails = hesk_validEmails();

/* Verify this is a valid email include */
if ( ! isset($valid_emails[$eml_file]))
{
hesk_error($hesklang['inve']);
}
else
{
$msg = $valid_emails[$eml_file];
}
-------------------------------------
I have completed the language test successfully!

Do you have a solution for me? :twisted: :D
Thanks
JR
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: $hesklang['inve']='Invalid email file';

Post by Klemen »

Have you been modifying any of the files?

Try changing

Code: Select all

hesk_error($hesklang['inve']);
to

Code: Select all

hesk_error($hesklang['inve']. ": ". $eml_file);
to see which file is causing problems.
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
JohnR
Posts: 3
Joined: Tue Nov 26, 2013 2:35 pm

Re: $hesklang['inve']='Invalid email file';

Post by JohnR »

No, I have not modified any files.

I changed as suggested. New error appears. ERROR: Invalid email file: new_reply_by_staff .

// --> Staff replied to a ticket
'new_reply_by_staff' => $hesklang['new_reply_by_staff'],
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: $hesklang['inve']='Invalid email file';

Post by Klemen »

The error message is misleading, but I think the problem is you don't have this variable defined in Norwegian language pack: $hesklang['new_reply_by_staff']

Try adding this to your Norwegian text.php file:

Code: Select all

$hesklang['new_reply_by_staff']     = '[#%%TRACK_ID%%] Nytt svar til: %%SUBJECT%%';
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
JohnR
Posts: 3
Joined: Tue Nov 26, 2013 2:35 pm

Re: $hesklang['inve']='Invalid email file';

Post by JohnR »

Thank you, the last line of script in my language file did the trick. Together with the previous modifications.
I have one more issue, how to make it work with the Norwegian letters Æ Ø Å when sending the pre-made emails back to costumers?
Thanks again!
JR
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: $hesklang['inve']='Invalid email file';

Post by Klemen »

The template file needs to be saved in UTF-8 format and it should work fine (assuming your text.php and $hesklang['ENCODING'] are also UTF-8 as required by HESK).
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
Post Reply