[SOLVED]trouble wit attchements

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
steraffi
Posts: 30
Joined: Tue Sep 18, 2012 10:50 am

[SOLVED]trouble wit attchements

Post 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
Last edited by steraffi on Sat May 30, 2015 9:27 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: trouble wit attchements

Post 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.
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
steraffi
Posts: 30
Joined: Tue Sep 18, 2012 10:50 am

Re: trouble wit attchements

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: trouble wit attchements

Post 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
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
steraffi
Posts: 30
Joined: Tue Sep 18, 2012 10:50 am

Re: trouble wit attchements

Post by steraffi »

WOW Klemen!!
You Know Always one thing more the Devil!
You saved me from a full work week-end

Thanks a lot
Post Reply