Fix: Console Error: Uncaught Type Error: e Is Undefined

To solve this error, you will need to fix you table structure correctly. In my example below, I had a table with colspan and this simple does not work with datatables because each column is being iterated into an array with e as the index.

In the example below, remove the colspan="2" and add an additional <td></td>

    <table>
        <thead>
            <th>
                <td>1</td>
                <td>2</td>
                <tbody>
                    <tr>
                        <td colspan="2">2</td>
                    </tr>
                </tbody>
            </th>
        </thead>
    </table>

 

Hope that helps.