• Hi all,

    My issue is rather convoluted but I’ll try try to make it as clear as possible.

    I lost my website in 2018 due to a domain squatter and an expired credit card. I couldn’t get the domain back but I didn’t want to lose nine years worth of content, so I bought a new domain and attempted to transfer the content via a backup.

    I couldn’t get the backup restore to work, so I had to hire someone. This person said that none of my backups were usable, so he had to restore all of my content from the Wayback Machine internet archive.

    As a result, none of my thousands of blog posts have their images, even though the images are in the media gallery. I’d given up on the site, but I’m trying to use it again and it just looks terrible with so many imageless posts.

    Is there anything that can be done, preferably in bulk, given the massive number of posts. I suspect no longer owning the domain the images were originally uploaded/path is the root of my problems.

    I’m hoping one more try will do the trick. I thank you in advance for any insight or advise you can provide.

    Original domain: https://www.brownbombshellbeauty.com

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s not the new domain that’s the problem, it’s that your image links are all http: while on a https: page. Browser security prevents mixed content, all references need to be https:. If you requested the http: version of your page, all the images will show, but users will get an insecure content warning.

    The fix is to use the Better Search and Replace plugin to find all instances of “https://amber” and replace with “https://amber”.

    Thread Starter ambermck24

    (@ambermck24)

    Thanks for your suggestion. Unfortunately, that didn’t work. There were zero instances found.

    Moderator bcworkz

    (@bcworkz)

    On closer examination of your site, it appears the problem images are all featured images? Or at least none of the problem images are within post content?

    The URL scheme (http: or https:) for those images are determined dynamically based on server data maintained in PHP’s $_SERVER array. There’s something amiss with this data and your server configuration. You’ll likely need help from your host’s technical support to resolve this. Specifically what is needed and isn’t happening in PHP is:

    $_SERVER['HTTPS'] == 'on'|| 1 ;
    $_SERVER['SERVER_PORT'] == '443';

    At least one of those conditions are required in order for WP to properly assign the correct URL scheme to featured image URLs.

    N.B. — it is possible for us to force https: URL scheme through the use of the ‘set_url_scheme’ filter within WP, but it’s far better to have your server and PHP properly configured.

    Thread Starter ambermck24

    (@ambermck24)

    Thank you for this further insight. I had forgotten, but you’re right about the featured images thing.

    When person I hired uploaded my content from the backup, every post was missing its images. According to him, there were no images on the backup, text only, and that’s how he ended up on the Wayback Machine to pull the images.

    Do you suggest I follow the steps you suggested above with my host (Bluehost), or try to make another go at the backups and hope that my images really are there? Thank you, I really appreciate your help!

    Moderator bcworkz

    (@bcworkz)

    Please follow up with Bluehost (but read this entire reply first…). You may copy to them my earlier explanation of the issue.

    Re-uploading or even uploading a new featured image will not help because the https: is determined at run time from data in $_SERVER.

    As I said, if all else fails we can force WP to use https: regardless of what data $_SERVER has. Which makes me think of one more thing to investigate before you contact Bluehost. Let’s be sure your theme or one of your plugins isn’t doing the opposite, forcing http:. As a test, temporarily switch to one of the twenty* default themes and deactivate all plugins. Clear your browser’s cache. We need to ensure we’re getting freshly generated content and not stale, cached content.

    Check your site again, ensuring it’s a https: request and not http:. If now the problem persists, go ahead and contact Bluehost. If it is resolved, restore your theme and plugins one at a time until the problem reappears. The last activated module would be the cause of the problem and not your server configuration.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restored Images Missing From Posts (but Appear in Media Gallery)’ is closed to new replies.