PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Thu Feb 22, 2007 7:16 pm Reply with quote Back to top

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
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4976

PostPosted: Thu Feb 22, 2007 10:32 pm Reply with quote Back to top

Sounds like a permissions issue or missing directory. Make sure the permissions are set to allow writing to the modules/Forums/images/avatars directory.
View user's profile Send private message
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Thu Feb 22, 2007 10:35 pm Reply with quote Back to top

I can't I'm not a admin of the raven test site but I'm willing Wink j/k.
View user's profile Send private message
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Fri Feb 23, 2007 6:29 am Reply with quote Back to top

Sure wish folks would stop posting the full paths in their threads... Sad

Try again if you like... thx.
View user's profile Send private message Visit poster's website
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Fri Feb 23, 2007 7:29 am Reply with quote Back to top

uploading file now works Smile 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 *
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2360
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Feb 23, 2007 11:46 am Reply with quote Back to top

Works fine on my testsite. Smile
View user's profile Send private message
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Fri Feb 23, 2007 6:49 pm Reply with quote Back to top

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
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5048

PostPosted: Fri Feb 23, 2007 7:20 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Fri Feb 23, 2007 7:22 pm Reply with quote Back to top

Ah right cool. Another solved thread in that case. Can I mark it Fixed or is that only for admins to decide?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum