| Author |
Message |
ozbutcher Worker


Joined: Jan 17, 2007 Posts: 170
|
Posted:
Thu Feb 22, 2007 7:16 pm |
|
I tried to upload my avatar from my machine via Forum. It was a .jpg image 80x80 @ 4.86kb.
Error:
| Code: | Warning: move_uploaded_file(./modules/Forums/images/avatars/56393950045de3feb900c5.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in <<details removed by admin>>/includes/usercp_avatar.php on line 288
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpt0Wg1B' to './modules/Forums/images/avatars/56393950045de3feb900c5.jpg' in <<details removed by admin>>/includes/usercp_avatar.php on line 288 |
I then tried to Uploaded via Entering a URL however this image was slightly bigger than stated requirements. I got this error:
| Code: | Unable to upload file
DEBUG MODE
Line : 251
File : usercp_avatar.php |
|
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 4976
|
Posted:
Thu Feb 22, 2007 10:32 pm |
|
Sounds like a permissions issue or missing directory. Make sure the permissions are set to allow writing to the modules/Forums/images/avatars directory. |
|
|
|
 |
ozbutcher Worker


Joined: Jan 17, 2007 Posts: 170
|
Posted:
Thu Feb 22, 2007 10:35 pm |
|
I can't I'm not a admin of the raven test site but I'm willing j/k. |
|
|
|
 |
montego Moderator

Joined: Aug 29, 2004 Posts: 7582 Location: Arizona
|
Posted:
Fri Feb 23, 2007 6:29 am |
|
Sure wish folks would stop posting the full paths in their threads...
Try again if you like... thx. |
|
|
|
 |
ozbutcher Worker


Joined: Jan 17, 2007 Posts: 170
|
Posted:
Fri Feb 23, 2007 7:29 am |
|
uploading file now works but uploading via URL still shows the same error as above on line 251, file: usercp_avatar.php
* will remember to cut paths in future * |
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 2360 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Fri Feb 23, 2007 11:46 am |
|
Works fine on my testsite.  |
|
|
|
 |
ozbutcher Worker


Joined: Jan 17, 2007 Posts: 170
|
Posted:
Fri Feb 23, 2007 6:49 pm |
|
I had another go. I found out if uploading via URL and if the image is bigger than the required size of 80x80pixels thats when the error occurs:
General Error
Unable to upload file
DEBUG MODE
Line : 251
File : usercp_avatar.php |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 5048
|
Posted:
Fri Feb 23, 2007 7:20 pm |
|
I believe thats because Raven has debug mode turned on, When its turned off (which it normally would be in a production site) you would get an error message stating that the file size was too big and a reminder of the correct maxumum size. |
|
|
|
 |
ozbutcher Worker


Joined: Jan 17, 2007 Posts: 170
|
Posted:
Fri Feb 23, 2007 7:22 pm |
|
Ah right cool. Another solved thread in that case. Can I mark it Fixed or is that only for admins to decide? |
|
|
|
 |
|
|
|
|