Page 1 of 1

[SOLVED]trouble wit attchements

Posted: Fri Feb 13, 2015 6:13 pm
by steraffi
Script URL: hesk
Version of script: 2.4.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi I've moved my script from xampp on win xp to lampp on linux mint. the script work fine but i have this problem with attachement:
into the ticket page i can see the file attached.
into the folder "attachement" i can see an open the file;
but if i try to open the file from the web page (using any browser), i can download the file but it's a "zero byte" file an naturally i can't open it
the chmod of attachement folder is 777
Any suggest?
Thank's

Re: trouble wit attchements

Posted: Fri Feb 13, 2015 6:49 pm
by Klemen
You will probably need to fix your "System/root path" in HESK settings.

Or upgrade to the latest version that doesn't rely on that setting anymore.

Re: trouble wit attchements

Posted: Fri May 29, 2015 11:22 pm
by steraffi
Hi Klemen; i return to ask you an help for this problem that i can't solve by myself.
I have upgraded the script;now i'm working with 262 version, but have the same problem
If a customer send a mail with attachment, i can see the file name and the extension, but if i try to open it, i receive an error message (The application cannot open the file - the file is corrupted and so on)
The same file opened inside the hesk attachment folder is ok.

In the last post you suggested me to verify the need to fix my "System/root path" in HESK settings.
I assume that i must verify inside the hesk_settings.inc.php file, but it seem all ok.
Is it the right file to verify or i must control another file; what do you mean exactly with "System/root Path"?

Is it possible the issue depends on the OS? I have installed the script on Linux ubuntu 14 (no via lampp)
Thank's for your help
Stefano

Re: trouble wit attchements

Posted: Sat May 30, 2015 7:10 am
by Klemen
My best guess is one of your HESK files is not encoded properly, most likely the language "text.php" file.

All the HESK files need to be saved as UTF-8 *without* byte order mark (BOM). You probably at least one file saved as UTF-8 with BOM and this is the cause of the problems.

Here is a post explaining a bit more:
viewtopic.php?f=13&t=4793&p=20914&hilit=BOM#p20914

Re: trouble wit attchements

Posted: Sat May 30, 2015 9:26 am
by steraffi
WOW Klemen!!
You Know Always one thing more the Devil!
You saved me from a full work week-end

Thanks a lot