Support » Plugin: Smart Slider 3 » “Slider inited multiple times” error logged in console

  • Resolved kidznc

    (@wsp-kk)


    Hello!

    This is round #2 of my issues continued from this related topic: ( https://wordpress.org/support/topic/ajax-conflict-with-v3-3-6-default-settings/ ). As such, let me add a bit of backstory:

    First, I’m happy to say v3.3.7 fixed my previous AJAX issues as mentioned above, and I can now load all sliders with the JS in the head or in the slider with no negative effects on FacetWP-generated pagination.

    However, there’s a new problem. If the JS is set to the header, I get the following logged on both Firefox or Chrome:

    Slider [#n2-ss-4] inited multiple times
    Slider [#n2-ss-3] inited multiple times
    Slider [#n2-ss-2] inited multiple times

    It is originating from the combined .js cache file .../wp-content/cache/nextend/web/combined/9d41d2181fc4ccb56bddcb32e63c42c8.js

    If I change it “Into the Slider,” the problem disappears from the console, but the slider under the “Poster Contest” tab fails to load on page load.

    Any ideas?

    Thank you!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ramona (from Nextend)

    (@nextend_ramona)

    Hi @wsp-kk

    The first thing you should know about the “Slider [#n2-ss-ID] inited multiple times” notices are rather just notices than real errors and usually they’re not causing much trouble. (They were actually meant for helping with debugging.)

    From what I can see based on the page source is that the sliders in the message are used from popups. Is it possible that these popups should be rendered several times, but (probably because of their ID can’t be duplicated either) their HTML codes are only added once?

    Are you using the popups from your post? Maybe the post query runs several times on your linked page and that causes the error.

    If you would like us to help figure out the problem please open a support ticket: https://smartslider3.com/contact-us/support/?topic=Other&platform=WordPress&version=Free
    as we’ll need to debug your problem. Please be sure to refer to this topic.

    Dear Ramona:

    I’m aware they’re mostly debugging tools, but I do want to make sure that the .JS isn’t being loaded twice. The site has enough issues with too many separate JS and CSS files as it is – slows the load time considerably.

    This said, the sliders are not popups, but the video slider on the main page with the four Walk to School Day videos, and the photo slideshow under the Poster Contest tab.

    However, there is one popup and a slider associated with that page; they may be re-writing the code twice. I’ll delete some elements from the page on my local copy and report back.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Slider inited multiple times” error logged in console’ is closed to new replies.