Page 1 of 1
File uploads don't work
Posted: Fri Mar 06, 2009 12:27 pm
by cata1do
Hi all;
When I upload a file get this error..
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access /home/username/public_html/desk/attachments/76AG72W2Z9_76a000bc361effbccdf5818bc9f8b377.doc in /membri/cata1do/desk/inc/attachments.inc.php on line 70
is this a server problem?
cat
Posted: Fri Mar 06, 2009 4:59 pm
by Klemen
The attachments folder probably isn't accessible by PHP scripts.
If you're on a Linux server double-check the CHMOD settings, if on windows see
viewtopic.php?t=1406
or contact your host to set it to correct (write) permissions.
GREAT
Posted: Fri Mar 06, 2009 6:13 pm
by cata1do
thanks a lot for your answer...
i have solved
ops...some error information in " System/root path "
ciao
file upload still dont work
Posted: Sun Mar 08, 2009 4:23 pm
by uscher
hello
1st thanks for this wonderfull script, im usind HESK2.0. The setup was really easy. Now im on testing around all the settings. I tryed to upload an 51KB JPG with an replyed ticket.
the file permissions are:
attachments = 777
hesk_settings.inc.php = 666
The Settings shows me this:
/hesk_settings.inc.php= Exists, Writable
/attachments= Exists, Writable
eny idea?
btw: when there is once an attached file its not posssible to delete the desierd path.
(I tested all with FF3+ and IE7+)
urs
Posted: Sun Mar 08, 2009 6:10 pm
by Klemen
Upload the phpinfo.php file to your server and post a link here (you will get the file here
viewtopic.php?t=138 ).
Also try setting Deug mode to ON in the settings and see if you get a better error message with more info. You should also post a link to your script here so we can test it from here.
Posted: Sun Mar 08, 2009 8:47 pm
by uscher
here the links:
http://helpdesk.jimrose.ch/phpinfo.php
http://helpdesk.jimrose.ch/session_test.php
here some pics:
http://www.screencast.com/t/ZfhkeIz13h
(unfourgenatly the debug mode does not show more info in the errormessage.)
and here my helpdesk ....hmmm...easy to find out..right?
http://helpdesk.jimrose.ch
thanks 4 yout help
Posted: Mon Mar 09, 2009 1:00 am
by YankeePicker
Just a thought is your System/root path setting correct?
Posted: Mon Mar 09, 2009 8:28 am
by uscher
jepp, this path comes from the provider. I did not change enything there. After the Hesk Setup was compleate, this was the gifen path.
The HESK Help means this:
System/root path
Full server path ("root path", "system path") to your Hesk folder.
Hesk will try to find the correct path automatically, if not consult your hosting company for the correct path.
here my System/root path
http://www.screencast.com/t/LfX6nbdO1ut
EDIT:
Ohh..sorry, filesize limit i changed to 2048kb.
Posted: Mon Mar 09, 2009 1:00 pm
by YankeePicker
Hmm, based on your phpinfo, the doc root you have set might be incorrect.
According to your phpinfo, the root of your hesk folder is:
"/var/www/vhosts/jimrose.ch/subdomains/helpdesk/httpdocs"
and your hesk is set to use "/home/username/public_html/hest" as the root.
I know in my setup, my doc root is the same as what is reported by phpinfo
My 2 bits
Posted: Tue Mar 10, 2009 10:34 am
by uscher
ok, on my local xampp this is now working for the
"root path", "system path" filed:
The file was upoaded and the hesk-success message was shown after
successfull submission
but..what can i enter for for the
"root path", "system path" on my provider-hosted hesk testsystem?
hmm...i try more
Posted: Tue Mar 10, 2009 10:48 am
by uscher
PROBLEM SOLVED
i used the path in the phpinfo.php filed "DOCUMENT_ROOT"
Code: Select all
/var/www/vhosts/domain.com/subdomains/helpdesk/httpdocs
This is working now perfectly. For some reason the hesk-install script did not get the right path. Probably there is something hardcoded?
thanks for your help folks, especially to
YankeePicker for your time.
I buy you a beer one time....
uscher
Posted: Tue Mar 10, 2009 1:06 pm
by YankeePicker
You're welcome, I'm glad to have been able to help.
Best of luck to you