• Hello,

    I uploaded a new profile picture in Simple Local Avatars but I see a broken image icon instead of the photo. I am surfing with Google Chrome. No problem with Safari. I cleared the browser and site cache but the problem still exists. Can somebody help me with that ?

    Thank you!
    Hélène

    • This topic was modified 2 years, 8 months ago by lnbxl.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darin Kotter

    (@dkotter)

    @lnbxl Thanks for reaching out. Looking at your site, the issue here is the avatar image is loading from an http URL, where the site URL itself is https. Chrome (and most other browsers) will block assets from loading that aren’t secure if the site itself is secure.

    Simple Local Avatars doesn’t do anything itself as far as determining if images should have either http or https, it relies on core WordPress functions for that. Could you let me know if the admin side or your WordPress site (so when you are in wp-admin) is loaded over http or https?

    Thread Starter lnbxl

    (@lnbxl)

    Hi Darin,

    I am not an expert so a friend of mine helped me to set up https on my website a year ago. First, she used a plugin but a few weeks ago she used htaccess and removed the plugin. The admin side is loaded over https since.

    Thanks for your help!
    Hélène

    Thread Starter lnbxl

    (@lnbxl)

    Hey Darin,

    I just fixed the problem by adding a “https” in my website’s URL in the General Settings of my WordPress Dashboard 🎉

    Found the solution here 👉 https://wpbuffs.com/wordpress-https-mixed-content

    Thanks you!
    Hélène

    To add my own experience, had the exact same issue (favicon was also not loading) and this fixed it for me (thanks, Hélène).

    My site has always been set up and loaded as https, but somehow that setting was wrong in WordPress General settings. 🤷🏻‍♀️

    As a workaround, here’s a snippet of code I added to a multisite where I couldn’t figure out why this was happening. You’d include this in a custom plugin or a theme’s functions.php. Assumes you know everything should be https, not http.

    add_filter( 'get_avatar', 'fix_avatar_https');
    add_filter( 'get_avatar_url', 'fix_avatar_https');
    function fix_avatar_https($url_or_html) {
    	return str_replace('http://','https://',$url_or_html);
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Broken Image Icon’ is closed to new replies.