TypeError: b is null
TypeError: b is null
rosuandreimihai
Posts: 18Questions: 3Answers: 1
Hello,
I have a problem using jQuery DataTables. USing the same code for all my tables, does not work in a page, and it trough's the error: b is null. Any ideea on how to remediate?
Thank you,
Mihai
This discussion has been closed.
Answers
The line pointed is:
!a.sLoadingRecords && (c && 'Loading...' === b.sLoadingRecords) && D(a, a, 'sZeroRecords', 'sLoadingRecords');
And the debug: http://debug.datatables.net/atonoc
Can anyone give me a clue?
From the debug trace, the server hasn't responded with any data, which looks to be the issue. You might need to check your server error logs for more information as to why that is.
Allan
I have checked the server_side.php file by direct access and it fires the json encoded.. That was my first thought, that it is a issue with the serverside..
We'd need a link to the page to be able to offer any further assistance then I think.
Allan
Allan, you have en-lighted me :) The problem was indeed the server side. Actually, I am working with diacritics and json_encode doesn't
So, to fix it, each $row that has diacritics must be encoded with utf8_encode for being able to display in the table
Thank you again!