• Resolved mariusveltan

    (@mariusveltan)


    Hi and thanks for putting together this plugin! We’ve been using it for a long time and really enjoying its functionality!

    We’ve run across this issue in version 1.9.2 of the plugin, when using the plugin standalone, without any extensions.

    When activating pagination for a table and accessing the post containing the table, pagination does not activate and a Javascript error is thrown in the browser console. The error is at line 24 of /tablepress/js/jquery.datatables.min.js and it concerns accessing the property “_DT_CellIndex” on an undefined object “i”.

    As a workaround, we added a check right before that property is accessed, to ensure that the object “i” is always defined, when doing so.

    The issue might be in Datatables, though, since the same error was thrown if we replaced the functionality in the TablePress plugin with the Datatables Javascript code from their official website.

    Thanks once again! And keep up the good work!

    • This topic was modified 5 years, 1 month ago by mariusveltan.
Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    My guess here is that you are either using #colspan# or #rowspan# in a table, that there is invalid HTML code in one of the cells, or that you are using some sort of “Custom Command” on the table’s “Edit” screen?

    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!

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘JS error in jquery.datatables.min.js on activating pagination for a table’ is closed to new replies.