Quantcast
Channel: Wordpress Questions
Viewing all articles
Browse latest Browse all 10

wordpress:get_avatar() default image not working as of wp 3.5 [closed]

$
0
0

As of upgrading to wp 3.5 the get_avatar function started not pulling in my default backup image. This has worked for many years this way and curious to why it would stop. I am using the normal use of the function as this:

the $url value is the correct path to my default image found in my images folder in my theme.

echo get_avatar($author->user_email, $size = ’50’, $url);

I did a little digging into the image that was being put there that is “missing” and it looks like the url is using an image server on the wp.com domain (guessing somehting like akamai). Not sure why though since i have the image local and dont want to use this as the image hosting location.

image URL starts with: http://i1.wp.com/

I looked at the source code function in the pluggable.php file. Maybe it is something to do with the gravatar return? Maybe they are changing the image location to be on the server?

Any idea what is going on here? I see there are functions that can change the way that it works to exclude gravatar but would rather still have that functionality if i can.

Thanks

Disable all plugins and switch to TwentyEleven. Does it still happen?
No plugins used. When i switch to TwentyEleven or TwentyTwelve it shows a the MysteryMan image and the gravatar image (which i know was working and is set at gravatar.com) is not showing up. Very strange..
I think that i resolved the issue and marked the possible solution below.

Answers

I think that i figured it out.

Gravatar default images need to be on a public url and not one blocked by htaccess. So i had this on my dev server and when i removed my htaccess file that was blocking access the images started to work. This seems to still be a new feature. Hope that this helps out someone in the future.

This question helped me! Cheers, annoying how WordPress doesn't tell you it couldn't load it and just changes the URL seemingly at random

Source


Viewing all articles
Browse latest Browse all 10

Trending Articles