Exception in dataTables.responsive.js

Exception in dataTables.responsive.js

johndoojohndoo Posts: 18Questions: 5Answers: 1

Error messages shown:
Uncaught TypeError: store[0] is undefined
_childNodesRestore https://cdn.datatables.net/responsive/2.2.7/js/dataTables.responsive.js:1219
_resizeAuto https://cdn.datatables.net/responsive/2.2.7/js/dataTables.responsive.js:892
each jQuery
_resizeAuto https://cdn.datatables.net/responsive/2.2.7/js/dataTables.responsive.js:889
_constructor https://cdn.datatables.net/responsive/2.2.7/js/dataTables.responsive.js:262
jQuery 27
E https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap4.min.js:13
jQuery 10
y https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap4.min.js:14
y https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap4.min.js:13
bootstrap https://cdn.datatables.net/1.10.23/js/dataTables.bootstrap4.min.js:14
jQuery 32

dataTables.responsive.js:1219:15

Description of problem:
This problem occurs randomly when the datatable needs to reload data (example by using pagination).
I cannot create a test case because it can work for many clicks and then suddenly the exception occurs.

First I thought this was due to a complex page with 2 datatables, one on the page and another inside a bootsrap modal dialog, but today this occured on a "simple" page (only one datatable on the page). I use server side processing if this can help to diagnose.

Answers

  • johndoojohndoo Posts: 18Questions: 5Answers: 1

    After having replaced the responsive: { details: { renderer:xxx } } datatable parameter with just "responsive: true" , so far the problem seems solved

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Odd, we're not seeing in our example here which also uses a custom renderer, so it may be specific to the server-side processing you're using.

    I've raised it internally (DD-1813 for my reference) to see if we can glean anything from the stack trace, and we'll report back here when there's an update.

    Cheers,

    Colin

  • johndoojohndoo Posts: 18Questions: 5Answers: 1

    Thanks colin !

    So far I can confirm that with responsive:true it works (no exception after hours of testing).

This discussion has been closed.