Posts Not Publishing Correctly




Wordpress LScache Plugin: Posts Not Publishing Correctly

Last Updated on: Wed, 15 Apr 2026 00:00:02
When I draft and preview a post, everything appears as I want it to: Header 2 is centered and gallery images live side by side in 2 columns. When I click publish, the header is no longer centered, it is justified to the left, and the gallery images end up being on top of one another and not in 2 columns. This happened this afternoon when wordpress automatically updated to 5.3. Ive found a temporary workaround by not using header and gallery blocks, but would like this to be fixed. Like I said, it looks normal in preview, its just when I press publish that everything gets moved around. I deactivated Litespeed cache plugin and now everything works. Please let me know what alternatives I can use to using litespeed cache plugin or if a fix is expected soon. thanks! The page I need help with: https://www.svadore.com I experienced the same since upgrading to WordPress 5.3. The galleries look fine in the edit page but not on preview or when published. Galleries in old posts are fine but any attempt to edit existing posts or create new ones with galleries and all the images simply display in a single column. Hi all, may I know which plugin are you using to create the gallery? May I know the steps to reproduce the error? Also, @svadore I find theres a JS error on your site: (index):1579 Uncaught ReferenceError: Main is not defined at (index):1579 Could you please check does it related to the layout issue? I use just the most basic gallery option block included in WordPress with no other image plugins. I tried on various of my sites and only deactivating Litespeed Cache seems to make a difference. I made a sample page with two modern McLaren cars at the bottom of the post that should be next to each other rather than one below the other at: https://www.classic-car-auctions.info/usa/2019-rm-sothebys-st-louis-sale-guyton-collection-auction-results/ At existing posts, the galleries still work as they should but if I try to edit the page it immediately places the photos one underneath the other rather than next to each other, eg. at https://www.classic-car-auctions.info/european/other/2019-rm-sothebys-abu-dhabi-sale-auction-preview/ @stanleylitespeed Im not sure what that error means. Can you decipher it for me or help me figure out how to fix that possible error? Either way, all I did was remove your plugin and it now works. I dont think it has to do with the layout of my site since its always worked with litespeed. I think it has to do with the new wordpress 5.3 update and the fact that litespeed wasnt tested for compatibility with the updgrade. @henkbekker do you use a cache plugin? Try deactivating it, unposting your post and then reposting. It should work then. Thats what I did for my litespeed plugin since that was the issue. Thanks for the update @henkbekker, but seems I cannot find the error on that page, please check this image: https://imgur.com/a/ROkVYXU. Should I use a certain browser to reproduce the issue? That is what is supposed to look like (and what I get with the plugin off) but I dont get the two photos next to each other in Chrome, Safari, Firefox or a clean install of Opera on macOS Mojave. The same for all those browsers on an iPhone. The problem is immediately (but temporarily) solved if I deactivate the Litespeed Cache plugin. As soon as the Litespeed Plugin is activated it is back to this: https://www.classic-car-auctions.info/wp-content/uploads/2019/11/Screen-Shot-2019-11-14-at-18.15.53.png The issue seems solved on my sites by changing the setting Remove Query Strings to OFF (at tab 6 Tunning). Mine was already on off @henkbekker :/ Im happy it worked for you though! Hi @svadore, we get another report and find out the issue is related to Optimize > Remove Comment, if youve turned it ON, could you try to turn it OFF and purge the cache to see does it help? If not, please join our Slack channel for helping us to reproduce the error, thanks. @stanleylitespeed unfortunately mine was already turned off so thats not the cause! @svadore, please join our Slack channel and find me by the direct message @Stanley Cheung at Litespeed for helping us to reproduce the error, thanks.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference