Author |
Message |
21/04/2006 15:56:57
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
I just installed this last night and when trying to upload a picture, I get the following error:
Warning: copy(c:\inetpub\wwwroot\guestbook/tmp/img-1145625858.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 164
Now it seems to be it has to do with the copy command in the beginging of the error message. The location has two back slashes then changes to forward slash for the tmp and img directory.
|
|
21/04/2006 16:48:14
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
I also get this error message:
Warning: copy(c:\inetpub\wwwroot\guestbook/public/img-1145630277.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145630277.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
Again in the path, it has two \ then two /. In windows, should they all be \?
|
|
23/04/2006 13:11:32
|
Webmaster
Site Admin
Joined: 10/01/2002 23:32:17
Messages: 82
Offline
|
php safe mode is turned on
open add.class.php and replace "copy" with "move_uploaded_file"
line 164:
line 176:
|
|
23/04/2006 18:12:30
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
No, that didn' seem to help. Here are the new error messages after I made the changes.
Warning: move_uploaded_file(c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php4.tmp' to 'c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg' in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145808612.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
Also, PHP safe mode is not turned on.
|
|
23/04/2006 18:19:40
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
I stll think it has to do with the path where it is trying to save the image to. It starts off
c:\inetpub\wwwroot\guestbook
which all seems correct, then it goes
/public/img-1145808612.jpg
The slashes in the first partd are all back slashes and the second part is all forward slashes. In windows, the path should only have back slashes, shouldn't it?
|
|
23/04/2006 21:05:11
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Going by the error messages maybe you got the permissions wrong or the image upload folder' path wrong?
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
23/04/2006 22:14:03
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
I have verified the folder permissions, all set to 777. I don't think the path could be wrong as I didn't change anything else. Only thing I changed or added was the MySQL information. Everything else is "stock".
|
|
23/04/2006 23:00:51
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Well slight variation on Webmasters answer
line 164:
line 176:
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
24/04/2006 01:01:52
|
mlbillow
Beginner
Joined: 21/04/2006 15:48:15
Messages: 6
Offline
|
Ok, made the change, here is the error message:
Warning: move_uploaded_file(c:\inetpub\wwwroot\guestbook\public\img-1145833233.jpg): failed to open stream: Permission denied in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\phpC.tmp' to 'c:\inetpub\wwwroot\guestbook\public\img-1145833233.jpg' in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 176
Warning: getimagesize(c:\inetpub\wwwroot\guestbook/public/img-1145833233.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\guestbook\lib\add.class.php on line 296
|
|
|