That Pesky Reinitialise Error
That Pesky Reinitialise Error

Hello!
I am getting that "DataTables warning: table id=table_1 - Cannot reinitialise DataTable."
https://lakeeriefallbrawl.com/fb2025/roster/
I've tried several of the snippets here in an attempt to remedy this issue, but have not been successful.
Just to be clear, I am inserting these various code snippets into the "wpDatatables > Settings" section. Is this correct, or am I part of the problem?
The error appears when the table is fully rendered.
Alternately - and I understand this is by no means a solution - would it be possible to change the error message to something like "Thanks for your patience. The official roster is loaded. You can search by your first or last name".
Thanks in advance,
EZ Fall Brawl
Answers
It means you are initialisating DataTables multiple times.
One is in
fishing-tournament.js
:The other, as you indicate will be in wpDataTables. If you are using wpDataTables, you don't need to initialise a DataTable yourself. Use its configuration options in its UI to control the features of the DataTable.
If you aren't sure how to do that (I'm not!), get in touch with their support. wpDataTables is a third party project.
Allan
Thanks for your quick response, Allan. I'll open a topic with them on WP.
In the meantime (while I'm learning how to fix), is that error text generated via a local file that I can edit to display a different message?
Appreciate your assistance.
To stop the error from showing up you could add
retrieve: true
to your initialisation options. But that will cause the configuration in the options there to be ignored. You'd be as well just removing that custom initialisation and using whatever mechanism wpDataTables uses to set the options.Allan