TypeError: b is null

TypeError: b is null

rosuandreimihairosuandreimihai 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

Answers

  • rosuandreimihairosuandreimihai Posts: 18Questions: 3Answers: 1

    The line pointed is:
    !a.sLoadingRecords && (c && 'Loading...' === b.sLoadingRecords) && D(a, a, 'sZeroRecords', 'sLoadingRecords');

  • rosuandreimihairosuandreimihai Posts: 18Questions: 3Answers: 1
  • rosuandreimihairosuandreimihai Posts: 18Questions: 3Answers: 1

    Can anyone give me a clue?

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    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

  • rosuandreimihairosuandreimihai Posts: 18Questions: 3Answers: 1

    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..

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin

    We'd need a link to the page to be able to offer any further assistance then I think.

    Allan

  • rosuandreimihairosuandreimihai Posts: 18Questions: 3Answers: 1

    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!

This discussion has been closed.