Author |
Message |
blith
Client

Joined: Jul 18, 2003
Posts: 977
|
Posted:
Tue Mar 28, 2006 12:33 pm |
|
I am getting the following erros when allowing downloads for GR Downloads
Code:PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpsO5MwY' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 12:28:06 2006] [error] PHP Warning: move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 12:27:37 2006] [error] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phphn8iXJ' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 12:27:37 2006] [error] PHP Warning: move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
|
Can anyone help?
Line 202 is:
Code:} elseif (move_uploaded_file($imageurl_temp, $cidinfo['uploaddir']."/$imageurl_name")) {
chmod ($cidinfo['uploaddir']."/$imageurl_name", 0644);
$url = $cidinfo['uploaddir']."/$imageurl_name";
|
|
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Tue Mar 28, 2006 12:51 pm |
|
make sure the upload folder have the proper rights ... |
|
|
|
 |
blith

|
Posted:
Tue Mar 28, 2006 12:56 pm |
|
|
|
 |
hitwalker

|
Posted:
Tue Mar 28, 2006 12:59 pm |
|
well thats not good enough...
try 666 first,otherwise 777 |
|
|
|
 |
blith

|
Posted:
Tue Mar 28, 2006 1:01 pm |
|
It has to be at least 766 otherwise you cannot open it in Cpanel. Which is odd... |
|
|
|
 |
hitwalker

|
Posted:
Tue Mar 28, 2006 1:04 pm |
|
well you have to give an "outsider" permission to upload something to your root,thats no peanuts.
so it will never work on 644 .
but what has cpanel to do with this? |
|
|
|
 |
blith

|
Posted:
Tue Mar 28, 2006 1:08 pm |
|
When I chmod in Cpanel to any 6**. It locks you out from opening the folder... it kicks you back to root. Additionally, I am still getting the following errors no matter the permissions:
Code:PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpDmOOTL' to 'http://www.mysite.com/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
[Tue Mar 28 14:07:50 2006] [error] PHP Warning: move_uploaded_file(http://www.mysite.com/Files/horsefollow.zip): failed to open stream: HTTP wrapper does not support writeable connections. in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
|
|
|
|
|
 |
hitwalker

|
Posted:
Tue Mar 28, 2006 2:47 pm |
|
But you have to set permissions from within your ftp.
Login with your ftp ,go to that folder and chmod it. |
|
|
|
 |
blith

|
Posted:
Tue Mar 28, 2006 4:23 pm |
|
The folder is at 766 now and it is not working per the errors... |
|
|
|
 |
hitwalker

|
Posted:
Tue Mar 28, 2006 4:55 pm |
|
hi blith...whenever you get back....
simple said..."Relative path" means the file path to where the file is located "relative" to the root..
however it can be like/home/blith/whatever/myfiles
or like .../myfiles
And your error"HTTP wrapper does not support writeable connections" that because you weren't actually opening a file but asking your Web server to fetch a resource and return its contents to you.
You need to specify a file path, not a URL.....
But i dont know where the configuration is in that mod.
Thats why i asked you for a login ,so i could check it myself. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Mar 28, 2006 11:13 pm |
|
If I read the first error correctly, this folder http://www.mysite.com/Files must be 766 or 777. Have you tried that? |
|
|
|
 |
blith

|
Posted:
Wed Mar 29, 2006 9:46 am |
|
Raven wrote: | If I read the first error correctly, this folder http://www.mysite.com/Files must be 766 or 777. Have you tried that? |
Okay I changed it to 777 and I get the following errors:
Code:PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpSPlZEb' to '********/public_html/Files/horsefollow.zip' in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
PHP Warning: move_uploaded_file(********/public_html/Files/horsefollow.zip): failed to open stream: No such file or directory in /home/********/public_html/modules/Submit_Downloads/index.php on line 202
|
|
|
|
|
 |
blith

|
Posted:
Wed Mar 29, 2006 10:00 am |
|
Yeah it worked!! I went back and looked and my relative path was incorrect.. thanks Hitwalker!
and thank you Raven for taking a look. You are a true friend who I have never met... |
|
|
|
 |
blith

|
Posted:
Thu Apr 13, 2006 2:59 am |
|
Well it turns out this didn't work. It never did... I do not know what is wrong... can anyone help me. I also have another thread about this... sorry. |
|
|
|
 |
|