DataTables warning (table id = 'the_table'): Requested unknown parameter '22' from the data source f

DataTables warning (table id = 'the_table'): Requested unknown parameter '22' from the data source f

umenumen Posts: 1Questions: 0Answers: 0
edited November 2011 in General
Hi
im new to DataTables , its great script
but i have problem , i follow this tutorial :
[url]http://datatables.net/examples/data_sources/server_side.html[/url]
or this one:
[url]http://www.packtpub.com/article/data-tables-datatables-plugin-jquery-1.3-with-php[/url]
and i keep getting this error:
[code]DataTables warning (table id = 'the_table'): Requested unknown parameter '22' from the data source for row 0[/code]
when i click on sort and when the tables load first time .
i have row with 21 columns , only 4 rows in the table.
how can i debug it to find out what is wrong ?


Thanks

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    The error suggests that your header has 22 columns in it, but the body only has 21. DataTables has detected that there are 22 columns in the table, but can't read column 22 from the table body.

    If that doesn't help you, can you post a link to your example please.

    Allan
This discussion has been closed.