Page 1 of 1

Attachment error (no solution in posts)

Posted: Wed Mar 31, 2010 12:20 am
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 ?)

Posted: Wed Mar 31, 2010 7:28 am
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

Keep trying

Posted: Wed Mar 31, 2010 6:04 pm
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 ?

Posted: Wed Mar 31, 2010 8:42 pm
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).

Posted: Wed Mar 31, 2010 9:40 pm
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

Posted: Thu Apr 01, 2010 5:42 am
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.

Posted: Thu Apr 01, 2010 8:03 am
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.

Posted: Thu Apr 01, 2010 3:42 pm
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.

Posted: Fri Apr 02, 2010 2:06 pm
by Klemen
Have you tried the suggestion about the "uploadprogress" PECL extension mentioned in my previous comments?

Posted: Tue Apr 06, 2010 9:58 pm
by menu3w
Yes. already try without luck.

What I can Do ?

Posted: Wed Apr 07, 2010 2:29 pm
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.