News:

Wondering if this will always be free?  See why free is better.

Main Menu

User can't create avatar

Started by Leemy, March 17, 2009, 11:03:34 AM

Previous topic - Next topic

Leemy

I have a few users messaging me that they can't upload avatars. They enter the file path in the form, upload the pic, but nothing shows up.  In the \attachments\ directory, there is no avatar for them (i tried adding one myself, too)

Should the attachments\ folder be chmod "777" or "644" or what? Is that the issue??

Thanks

http://bhangrateamsforum.com is the site

kat

It should be write-enabled, yeah.

Leemy

Yeah right now it's all 777 so idk why they cant make avatars.

kat

Just to check...

If you've set the avatar size-limit, try uploading one that's smaller than the setting and see what happens. It could be that the resizing function's screwed.

Leemy


kat


H

Are there any errors in your error log? (Admin area > Error log)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Leemy

Just went through my error log, a bunch of password incorrects lol but no nothing related to this!

Leemy

Any help with this?
If it's relevant when I go to Attachments/Avatar settings I get a red message saying
The GD module is currently not installed. Some avatar features are disabled.

No one can edit/add avatars!

Leemy

I tried setting a custom path for the avatars instead of attachments (with 777 permissions)

I got the visible message

QuoteYour attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.


And Error Log messages

Quote
Apply Filter: Only show the errors with the same message
2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpZujnaP' to '/home/*USER*/public_html/discuss/*PATH*/avatar_tmp_27'
File: /home/*USER*/public_html/discuss/Sources/Profile.php
Line: 1145

Quote
Apply Filter: Only show the errors with the same message
2: move_uploaded_file(/home/*USER*/public_html/discuss/*PATH*/avatar_tmp_27) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/*USER*/public_html/discuss/Sources/Profile.php
Line: 1145

H

QuoteThe GD module is currently not installed. Some avatar features are disabled.

This means that GD is missing from php. You should contact your host about this.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Leemy

What is "GD" so I can tell them???
Also is this the root of the problem or something tangential

N3RVE

'GD' is an image manipulation module that's usually compiled with PHP. It's used basically for dynamic image creation. For SMF, we use the 'GD' library to create .gif or .png images directly from our code.

If you are unsure if you have 'GD' library, you can run phpinfo() (What is phpinfo.php?) to check that 'GD' support is enabled.

It's possible your error has more to it than the missing 'GD' library as SMF can use other methods to resize image files such as HTML. I'd like you to look in server error log and post any related errors.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Aleksi "Lex" Kilpinen

[n3rve] likes to repeat himself, does he? :D
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Leemy

The host added the GD module and it seems to have fixed the problem. Thanks all :)

H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: