• Resolved lkbl

    (@lkbl)


    Hi there,

    I have a question regarding a datatable error. I get the following error:

    “3. Warning: Cannot reinitialise DataTable”

    Now, I have tried to read up on whats going on in the provided link (https://datatables.net/manual/tech-notes/3), but I simply can’t seem to fix it. Is there anyone that can assist me in plain english? 🙂

    Any help is greatly appreciated!

    Best wishes
    Lars

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I can’t really reproduce this. When I go to your link, I don’t see any such error and the table features work fine.
    Does this maybe only happen when you are logged-in on your site?

    Regards,
    Tobias

    Thread Starter lkbl

    (@lkbl)

    Hi Tobias,

    I just tried in inkognito while signed out, and I get the same mistake. I have taken a screenshot of the mistake here: https://imgur.com/a/KawuZD6

    Once I press the “OK” button the post etc. works fine. But obviously our site will have a crazy high bounce rate in this post, if this happens.

    Thanks for you time,
    Best, Lars

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, now I see the problem (I don’t get the actual warning message, but I can see why it’s there).
    For some reason, the JavaScript code that invokes the DataTables JS library features (and some other JavaScript) are loaded twice in the page footer. This indicates that something is wrong in your theme’s “footer.php”. Most likely, some call like

    wp_footer();
    

    is in there twice. To verify this, can you please try switching to a WordPress default theme like Twenty Sixteen and try again?

    Regards,
    Tobias

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

The topic ‘Datatable mistake’ is closed to new replies.