Title: Cannot reinitialise DataTable
Last modified: June 28, 2026

---

# Cannot reinitialise DataTable

 *  Resolved [scottsanfilippo](https://wordpress.org/support/users/scottsanfilippo/)
 * (@scottsanfilippo)
 * [6 days, 10 hours ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/)
 * The latest update has broken every table I have where sorting and pagination 
   is enabled. I get:
 * DataTables warning: table id=tablepress-ccl-fleet-list – Cannot reinitialise 
   DataTable. For more information about this error, please see [https://datatables.net/tn/3](https://datatables.net/tn/3)
 * This page has those options enabled – [https://cruises.scottsanfilippo.com/carnival-cruise-line-fleet-overview/](https://cruises.scottsanfilippo.com/carnival-cruise-line-fleet-overview/)
 * If I disable those options as I did on this page – [https://cruises.scottsanfilippo.com/disney-cruise-line-fleet-overview/](https://cruises.scottsanfilippo.com/disney-cruise-line-fleet-overview/)
   the error does not display.
 * In laymans terms how can I fix this or get a version of the plugin before this
   last update? [https://datatables.net/tn/3](https://datatables.net/tn/3) is way
   over my head.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 days, 2 hours ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/#post-18950658)
 * Hi [@scottsanfilippo](https://wordpress.org/support/users/scottsanfilippo/)!
 * Thanks for your post and sorry for the trouble!
 * The cause for this problem is not actually TablePress, but TablePress is just
   happening to “uncover” a bigger problem with this message:
 * From what I can see, the entire footer section of your site is running/printing
   twice. This includes things like loading and executing of JavaScript files (of
   WordPress and all plugins). (And TablePress just happens to inform you about 
   this with this message.)
 * My strong guess is that your theme, likely in e.g. a “footer.php” file now has
   two calls to the WordPress PHP function `wp_footer();`
 * Can you please check that?
 * Best wishes,
   Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 days, 1 hour ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/#post-18950749)
 * Hi [@scottsanfilippo](https://wordpress.org/support/users/scottsanfilippo/),
 * quick update: A coworker found the cause for this:
 * It seems that you are implementing a custom print function (something that adds
   code that starts with this:
 *     ```wp-block-code
          function runScottPrint() {        var printContent = document.getElementById('scott-printable-content');        if (!printContent) return;
       ```
   
 * This is also printing the footer content, including HTML `</script>` tags. These
   are not escaped though, so that they prematurely end the “wrapper” `<script>`
   tag with your code.
 * So, please remove this custom print functionality or refactor it to properly 
   escape the code that this embedding via a JavaScript string.
 * Best wishes,
   Tobias
 *  Thread Starter [scottsanfilippo](https://wordpress.org/support/users/scottsanfilippo/)
 * (@scottsanfilippo)
 * [5 days, 18 hours ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/#post-18951257)
 * Hi Tobais,
 * Thank you! I went ahead and removed that completely and it’s working now. Strange
   that it always worked prior to me updating the plugin today. Thanks for your 
   quick help!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 days, 14 hours ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/#post-18951361)
 * Hi,
 * well, it’s possible that you only got that warning message now, but that the 
   code was actually already broken all that time!
 * Good to hear that this helped, though! 🙂
 * 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 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-reinitialise-datatable-8%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 days, 14 hours ago](https://wordpress.org/support/topic/cannot-reinitialise-datatable-8/#post-18951361)
 * Status: resolved