Li Ning
Sophomore
Just Getting Started
Member Likes (0)
... it is not my lucky day. :(
I tried the avatar plugin. It seems ok after uploading the avatar picture, and I see the page of crop image, my avatar shows up here. After croping image, it goes back to upload page again.
I tried clicking alternative upload, and got some erros. Here is the picture.
Responses (33)
Member (joined August 2009) Likes (0)
Here is the picture.
Member (joined August 2009) Likes (0)
I am using the latest mu and theme WPMU-triden 2.1. Thanks.
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
Please next time copy and paste the error. Can't copy and paste from an image and not everybody can access a keyboard like most folks can.
Please give this a try and see if it works for you:
http://www.creloaded.com/support/tickets/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=184
Erstwhile founder (joined May 2007) Likes (0)
Which version of PHP are you running?
Thanks,
Andrew
Member (joined August 2009) Likes (0)
I tried to paste the code, but error page turned to the previous pages within secondes, I didn't have enough time "copy" the code.
The PHP I am running is 4.4.9.
Erstwhile founder (joined May 2007) Likes (0)
Hmm, what kind of image did you try to upload? Also, does this happen with all images or just that image?
Thanks,
Andrew
Member (joined August 2009) Likes (0)
I uploaded jpg, and tried png also. Actually I tried several pictures, but the same problem occurs.
Thanks.
Ning
Erstwhile founder (joined May 2007) Likes (0)
Are the images actually uploaded to the server?
/wp-content/avatars/blog/c4c/
/wp-content/avatars/user/c4c/
Those are the directories the main blog and admin user avatars should be uploaded to.
Thanks,
Andrew
Member (joined August 2009) Likes (0)
I can find /wp-content/avatars/blog/c4c/
/wp-content/avatars/user/c4c/ on the server.
Underr the folder c4c, there is four pictures, 92. 128, ... the same size listed in the avatar plugins. I downloaded these four pictures, it is all black.
I set up another wp for trail, everything works fine when I just finish setting up. I am thining whether it is becuase of some plugins conflicts?
I used many plugins here.
NING
Erstwhile founder (joined May 2007) Likes (0)
If I had to guess I'd say the problem is incorrect directory permissions. It may even be an ownership issue.
Thanks,
Andrew
Member (joined October 2009) Likes (0)
I am also having this issue, has a resolution been found yet? Have any plugins been identified as problematic? I am using the following plugins in mu-plugins:
additional_tags.php
admin-footer-text.php
admin-help-content.php
avatar-comments.php
avatar-posts.php
avatars.php
blogs-directory.php
content-monitor.php
default-theme.php
login-image.php
mass-mailer.php
mp-plugin-manager.php
post-indexer.php
remove-browse-happy.php
remove-permalinks-menu-item.php
remove-wp-dashboard-widgets.php
tips.php
widget-avatar.php
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
Is your issue exactly like the one above? If not a description of the problem you're experiencing would help :)
Thanks,
Andrew
Member (joined October 2009) Likes (0)
Here is the output, using the blog directory plugin, which shows that the blog avatar for "DukeGroups Hosting Development Discussion" is missing:
http://dukegroups.duke.edu/blogs/
I am experiencing the same issues as above except that my avatars are appearing correctly when I download them from the /avatars/blog/a87 directory (they are not blacked out) as seen here:
http://dukegroups.duke.edu/wp-content/avatars/blog/a87/blog-4-128.png
I am also not receiving the errors that Li Ning is seeing after uploading the image. This is what I see, which I assume is missing a preview of the cropped avatar (notice the tip bar, using the Tips plugin from WPMUdev):
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
The rewrite rule hasn't been added to your .htaccess file it seems.
Works:
http://edublogs.org/avatar/blog-1-32.png
Doesn't work:
http://dukegroups.duke.edu/avatar/blog-1-32.png
It's either that or avatar.php isn't in wp-content.
Thanks,
Andrew
Member (joined October 2009) Likes (0)
It was an FTP permissions issue with my hosting provider. Thanks for the help. Great Plugin.
Member (joined March 2010) Likes (0)
Hi Andrew
I'm having exactly the same problem as Li Ning:
There's a small difference though.
The image for my Admin user My images can be found at /wp-content/avatars/blog/ecc/ and
I confirmed that avatar.php is in wp-content
Member (joined March 2010) Likes (0)
Sorry, the upload button posted the above reply before I was ready. Please ignore some of what was written above as it wasn't quite accurate.
Here's the correct version.
The image for one of the (test) blogs is at /wp-content/avatars/blog/ecc/blog-3-128.png. There are four versions.
The image for one of the (test) users is at /wp-content/avatars/user/e4d/.
avatar.php is in wp-content.
As can be seen in the screen shot above there's a missing image icon that displays following the image upload and crop.
Clicking on the Alternative Upload threw up the following errors (these are the ones Li Ning referred to above. They disappear pretty quick. I have speedy hands!
There was an error uploading the file, please try again.
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 774
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 782
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 790
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 798
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 806
Warning: unlink(/home/realesta/public_html/wp-content/avatars/user/c4c/) [function.unlink]: Is a directory in /home/realesta/public_html/wp-content/mu-plugins/avatars.php on line 1235
The supporter avatars show on the main blog home page (via the Supporters widget) as blank white squares.
I'll bet I'm not holding my tongue right. Any help greatly appreciated.
Peter
Member (joined March 2010) Likes (0)
Hi all
Just wondering if it was resolved that the problem here is an FTP issue or perhaps me missing something super basic.
:-)
Peter
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
Can we get a link to your site please?
Thanks,
Andrew
Member (joined March 2010) Likes (0)
No problems Andrew. http://realestatetribe.com.au
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
You need to make sure the .htaccess line is in place.
http://realestatetribe.com.au/avatar/user-1-128.png
http://edublogs.org/avatar/user-1-128.png
Thanks,
Andrew
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
Before you clicked on the Alternative Upload button, did you pick an image? I recall seeing those imagecopyresampled errors previously when an image hadn't been chosen.
Member (joined March 2010) Likes (0)
Hi Andrew
Checked that the .htaccess line is in place. While I was there I also checked the permissions on the blog, user and avatars directories. All set to 777.
Mike, I tried that. Clicked Choose file, selected a file, clicked Alternative Upload. The screen returned a missing image icon (attached)
Erstwhile founder (joined May 2007) Likes (0)
Hiya,
The .htaccess line still isn't working. Try deleting the .htaccess file on the server and then upload the modified file.
Thanks,
Andrew
Member (joined March 2010) Likes (0)
Hi Andrew
Tried that. Still not working.
I notice that there's a file called .htaccess_bp.
When I set the site up using pSek hosting there was a lot of plugins that pre-installed (including this plugin). Buddypress wasn't one of them. All have worked fine with the exception of Avatar.
Not sure if that's relevant but thought it worth mentioning.
Cheers
Peter
Erstwhile founder (joined May 2007) Likes (0)
You can remove that file.
If your site was setup via WP.MU and you haven't made any large changes to the install we're happy to handle this for you. Just send us WPMU and cPanel login information via either the WP.MU contact form or the contact form on this site. Please reference this thread in the message.
Thanks,
Andrew
Member (joined March 2010) Likes (0)
Thanks Andrew
Deleted the file, no change.
I've sent the details requested via the contact form on this site.
Much appreciated.
Regards
Peter Fletcher
Erstwhile founder (joined May 2007) Likes (0)
Hi Peter,
You should be good to go now. Let me know if you have any additional problems.
Thanks,
Andrew
Member (joined March 2010) Likes (0)
Andrew
Your blood's worth bottling. Thanks so much. And a bit more.
I don't suppose I could ask what you did or what was wrong?
Thanks
Peter
Keeper of the Dark Chocolate (joined July 2007) Likes (0)
Gotta admit I'm curious as well.
Erstwhile founder (joined May 2007) Likes (0)
It was just a permissions issue. You should be good to go now.
Thanks,
Andrew
Member (joined July 2010) Likes (0)
When you find a solution - you should post the details. We have the EXACT same problem - i see that you solved it for someone else, but we are still left without a solution.
What permissions were incorrect?
Member (joined July 2010) Likes (0)
Found the solution to my problem, turns out I had correctly added the new line to the .htaccess file, but it had to be added directly under the
# uploaded filesline or the lines that are below this one. I had added theRewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]at the end of the .htaccess file.WordPress Questions?
We've got answers!
Find out more »