If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Installation help  XML
Forum Index » Advanced Guestbook Forum
Author Message
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.
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 \?
Webmaster
Site Admin
[Avatar]

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:
[Email] [WWW]
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.
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?
Auron
Expert
[Avatar]

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)
[Email] [WWW]
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".
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum