b2evolution 5.0.6-stable
On my site I've got a custom image uploaded at /rsc/img/default_avatar.jpg. That option is selected in the user display settings, as well as 'use gravatar' being selected there too. I changed the default image at a later point, but the new image is not showing up. Instead the old one is showing. I've deleted my browser cache a bunch of times and restarted, as well as the blog's, tried loading the page in different browsers, but nothing seems to get the new image to show. It's been about half a day now so Gravatar's cache should have caught up too. In fact going to the Gravatar URL for the image presents the old image and not the new.
Does anyone have any suggestions as to how to clear the cache for the image?
Hello @fredsy,
I guess this issue is related with the cache of an external tool, so it is not under our control. There should be a more elegant solution for sure, but this one that I would suggest you will help you to solve the problem inmediately.
Just go to your site's
_advanced.php
file (http://b2evolution.net/man/_advanced-php), locate the variable$default_avatar
and change its value from this:to this:
(Note that I added the number 2 to the file name).
After that, rename the file
/blogs/rsc/img/default_avatar.jpg
to/blogs/rsc/img/default_avatar2.jpg
.Additionally, I changed the Default gravatars value (http://b2evolution.net/man/profile-picture-settings) from "Default image" to "Gravatar", and after that I switched back to "Default image" again. Maybe it's not necesary, but those were the exact steps I followed.
Regards!