Title: &#8220;DataTables warning [&#8230;]Cannot reinitialise DataTable&#8221; with Sorting plugins
Last modified: August 5, 2025

---

# “DataTables warning […]Cannot reinitialise DataTable” with Sorting plugins

 *  Resolved [akedv](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [10 months ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/)
 * 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](https://datatables.net/tn/3)**
   in the frontend, how can i fix this? Tablepress is latest version (v3.1.3)
    -  This topic was modified 10 months ago by [akedv](https://wordpress.org/support/users/ak71/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatatables-warning-cannot-reinitialise-datatable-with-sorting-plugins%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 months ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18586533)
 * 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](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18587009)
 * 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](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18587374)
 * 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](https://wordpress.org/support/users/ak71/)
 * (@ak71)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18587510)
 * 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](https://wordpress.org/support/users/ak71/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18588522)
 * 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](https://wordpress.org/support/plugin/tablepress/reviews/#new-post).
   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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [9 months, 4 weeks ago](https://wordpress.org/support/topic/datatables-warning-cannot-reinitialise-datatable-with-sorting-plugins/#post-18588522)
 * Status: resolved