Slider vanished from front end
-
Hi,
My client notified me today that the Gutenslider had disappeared from the homepage (I’ve linked to the staging site, which has the same issue, as I’ve done a temporary fix on the real site). The slider is still there on the back end, and if you look at the front end code it’s there, but nothing displays.
Since it worked previously I’m wondering if something went wrong with the v6 upgrade. Any ideas you have would be greatly appreciated, thanks!
The page I need help with: [log in to see the link]
-
Follow up: I deactivated version 6.0 and restored version 5.10 from an earlier copy I had, and the slider is working again. So it does seem like some conflict in the new update. I’ve since restored version 6.0 to the staging site I linked to for debugging purposes; the slider should be appear in the empty blue space on the right side directly under the hero image.
I checked your site, it seems like you are using a caching plugin, can you try deleting the cache (tries to load /cache/autooptimize/…) that could resolve the issue. Please report back
Thanks for getting back to me! We don’t have a caching plugin installed, but we’re hosted by WP Engine, which does its own caching. So I cleared the all of the WP Engine caches, then did a “Empty cache and hard reload” via the Chrome inspector, but it has not restored the slider on the front end.
I had the same problem and the slider just appeared again rolling back the plugin to the 5.9 version. I’ve tried the 6.1.2 and it didn’t fix. My slider disappeared from the front end when I was just updating a slider today using the 6.1 version.
@viviancruzbt can you please send a link to your site so we can have a look and try to find the issue
@cmerrick the url above, does this show the issue? or is it the site with the 5.x version activated?
Yes, on https://riverpartstage.wpengine.com/ the slider should be showing just under the big hero image, on the right, but is not. This is a staging site.
Right now it’s got WP version 6.3.2, PHP 8.2, and Gutenslider 6.1.0. On the live site, I reverted to Gutenslider 5.10, and that made the slider show up again.
-
This reply was modified 2 years, 5 months ago by
cmerrick.
@cmerrick from your site i see the following error i was referring to above:
Uncaught (in promise) ChunkLoadError: Loading chunk 123 failed. (error: https://riverpartstage.wpengine.com/wp-content/cache/autoptimize/js/gutenslider-js.js)
There are also warnings from a plugin(?) javascript file calledlazysizes.js. To help us (and anyone running into this) debug, can you please try disabling all other plugins but Gutenslider and see if the error persists. If not try enabling one plugin after each other and check which breaks the slider. In any case get back to us so we can help find the cause. Most likely some plugin / theme / setup is preventing loading some js / css from Gutenslider.
And can you please send the live site url, so we can see how the slider is supposed to look / to see which content is in the slider.-
This reply was modified 2 years, 5 months ago by
eedee.
I decided to disable the plugins one by one, starting with the most likely culprits based on what you said, and got lucky — the first one I tried was the conflict. That plugin is called Autoptimize (https://wordpress.org/plugins/autoptimize/). I’ve left it disabled on the staging site, so the slider is now showing. There are some difference between that and the live site (https://riverpartners.org/) now — the arrows and dots overlap the slider instead of being in the space around it, but I may be able to fix that with some css adjustments.
So, not sure who needs to fix what but it seems the Gutenslider 6 + Autoptimize 3.x is where the conflict occurs.
By the way, great plugin otherwise! 😀
AO acts on
gutenslider-front.jsbecause the filename wrongly indicates it is not minified (gutenslider-front.min.jswould be left alone) and that results in the minified file being inwp-content/cache/autoptimize/jsand the JS in that file then tries to loadgutenslider-js.jsfrom the same directory which fails (AO does not know about that file because it’s not referenced in the HTML).@cmerrick as a workaround one can add
wp-content/plugins/gutensliderto the JS optimization exclusion list, that should fix the problem?@eedee making sure minified files end in
.min.jswill prevent AO from acting the file in the default AO configuration which is not to aggregate all JS. if JS is aggregated, this could still happen, so maybe you could use yourpluginsUrlvariable to determine where the JS-files are to be loaded from?I added wp-content/plugins/gutenslider to the Autoptimize exclusions and that did the trick. Thanks for your help!
I’ve updated Gutenslider to 6.1.0 and the slider vanished from the frontend again. So I’ve deactivated the plugin WP Performance Score Booster, which works on minifying JS and CSS to optimize the website, and the slider appeared. So the conflict is with this kind of optimization. This website has been working fine with both plugins for 3 years until now. And downgrading Gutenslider made it work again. Please take a look at this because this king of optimization is important to the website.
@viviancruzbt I tested with
– Gutenslider Version 6.1.0
– WP Performance Score Booster Version 2.2.1, All settings are on
no other plugins, and it works.
Try reinstalling Perfomance score booster, maybe there is some cache that I do not see another option of emptying. If that does not work, try for testing, to create a new post with a new Gutenslider and see if that works.
If all that doesn’t there is probably other theme / plugin incompatibilities.@optimizingmatters what do you mean by “aggregated js”?
I contacted the author of “Autooptimize” to ask for a possible solution. Will update this asap-
This reply was modified 2 years, 5 months ago by
eedee.
“aggregated JS” is when Autoptimize is configured to combine all JavaScript in a page.
-
This reply was modified 2 years, 5 months ago by
The topic ‘Slider vanished from front end’ is closed to new replies.