File uploads don't work

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
cata1do
Posts: 6
Joined: Wed Mar 04, 2009 8:07 pm

File uploads don't work

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

Post 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.
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
cata1do
Posts: 6
Joined: Wed Mar 04, 2009 8:07 pm

GREAT

Post by cata1do »

thanks a lot for your answer...

i have solved :D
ops...some error information in " System/root path " :oops: :oops:

ciao
uscher
Posts: 5
Joined: Fri Mar 06, 2009 2:55 pm

file upload still dont work

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

Post 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.
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
uscher
Posts: 5
Joined: Fri Mar 06, 2009 2:55 pm

Post 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
YankeePicker
Posts: 16
Joined: Fri Mar 06, 2009 4:48 pm

Post by YankeePicker »

Just a thought is your System/root path setting correct?
[color=red]Caution:[/color] YankeePicker may appear smarter than he really is. Advice not to be taken internally. Ask your Doctor if YankeePicker is right for you.
uscher
Posts: 5
Joined: Fri Mar 06, 2009 2:55 pm

Post 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.
YankeePicker
Posts: 16
Joined: Fri Mar 06, 2009 4:48 pm

Post 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
[color=red]Caution:[/color] YankeePicker may appear smarter than he really is. Advice not to be taken internally. Ask your Doctor if YankeePicker is right for you.
uscher
Posts: 5
Joined: Fri Mar 06, 2009 2:55 pm

Post by uscher »

ok, on my local xampp this is now working for the "root path", "system path" filed:

Code: Select all

C:\xampp\htdocs\hesk20\
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
uscher
Posts: 5
Joined: Fri Mar 06, 2009 2:55 pm

Post 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.... :roll:

uscher
YankeePicker
Posts: 16
Joined: Fri Mar 06, 2009 4:48 pm

Post by YankeePicker »

You're welcome, I'm glad to have been able to help.

Best of luck to you
[color=red]Caution:[/color] YankeePicker may appear smarter than he really is. Advice not to be taken internally. Ask your Doctor if YankeePicker is right for you.
Post Reply