Forums

[resolved] [Plugin: WP-Table Reloaded] DataTables warning ? (2 posts)

  1. Ksoiland
    Member
    Posted 1 year ago #

    I'm getting this massage after upgrading?

    "DataTables warning: Unexpected number of TD elements. Expected 4 and got 20. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.

    To table:
    http://www.kimchi.no/restauranter/

    WP versjon:
    2.9.2

    WP-Table Reloaded versjon:
    1.7

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    this seems to be a limitation in the DataTables library.
    See http://datatables.net/forums/comments.php?DiscussionID=1283

    Starting with DataTables 1.6.1 (which is now included in WP-Table Reloaded 1.7), that message is shown if you are using colspan in a table which want the sorting feature enabled on.
    Actually you should have had trouble before, just not with a warning message.

    You can either remove the colspan, try one of the other JavaScript libraries that are included (Tablesorter or Tablesorter Extended) or downgrade to an older DataTables version (which doesn't show the message, and might still not work). However, you should not downgrade WP-Table Reloaded, but just the DataTables library then.
    The easiest way for this would be to take the JavaScript file, put into the theme folder and use a WP-Table Reloaded Extension to change the URL of the file.

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Topic