Attachment error (no solution in posts)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
menu3w
Posts: 5
Joined: Wed Mar 31, 2010 12:04 am

Attachment error (no solution in posts)

Post by menu3w »

Script URL: http://laleytv.com/hesk20
Version of script: 2.1
Hosting company:
URL of phpinfo.php: http://laleytv.com/hesk20/phpinfo.php
URL of session_test.php: fail on /attachments directory http://www.laleytv.com/hesk20/attachmen ... n_test.php
What terms did you try when SEARCHING for a solution:

I look around and found a lot of topic without luck for me.

My System/root path: /home/laleytv/public_html/hesk20

My Attachment was working fine and apparently for no reason don't work now.
I try almost everything

ERROR:
Warning: move_uploaded_file(/home/laleytv/public_html/hesk20/attachments/4LJ6HJDT6Q_92f81c6d79e69899885054e14b0ac67d.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/laleytvc/public_html/hesk20/inc/attachments.inc.php on line 83

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpZgfyih' to '/home/laleytv/public_html/hesk20/attachments/4LJ6HJDT6Q_92f81c6d79e69899885054e14b0ac67d.jpg' in /home/laleytvc/public_html/hesk20/inc/attachments.inc.php on line 83

Thanks in advance ( Count with my Beer)

PD: I have my license but when I upgrade to 2.1 the license is inactive ( Do I have to buy another license ?)
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

It seems like there are two possible reasons:

1. you don't have an "attachments" folder inside your "hesk20" folder

- OR -

2. you have the attachments folder but it isn't writable by PHP scripts.

What you should do is make sure you have a folder called "attachments" inside your "hesk20" folder and chmod it to 777 (rwxrwxrwx) so PHP scripts can create files inside.


As for the license it's still valid, but like the Upgrade instructions in the readme.html file suggest the license format has changed so you need to download a new license from
https://www.hesk.com/license
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
menu3w
Posts: 5
Joined: Wed Mar 31, 2010 12:04 am

Keep trying

Post by menu3w »

Believe me this are the first things I try to fix.

Here are my screen

Image

If you notice my error inside attachments folder

http://laleytv.com/hesk20/attachments/path.php
http://laleytv.com/hesk20/attachments/session_test.php

this no happen outside this folder everything look ok outside.

Any idea ?
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Looks like a permissions problem since you can't even open any normal files from within the attachments folder.

If you upload a html file to the attachments folder can you open it in the browser?

You can try deleting the attachments folder and creating a new one. If that doesn't help you will need to check with your host.

I also noticed you have a PECL extensions "uploadprogress". Not sure if and how that is interacting with file uploads, but you could try disabling that extension and see if it makes a difference (or install the latest version that includes some bugfixes).
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
menu3w
Posts: 5
Joined: Wed Mar 31, 2010 12:04 am

Post by menu3w »

Yes I can open html .
Check
http://laleytv.com/hesk20/attachments/testing.html

I already upgrade to last version before.

Deleted and created ( same problem)


Question.

1. When you use the change password admin script, it is possible affect some config files ?

2. Maybe if I change the name and location of attachment directory.

What files I need to change the directory name "attachments" ?

Thanks in advance.
And ready to buy a beer
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

When i try to open http://laleytv.com/hesk20/attachments/testing.html

I get
Not Found

The requested URL /hesk20/attachments/testing.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I also can't open
http://laleytv.com/hesk20/attachments/testing.html

Before we can try anything else you need to fix this. For help with it you should ask your host, we don't know how your server is setup.
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
menu3w
Posts: 5
Joined: Wed Mar 31, 2010 12:04 am

Post by menu3w »

Sorry but I delete and create the directory and no upload the testing.html

http://laleytv.com/hesk20/attachments/testing.html

now you can test, it work.

Maybe change creating a new folder with another name.

I'm no a clue, what happen.

thanks in advance.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Have you tried the suggestion about the "uploadprogress" PECL extension mentioned in my previous comments?
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
menu3w
Posts: 5
Joined: Wed Mar 31, 2010 12:04 am

Post by menu3w »

Yes. already try without luck.

What I can Do ?
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The only thing I can think of - check with your host why PHP isn't allowed to moved files to the attachments folder.
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
Post Reply