Okay
  Public Ticket #2265271
JS errors - layers don't load
Closed

Comments

  • Syed Choudhury started the conversation

    Hey there, 

    I keep getting errors like "Uncaught TypeError: Cannot read property 'elements' of undefined" showing up on console, while none of the text layers on my slides load up.

    I've turned off all caching on the site and server, and toggled every setting in Layerslider > Options > Advanced, but still no joy.

    The preview in the backend however works fine...so a bit stumped.


    Running the latest version of WP, with PHP 7.4, and latest version of LayerSlider

  • [deleted] replied

    Hello Syed,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    Judging from the errors on your site we believe that the problem is going to be related to an image preloader/optimizer/lazy loader on your installation, that is interfering with the slider.

    We'd recommend to temporary disable other plugins and switch to a default WP theme to see if that solves the issue. If it does, you can turn them back one by one to see which one is interfering.

    If you are using Jetpack, we'd recommend to start with that. We had several issues with it in the past, as its lazy load option interferes with the slider's content, preventing it from loading.

  • Syed Choudhury replied

    Yep - Jetpack's Lazy Load was the issue.

    Is there a lazy load plugin you would recommend?

  • [deleted] replied

    Thank you for the feedback. You could try to exclude the sliders from Jetpack's target list, if it provides such option. So you can keep using it on your site, it just won't affect the sliders.

  • Syed Choudhury replied

    Thanks. All sorted now.