Cannot read property 'nTable' of null

Cannot read property 'nTable' of null

exylianexylian Posts: 5Questions: 2Answers: 0

Hello Community,

I recently set up my first try with datatables.

When I test my Site I'll get a few errors in my console.... Anyone got an idea how to solve them?

Uncaught TypeError: Cannot read property 'nTable' of null
w @ jquery.dataTables.min.js:73
I @ jquery.dataTables.min.js:71
(anonymous function) @ jquery.dataTables.min.js:83
jQuery.extend.each @ jquery-1.11.2.js:384
jQuery.fn.jQuery.each @ jquery-1.11.2.js:136
m @ jquery.dataTables.min.js:83
h.fn.DataTable @ jquery.dataTables.min.js:159
(anonymous function) @ datatable.php:154
jQuery.Callbacks.fire @ jquery-1.11.2.js:3143
jQuery.Callbacks.self.fireWith @ jquery-1.11.2.js:3255
jQuery.extend.ready @ jquery-1.11.2.js:3467
completed @ jquery-1.11.2.js:3498

You can find my code right here
https://ghostbin.com/paste/c2y99

Answers

  • exylianexylian Posts: 5Questions: 2Answers: 0
    edited June 2015

    FYI: The Scripts are loaded in the header section. via including the header.php
    It doesn't change anything when i put the directly into the page.

    The following scripts are loaded:

    <script type="text/javascript" charset="utf-8" src="/assets/js/jquery.js"></script>
    <script type="text/javascript" charset="utf-8" src="/assets/js/jquery.dataTables.js"></script>
    <script type="text/javascript" charset="utf-8" src="/assets/js/dataTables.tableTools.js"></script>
    <script type="text/javascript" charset="utf-8" src="/assets/js/dataTables.editor.js"></script>
    

    EDIT:

    Versions:
    jQuery v1.11.3
    DataTables 1.10.7
    TableTools 2.2.4
    dataTables.editor 1.4.2

This discussion has been closed.