Title: Gallery data is missing
Last modified: June 3, 2026

---

# Gallery data is missing

 *  Resolved [alanintertec](https://wordpress.org/support/users/alanintertec/)
 * (@alanintertec)
 * [5 days, 7 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/)
 * Hi,
 * I wanted to flag a bug with the SimpLy Gallery Block plugin.
 * The masonry gallery on the following page is no longer displaying on the frontend:
   
   [https://compassionincare.com/gallery/](https://compassionincare.com/gallery/)
 * The gallery is still visible and intact in the WordPress editor, but on the frontend
   the following error is appearing in the browser console:
 * “Gallery data is missing”
 * I have tried rolling back to the previous version but the issue persists. Could
   you please look into this?
 * Happy to provide any further details or admin access if needed.
 * Thank you
 * Alan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-data-is-missing-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Nadiya – SG Support](https://wordpress.org/support/users/wpdexterity/)
 * (@wpdexterity)
 * [5 days, 6 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18927504)
 * Hi Alan,
 * Thank you for reporting this.
 * The “Gallery data is missing” message means that the frontend script is running,
   but the gallery data expected on the frontend page is not available. This can
   happen for different reasons, including theme behavior, another plugin modifying
   block output, cache/optimization tools, or changes in the WordPress environment.
 * At this point, I cannot confirm that this is a bug in the SimpLy Gallery Block
   plugin itself.
 * Since the gallery is visible in the editor but not rendered correctly on the 
   frontend, please first test the site environment by doing the following:
    1. Temporarily switch to a default WordPress theme, such as Twenty Twenty-Four 
       or Twenty Twenty-Five.
    2. Temporarily disable all other plugins except SimpLy Gallery Block.
    3. Clear all cache, including browser cache, site cache, CDN cache, and any optimization/
       minification cache.
    4. Create a new test page with only one Masonry gallery block and a few images.
    5. Check whether the gallery renders correctly on the frontend.
 * If the issue still happens in that clean environment, please send me the results
   of that test, including the theme name, WordPress version, plugin version, and
   any console/PHP errors. In that case, I will treat it as a confirmed plugin issue
   and investigate it from the plugin side.
 * However, if the gallery works correctly in the clean environment, then the problem
   is caused by a conflict with the active theme, another plugin, or site optimization/
   caching settings.
 *  Thread Starter [alanintertec](https://wordpress.org/support/users/alanintertec/)
 * (@alanintertec)
 * [5 days, 5 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18927561)
 * Hi,
 * Thank you for the information.
 * The issue was caused by the Lazy Load Media feature in the SiteGround Speed Optimizer
   plugin.
 * Thanks again!
 *  Plugin Support [Nadiya – SG Support](https://wordpress.org/support/users/wpdexterity/)
 * (@wpdexterity)
 * [5 days, 4 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18927651)
 * [@alanintertec](https://wordpress.org/support/users/alanintertec/) 
   Thank you
   for the update.
 * That is very helpful information. So the issue was caused by the Lazy Load Media
   feature in the SiteGround Speed Optimizer plugin, not by the gallery data being
   lost in the editor.
 * SimpLy Gallery Block already includes lazy loading support for gallery images,
   so an additional lazy-load layer is usually not needed for galleries created 
   with the plugin.
 * In this case, it looks like the external lazy-load/optimization feature modified
   the frontend output and interfered with the gallery data used by the frontend
   script. When that happens, the gallery script can load, but it cannot find the
   required gallery data and may show the “Gallery data is missing” message.
 * I’ll keep this case in mind and check whether anything can be improved on the
   plugin side to make galleries more resistant to this type of conflict.
 * Thanks again for confirming the cause.
 *  Thread Starter [alanintertec](https://wordpress.org/support/users/alanintertec/)
 * (@alanintertec)
 * [5 days, 4 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18927673)
 * Thank you, Nadiya!
 *  Plugin Support [Nadiya – SG Support](https://wordpress.org/support/users/wpdexterity/)
 * (@wpdexterity)
 * [5 days, 2 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18927825)
 * **Recommended fix for SiteGround Speed Optimizer / Lazy Load Media conflict:**
 * Open the affected gallery block in the editor, then go to:
 *     ```wp-block-code
       Gallery Settings → Media HTML Output → Inline HTML
       ```
   
 * This changes the fallback gallery output from <noscript> HTML to hidden inline
   HTML. It avoids cases where optimization plugins remove <noscript> tags and expose
   fallback media on the frontend.
 * If possible, also disable the external Lazy Load Media feature for pages using
   SimpLy Gallery Block, because the plugin already includes lazy loading for gallery
   images.
 * ![](https://monosnap.ai/image/MRbBlXVDAjsmNjmSrbpdyzJDemYeAN)
 *  Thread Starter [alanintertec](https://wordpress.org/support/users/alanintertec/)
 * (@alanintertec)
 * [4 days, 9 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18928402)
 * Hi Nadiya,
 * This fix is working.
 * Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-data-is-missing-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/simply-gallery-block/assets/icon-256x256.png?rev=2543539)
 * [Mixed Media Gallery Blocks](https://wordpress.org/plugins/simply-gallery-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-gallery-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-gallery-block/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-gallery-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-gallery-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-gallery-block/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [alanintertec](https://wordpress.org/support/users/alanintertec/)
 * Last activity: [4 days, 9 hours ago](https://wordpress.org/support/topic/gallery-data-is-missing-2/#post-18928402)
 * Status: resolved