• <span style=”background-color: rgb(251, 251, 251); font-family: Inter, sans-serif; white-space: normal;”>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.</span>

    “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.

     The Events Calendar works with no problems.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @crowesnest,

    Thanks for your post and sorry for the trouble!

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Best wishes,
    Tobias

    Thread Starter crowesnest

    (@crowesnest)

    Thanks for the quick response. Here is the link

    https://www.manitobaprairiequilters.ca/library/

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Thanks for the link, that helps a lot!

    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.

    Best wishes,
    Tobias

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

You must be logged in to reply to this topic.