Title: JavaScript conflict with Tablepress
Last modified: May 22, 2026

---

# JavaScript conflict with Tablepress

 *  Resolved [crowesnest](https://wordpress.org/support/users/crowesnest/)
 * (@crowesnest)
 * [2 weeks, 5 days ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/)
 * I have a table with pagination using the Tablepress plugin. I get a JavaScript
   error when using it with the Events Calendar plugin. Pagination will not work
   properly in Tablepress with the Events Calendar enabled.
 * “jquery.min.js?ver=3.7.1:2 Uncaught TypeError: Cannot read properties of undefined(
   reading ‘_select’)”
 * If I disable the Events Calendar plugin the pagination in TablePress works okay.

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

 *  Thread Starter [crowesnest](https://wordpress.org/support/users/crowesnest/)
 * (@crowesnest)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18916794)
 * I received this reply from Tablepress support regarding the JavaScript conflict.
 * Here is their reply:
 * From what I can see, “The Events Calendar” is also loading a copy of the JavaScript
   code of the DataTables JavaScript library on the page. This is the external code
   library that TablePress uses to add e.g. sorting, searching, and pagination.
 * TablePress currently ships with the newest version 2.3.8 of that library. However,“
   The Events Calendar” loads the VERY old version 1.13.8 . This old version then
   interferes with TablePress as it breaks the modern integration. In addition, 
   it loads that despite not even printing any table or events on that page, which
   obviously is wasteful and bad for performance.
 * So, I’m afraid that this is something that will need to be fixed in “The Events
   Calendar”: They should not only ship a modern version of the DataTables library,
   but they should then also only load it if it’s actually needed on the page.
 * Can you fix this please?
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18923330)
 * Hi [@crowesnest](https://wordpress.org/support/users/crowesnest/)
 * Thanks for reaching out.
 * To properly investigate this issue, could you please share the URL where we can
   reproduce or view the error message you mentioned above? This will allow us to
   check it further on our end and run some tests directly.
 *  Thread Starter [crowesnest](https://wordpress.org/support/users/crowesnest/)
 * (@crowesnest)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18923335)
 * Here is the link:
 * [https://www.manitobaprairiequilters.ca/library/](https://www.manitobaprairiequilters.ca/library/)
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [6 days, 18 hours ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18928805)
 * Hi [@crowesnest](https://wordpress.org/support/users/crowesnest/)
 * Thanks for your response.
 * Could you try the following workaround and see if it works on your end?
 *     ```wp-block-code
       add_action( 'wp_enqueue_scripts', function () {        if ( is_admin() || ! is_singular() ) {                return;        }        $post = get_post();        if ( ! $post ) {                return;        }        // Does this page actually render a TablePress table?        $has_tablepress = has_shortcode( $post->post_content, 'table' )      // [table id=...]                || has_block( 'tablepress/table', $post )                        // block editor                || false !== strpos( $post->post_content, 'tablepress-' );       // raw markup fallback        if ( ! $has_tablepress ) {                return;        }        foreach ( [ 'tribe-datatables', 'datatables' ] as $handle ) {                wp_dequeue_script( $handle );                wp_deregister_script( $handle );        }        wp_dequeue_style( 'datatables-css' );        wp_deregister_style( 'datatables-css' );  }, 100 );
       ```
   
 * If you’re not familiar with coding, you can use the [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   plugin, which removes the need to add custom snippets to your theme’s functions.
   php file.
 * As always, please test this first on a staging site before applying to your live
   site.
 * Let me know how it goes.
 *  Thread Starter [crowesnest](https://wordpress.org/support/users/crowesnest/)
 * (@crowesnest)
 * [5 days, 14 hours ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18930148)
 * That seems to have fixed it. Both plugins appear to be working correctly.
 * Thanks for the fix.
    -  This reply was modified 5 days, 14 hours ago by [crowesnest](https://wordpress.org/support/users/crowesnest/).

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

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

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [pagination](https://wordpress.org/support/topic-tag/pagination/)

 * 5 replies
 * 2 participants
 * Last reply from: [crowesnest](https://wordpress.org/support/users/crowesnest/)
 * Last activity: [5 days, 14 hours ago](https://wordpress.org/support/topic/javascript-conflict-with-tablepress/#post-18930148)
 * Status: resolved