Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
When my users try and change their avatar picture they get these errors?

Warning: getimagesize: Read error! in D:\Inetpub\wwwroot\wwwthreads\changebasic.php on line 121

Warning: Unable to create 'D:\inetpub\wwwroot\wwwthreads\imagesupload/4.jpg': Permission denied in D:\Inetpub\wwwroot\wwwthreads\changebasic.php on line 139

I have checked to see if the directors are wiretable and they are ok.

line 121 in changebasic.php is this:
<pre>$imagehw = GetImageSize($HTTP_POST_FILES['userfile']['tmp_name']);</pre>

and line 139 is:
<pre> copy($HTTP_POST_FILES['userfile']['tmp_name'], "{$config['avatars']}/$Picturefile");</pre>

Anyone know what's going on?

Thanks <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Laura

The Webmistress

Anonymous
Unregistered
Anonymous
Unregistered
It sounds like maybe your temporary directory isn't writeable perhaps. There is a temporary directory specified in php.ini that needs to be writeable as well for uploads to work. Not sure if you've checked that one.

-------------------
Rick Baker
UBBThreads developer

Anonymous
Unregistered
Anonymous
Unregistered
Based on this portion of the error:
'D:\inetpub\wwwroot\wwwthreads\imagesupload/4.jpg'

I suspect that you have the absolute path to your Uploads directory set incorrectly - change the slashes around so that they look like this:

'D:/inetpub/wwwroot/wwwthreads/imagesupload/4.jpg'

Also check to make sure that the folder in question is writeable by the world <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Regards,

Brett Harris
Infopop Corporation

Anonymous
Unregistered
Anonymous
Unregistered
Thanks <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" /> I'll check these out and let you know how I get on.

The Webmistress

Anonymous
Unregistered
Anonymous
Unregistered
Thanks! It was the latter post. I didn't quite have the folders writeable.

<img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

The Webmistress


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)