Page 1 of 2

Cannot attach files within hesk 2.0

Posted: Tue Apr 07, 2009 3:21 pm
by civey
Script URL:www.iveycommunications.com/hesk20
Version of script:2.0
Hosting company:hostgator
URL of phpinfo.php:cannot find this
URL of session_test.php:cannot find this
What terms did you try when SEARCHING for a solution:
attach, attachment, attahcments,
Write your message below:

I have read and I am confused as to how I find the session_test file or the phpinfo file.
Everything works but I cannot attach a file for submission and I think it is a file naming issue but I do not know how to repair.

Below is the error I get

Warning: move_uploaded_file(/home/username/public_html/hesk20/attachments/HEZPYWR1ZD_8356fefa825d888c931fb9aadaa6acfd.rtf) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/civey/public_html/hesk20/inc/attachments.inc.php on line 70

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVpddUn' to '/home/username/public_html/hesk20/attachments/HEZPYWR1ZD_8356fefa825d888c931fb9aadaa6acfd.rtf' in /home/civey/public_html/hesk20/inc/attachments.inc.php on line 70

Posted: Tue Apr 07, 2009 3:54 pm
by Klemen
In the settings you need to change the server path from /home/username/public_html to your actual server path. You must either get this from your host or upload the phpinfo file to your server (you will find it in the READ THIS BEFORE POSTING topic) and it should be listed under "PHP Variables", variable _SERVER["DOCUMENT_ROOT"]

Thanks for the reply

Posted: Tue Apr 07, 2009 4:08 pm
by civey
I just had to have someone lead this horse to the water.
For anyone else that maybe having this problem on the settings page under the admin login. I had to put my username in the path instead of it saying "username".
/home/username/public_html/hesk20
/home/xxxxxx/public_html/hesk20

Thanks for all the help.
and the fast response.

Re: Cannot attach files within hesk 2.0

Posted: Mon Apr 13, 2009 9:36 am
by andrew80706
civey wrote:Script URL:www.iveycommunications.com/hesk20
Version of script:2.0
Hosting company:hostgator
URL of phpinfo.php:cannot find this
URL of session_test.php:cannot find this
What terms did you try when SEARCHING for a solution:
attach, attachment, attahcments,
Write your message below:

I have read and I am confused as to how I find the session_test file or the phpinfo file.
Everything works but I cannot attach a file for submission and I think it is a file naming issue but I do not know how to repair.

Below is the error I get

Warning: move_uploaded_file(/home/username/public_html/hesk20/attachments/HEZPYWR1ZD_8356fefa825d888c931fb9aadaa6acfd.rtf) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/civey/public_html/hesk20/inc/attachments.inc.php on line 70

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVpddUn' to '/home/username/public_html/hesk20/attachments/HEZPYWR1ZD_8356fefa825d888c931fb9aadaa6acfd.rtf' in /home/civey/public_html/hesk20/inc/attachments.inc.php on line 70
I meet the same questions ,now I have solved this problem.
the real reason lead this question is the error path for system/root path.

you log the HESK with administrator -----setting---system/root path:---
the default setting is /home/username/public_html/hesk20
change this option:

for example :
The path of my website (www-root) is D:\www
the hesk folder is in D:\www\hesk20\
so thesystem/root path can be changed D:/www/hesk20
at last you must save changes.

then you can add attached file.

Still lost on Attachment Problems

Posted: Sun May 10, 2009 4:12 pm
by southernmoney
I am sorry but I am still lost on resolving attachment problems.

Hesk is fantastic. However, mostly the root path remains to confuse lay persons like myself.

The language used is confusing to lay persons.

I cannot find the phpinfo file. Can somebody please provide me with the link to this file?

The two solutions offered I tried but without sucess.

And what is the position with safemode. Can we perhaps get a more detailed explanation.

Guy please help this old school fool. It will be much appreciated.

Thanks all.

Posted: Sun May 10, 2009 5:15 pm
by Klemen
The phpinfo file can be found in the "READ THIS BEFORE POSTING" topic:
viewtopic.php?t=138

Upload it to the server (to the same folder where Hesk is), open in browser and the correct path you should use is shown under PHP Variables in the _SERVER["DOCUMENT_ROOT"] column.

Resolving attachment root problems

Posted: Sun May 10, 2009 6:50 pm
by southernmoney
Ok, I did the following:

1. I located the phpinfo.php file in the "READ THIS BEFORE POSTING" topic:
viewtopic.php?t=138

2. I downloaded this file to my computer desktop and uploaded it into the Hesk Helpdesk program on my web server.

3. I then ran the phpinfo.php from my web browser.

4. I then saved the content to my desktop for future reference.

5. I then deleted the phpinfo file from my web server so as not to compromise security.

6. The required root path for the Hesk software settings is displayed under the heading “PHP Variables” with the sub heading “_SERVER["DOCUMENT_ROOT"

7. I cut and pasted this into the Hesk program’s settings under “System / root path” and then selected “save changes”.

8. I logged out en re-entered and checked that the settings is correct. [It is correctly saved]

Regrettably, when I tested the program the attachments did not upload.

I then checked the phpinfo settings and noticed under the heading “PHP Core” with sub heading “Save Mode” that it states: “on”.

Is this perhaps where the problem is. If so what exactly should this lay person do to resolve the problem? And perhaps all other lay persons?

Thanking you kindly.

Posted: Mon May 11, 2009 6:49 am
by Klemen
Do you mind sharing your phpinfo file here?

Also enable Debug mode in Hesk settings and see if you get any new error messages.

Resolving Attachment Problems

Posted: Mon May 11, 2009 7:38 am
by southernmoney
I would prefer not to post my phpinfo information here. However, my email address is jvz@southernmoney.co.za and if you would be so kind to email me I will gladly send you the phpinfo file as well as the login information.

I have actived debug but received no oadditional information.

My service provider also deactivated safemode. If need be I will active it again upon your instruction.

My files are unloaded to http://www.southernmoney.co.za/progress

Thanking you kindly.

Posted: Mon May 11, 2009 12:26 pm
by Klemen
I don't provide e-mail support for the free scripts, but you can paste the results from the phpinfo file into a private message for me.

Also let me know exactly what setting you have for the System/root path in your settings.

You can also try creating such a simple file, save it as test.php, upload to your Hesk ("progress") folder, open in browser and see if you get any errors and if a test.txt has been created in your attachments folder.

Code: Select all

<?php

error_reporting(E_ALL);

$fp = fopen('attachments/test.txt','w');
fputs($fp,'Test');
fclose($fp);

echo "test.txt created";

?>
If yes delete the test.txt file and try also changing attachments/test.txt to the full path on your system, for example
$fp = fopen('/home/username/public_html/attachments/test.txt','w');
See if it's created now too.

Resolving Attachment Problems

Posted: Mon May 11, 2009 4:30 pm
by southernmoney
I experienced problems in uploading attachmens. I did the following to resolve the problem:

1. I located the phpinfo.php file in the "READ THIS BEFORE POSTING" topic:
viewtopic.php?t=138

2. I downloaded this file to my computer desktop and uploaded it into the Hesk Helpdesk program on my web server.

3. I then ran the phpinfo.php from my web browser.

4. I then saved the content to my desktop for future reference.

5. I then deleted the phpinfo file from my web server so as not to compromise security.

6. The required root path for the Hesk software settings is displayed under the heading “PHP Variables” with the sub heading “_SERVER["DOCUMENT_ROOT"

7. I cut and pasted this into the Hesk program’s settings under “System / root path” and then selected “save changes”.

8. I logged out en re-entered and checked that the settings is correct. [It is correctly saved]

9. Upon testing it still failed to upload files. I then activated "debug" in the program setting and clicked "save".

10. I again tried to upload an attachment. It failed, but this time I got a detailed error message. Basically it referred to two paths and that they are not matching.

11. I then played around with the program settings root path to get it to fit in with the other. It worked!

12. Problem resolved! I will now deactivate debug in the program setting and will activate safemode on the server database with the help of the service provider.

Hope this will

Thanks Klemen for your kind help.

Regards from as somewhat cold South Africa.

Johan

Bought The Licence

Posted: Tue May 12, 2009 4:34 am
by southernmoney
I am happy with the program and bought the licence.

Regards

Johan

Posted: Tue May 12, 2009 6:53 am
by Klemen
Glad you got it working and thanks for purchasing a license!

Posted: Wed Jun 03, 2009 8:56 pm
by Ronald
Hello,

Just installed the script ... working good ... only the attachment-option doesnt work for me. phpinfo.php gave me the right path ... but still failure-message when i want to submit a message with an attachment. Compliments for the script because it's the only one i have found inwhich i can make more text-fields for setting-up the ticket. Would be great if the attach-option would work too.... pls help.

Posted: Fri Jun 05, 2009 8:40 pm
by Klemen
There could be many different problem, post a link to your phpinfo file here and we will have a look.