• Resolved akedv

    (@ak71)


    Hi,

    when activation the “TablePress Extension: Sorting plugins” (v1.2) I get the error message: DataTables warning: table id=tablepress-1 – Cannot reinitialise DataTable. For more information about this error, please see https://datatables.net/tn/3 in the frontend, how can i fix this? Tablepress is latest version (v3.1.3)

    • This topic was modified 9 months, 4 weeks ago by akedv.

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

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

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    It looks like the WP-Optimize plugin is somehow duplicating code in this case, but I’m not sure why.

    Can you please clarify what you are trying to achieve with that TablePress Extension?

    Best wishes,
    Tobias

    Thread Starter akedv

    (@ak71)

    Hello Tobias,

    the sorting isn’t working right without the plugin, just check it (e.g. sort by “Preis”) now, I just have deactivated the sorting plugin.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, yes, now I see! I had missed that column before, sorry.

    For this, using the Extension is indeed a good way. I then suggest to turn it on again and maybe check and adjust the settings of WP-Optimize (maybe it will even be enough to clear the cache or similar), to prevent it from embedding/loading JS code twice in the files that it creates.

    Regards,
    Tobias

    Thread Starter akedv

    (@ak71)

    YES!

    it was the WP-Optimize minify function which broke this, i just added:

    /wp-content/plugins/tablepress-datatables-sorting-plugins/jquery.datatables.sorting-plugins.js

    to the exclusion list of javascript minifying and the problem is gone now, thanks for pointing me in the right direction 🙂

    topic can be closed, have a great day!

    • This reply was modified 9 months, 4 weeks ago by akedv.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

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

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

The topic ‘“DataTables warning […]Cannot reinitialise DataTable” with Sorting plugins’ is closed to new replies.