• Hi, last week, my site was automatically updated to the newest WordPress version. All my images disappeared from my website. Featured images, images in blog posts, etc. I contacted my hosting provider, Siteground, but they cannot help me. They actually suggested me to pay for their developer services to get it fixed, which I found ridiculous as it’s not even my fault but theirs. I hope you can help me!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Ok, what do i see:

    1. all of your images are being lazy-loaded. On initial load the lazy loader replaces the image with a small placeholder image. And then it uses some Javascript to swap in the real image later.
      And the Javacscript to do that is not working.
    2. There is a Javascript error on the site, for reference:
      SyntaxError: Unexpected token ')'
      And its originating form this script:
      https://jessicascheper.com/wp-content/uploads/siteground-optimizer-assets/siteground-optimizer-combined-js-0650d56728dc8401cbcea09f8c8969ac.js

    So that broken script is from the SiteGround Optimizer, it has cached a bad script that is creating that error. And in doing so it is breaking the lazy loading function.

    First thing to do is disable the SG Optimizer plugin, then purge the SG Caches some of which are on the server eg. page caching.

    Leave the plugin disabled for now. Then clear your browser caches, and recheck your site.

    Thread Starter scheperjessica

    (@scheperjessica)

    Dear David, thank you so much for your help! It solved the problem. And I feel like my site is even a bit faster now. Thanks so much and have a great day!

    Super glad to hear that. You may want to share this topic with SiteGround, their customer support might benefit from it ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ALL images disappeared after automatic WordPress update’ is closed to new replies.