Hi,
thanks for your post, and sorry for the trouble.
The most common cause for this is invalid HTML code for e.g. links in the table, for example caused by missing quotation marks. Other possibilities are plugins like the ezoic automatic ads inserter, which adds combined/merged cells to the table, which are not compatible with the frontend feature for site visitors.
Now, unfortunately, your link only asks for a login, so that the table can be viewed. Can you maybe temporarily turn that? I’ll then be able to find out what exactly is causing the problem.
Regards,
Tobias
Hi @tobiasbg, was there any resolution here? I have the same issues with my tables. I have HTML links and Ezoic, so not sure where to turn first. Thanks!
Hi,
I didn’t get a reply from llregimbald, so I’m not sure what helped for that site.
In your case, my guess would be ezoic. It has an ad auto integration, which insert merged/combined cells (using colspan) into tables, and this breaks the JavaScript features and leads to that message.
If you post a link to the page with your table, I can check if that’s the case here.
Regards,
Tobias
I had this problem as well. So I thought I would pass on my solution. It seems like the latest update to something caused the guidelines for DataTables to change. Before the update, my table didn’t have column headers, which worked fine. To resolve the error, I added a Thead element to the tables HTML, and added two tw elements. Essentially, the table ID was looking for two columns, which is the correct number of columns. All I needed to fix the error was to specify a table header, before the table body, and a single table row with two table column names. The website that the error provides actually helped significantly.
<table id="AutoNumber2">
<thead>
<tr>
<th>Region</th>
<th>Distributor</th>
</tr>
</thead>
<tbody>
-
This reply was modified 2 years, 6 months ago by
gfuller.
Hi gfuller,
thanks for your input here! DataTables has always required a <thead> element, so adding it in your custom HTML code for the table is correct 🙂
Said that, the other posts in this thread refer to the TablePress plugin, which actually will allow you to create tables without having to write HTML code for a table yourself 🙂
Best wishes,
Tobias