• Resolved sstrand2022

    (@sstrand2022)


    DataTables warning: table id=tablepress-198-no-2 – Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3

    Help, this message is popping up all of a sudden when I try to gain access to certain pages. This is greek to me, I have never encountered this error before.

    Please advise on a solution.

    Thank you in advance

    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 post, and sorry for the trouble.

    I’m not really sure why (probably interference by another plugin or that CDN offloading mechanism on your site), the JavaScript code for invoking the TablePress JS features is being injected in the page’s source code twice.
    Now, as the only feature that you are using is Horizontal Scrolling, I would actually recommend replacing that with a non-JS solution. Not only would this solve this problem, but it would also bring higher performance as no JS file for this needs to be loaded and processed.
    To do that, please uncheck the “Use DataTables” checkbox on the table’s “Edit” screen, for all tables that are affected by this.
    Then, as you have already installed the TablePress Responsive Tables Extension, change the Shortcode on the pages to

    [table id=198 resposnive=scroll /]
    

    Regards,
    Tobias

    Thread Starter sstrand2022

    (@sstrand2022)

    Thank you for the response Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Please note that there’s a typo in my example above. The Shortcode should be

    [table id=198 responsive=scroll /]
    

    of course.

    Best wishes,
    Tobias
     
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘DataTables Warning Error – Need Resolution Please’ is closed to new replies.