• Resolved joystick31

    (@joystick31)


    Hello, i have use your module for show a table with next event who will coming.
    I hide the row when the date is past.
    But when all the date are past i have an error.
    That say :

    Uncaught TypeError: Cannot read property 'mData' of undefined
        at HTMLTableCellElement.<anonymous> (jquery.datatables.min.js?ver=1.9.2:90)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at HTMLTableElement.<anonymous> (jquery.datatables.min.js?ver=1.9.2:90)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at a.fn.init.n [as dataTable] (jquery.datatables.min.js?ver=1.9.2:83)
        at HTMLDocument.<anonymous> ((index):1362)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)

    Do you have an idea ?
    I have this short code to show the event :

    [table id=1 filter_date=future filter_date_columns=3 hide_columns=3 /]

    EDIT : i have temporaly solved my problem by adding a new row with no content because this error broken all my website

    • This topic was modified 6 years, 10 months ago by joystick31.
Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is that the table is empty then, but the DataTables JS library is still being loaded. However, that requires for the table to at least have one header and one body row.

    Unfortunately, I’m not aware of a way around this though 🙁 You will have to make sure that there always is a row in the table (which can be empty).

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Error when filters row sort nothing’ is closed to new replies.