Hello Kalico,
It appears you are running Jetpack and using their CDN. Locally you are behind a router/firewall which would block incoming requests.
You can go into the wp-config.php file and add the JetPack developer define and this will allow your site to pull it’s images from your lical media library.
You can turn on Development Mode by adding define( ‘JETPACK_DEV_DEBUG’, true); to your wp-config.php file. Make sure you add it before the /* That’s all, stop editing! Happy blogging. */ line.
We hope you find this information helpful.
Thread Starter
kalico
(@kalico)
Thanks for the reply. But no, actually….I’m not using Jetpack. I’m on a Mac, and the firewall is off. I am able to accept incoming requests for other things. As mentioned, if a user has a Gravatar, it will show up locally.
Any other ideas?
-
This reply was modified 9 years, 6 months ago by
kalico.
Hi there,
The avatars are fetched using Gravatar. Gravatar grabs the user image, downloads it to their servers and serves it from there. Since you are developing locally, Gravatar cannot fetch this image.
If you uncheck “Enable Gravatars” in my plugin settings, the images will not be passed through Gravatar, they will be served directly from your localhost and it will work.
Gravatar needs to be serving the image, because we cannot check whether user has Gravatar or not – so we cannot know wheter to show Gravatar or letter avatar. By passing URL through Gravatar, we are basically saying to Gravatar “if this user has Gravatar -> show gravatar, if not -> show the image located in this URL”.
Marking this one as resolved – not really an issue, just a way things have to work. If you open up your local environment so that Gravatar could access it, it will work.
Kind regards,
Daniel Wroblewski
-
This reply was modified 9 years, 6 months ago by
Dev49.net.
Thread Starter
kalico
(@kalico)
That did the trick! Thank you, Daniel. Can you tell me where in the database this “switch” is located, so I can avoid overwriting it when I sync my database?
bpfla_settings entry in wp_options table. All settings of my plugin are stored in this one entry. Inside you’ll find bpfla_use_gravatar key.