Mason
Supreme Deity
True DEVian
Lifetime member
Member Likes (0)
Hey all,
A couple issues with the avatar plugin. I've double-checked that all phps are uploaded correctly, new folders and permissions are set and the .htaccess file is properly updated.
**Edit: I have found that the space where the avatar should be displayed is trying to pull an image from example.com/avatar/user-6-48.png. The actual file is ad example.com/wp-content/avatar/user-6-48.png. I looked it up via ftp and the second link is correct and has the photo.**
First, no avatars are showing up on the blog. It shows a spot for them (both in themes and in the admin backend) but no actual picture is displayed.
When I try to upload a picture, it shows the preview and allows me to crop them, but once this is complete it shows a blank, not even the default-avatar.png shows up.
I have the "monsters" avatars set up as default on the integrated bbpress forums and these work as expected.
I've also noticed that from the edu-clean theme the direct link to the "Upload a new avatar" works for the admin, but doesn't work for a regular user. Any thoughts on this?
Thanks everyone.
Responses (13)
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
A few questions:
1) Are you running BuddyPress
2) Is the gd image library installed and loaded?
3) Are there any errors in your error log?
4) Is anything as all being created in the avatar directories (wp-content/avatars/user, etc)?
Also, can we get a link to your site so we can see what's going on?
Member (joined April 2009) Likes (0)
Hey Andrew,
1. No BuddyPress. I did originally have this installed, but manually removed the .php files. Perhaps there is some effect of this still lingering?
2. gd image library is supposedly installed by my host (gatorhost.com)
3. No error log at this point.
4. Yes, I edited the first post, but the files are being created in the directory you mention (wp-content/avatars/user) but when you have the browser show you the direct link to the avatar it goes to example.com/avatar/user.
Erstwhile founder (joined May 2007) Likes (0)
Can we get a link please?
Thanks,
Andrew
Member (joined April 2009) Likes (0)
Sorry Andrew,
Here's the link:
http://neighborhosting.com
Thanks,
-james
Erstwhile founder (joined May 2007) Likes (0)
Double check your htaccess file. Note that it's generally best to delete the .htaccess file from the server before uploading a modified version. A lot of FTP clients have a hard time overwriting .htaccess files.
Doesn't work:
http://neighborhosting.com/avatar/blog-1-32.png
Works:
http://edublogs.org/avatar/blog-1-32.png
Thanks,
Andrew
Member (joined April 2009) Likes (0)
I double checked the .htaccess file, deleted the server copy and uploaded the edited version. Checked it again. Still no change.
Here's the section from .htaccess:
#uploaded filesRewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]
Erstwhile founder (joined May 2007) Likes (0)
Do you have any form of caching running? Also, have you checked the permissions on wp-content/avatar.php?
Thanks,
Andrew
Member (joined April 2009) Likes (0)
Hey Andrew,
Thanks for the quick responses.
I had doncha's super-cache plugin running, but have tested this with it turned off as well.
The permissions are set to 755 on the wp-content/avatar.php. Is this correct?
Thanks again.
-james
Erstwhile founder (joined May 2007) Likes (0)
Yep, 755 should be fine for that file.
Unfortunately there's really not any other suggestions I can make. If avatar.php is in wp-content and has sufficient permissions then it really has to be the rewrite rule.
It's as if the rewrite rule just isn't in place:
http://neighborhosting.com/avatar/user-1-32.png
http://neighborhosting.com/avatar/blog-1-32.png
Thanks,
Andrew
Member (joined April 2009) Likes (0)
Wow,
Andrew, you were right and the ftp was not over-writing the .htaccess file correctly. I opened it up and edited it on the server and now it's working.
Sheesh... Anyway, thanks for taking a look. It would've taken me forever to find this!
Still having the issue where if I ask to "upload an avatar" after logging in on the frontpage of the edu-clean theme, it says "Cannot load user-avatar."
It doesn't work when it loads the subdomain like this:
http://subdomain.neighborhosting.com/wp-admin/users.php?page=user-avatar&uid=5
But does work when you load it with only the domain like this:
http://neighborhosting.com/wp-admin/users.php?page=user-avatar&uid=5
Thanks,
-james
Erstwhile founder (joined May 2007) Likes (0)
I think you mentioned that you worked around this issue in another thread. Is that correct?
Thanks,
Andrew
Member (joined April 2009) Likes (0)
Yes, that's correct.
If you do not have the Site Admin options plugin enabled for User>Users Authors and Users then the user-avatar.php page will not load even though the option will show up in the side-bar widget.
Thanks,
-james
Erstwhile founder (joined May 2007) Likes (0)
That's interesting. We'll look into that issue.
Thanks,
Andrew
WordPress Questions?
We've got answers!
Find out more »