Requested unknown parameter '0' for row 0, column 0 - SOLVED
Requested unknown parameter '0' for row 0, column 0 - SOLVED
mountainclimber
Posts: 2Questions: 0Answers: 0
Just wanted to help anyone else who encounters this error.
1) The issue lies more than likely with the columns data section.
2) Either you did not define the columns data section or you did something wrong there.
3) In my case, I had improper case. I typed 'data' as uppercase instead of lowercase. It is case-sensitive.
$('#example').DataTable( {
data: data,
columns: [
{ data: 'name' },
{ data: 'position' },
{ data: 'salary' },
{ data: 'office' }
]
} );
So instead of 'data' as above, I had 'DATA'
Replies
Thank you for posting this. Hopefully others will find it helpful!
Allan