TablePress reinitialise error: Which plugin file do I need to alter?
-
Please help! I know some coding, but clearly not enough to figure out how/where to fix this. Every time I open a page with a table, I always get the error: “DataTables warning…cannot reinitialise DataTable.” I’ve tried several browsers and I always get the same error. I already understand this means the site is initialising the same DataTable twice, but that’s when I get stuck.
I’ve spent many hours researching how to fix this, but I can’t get a clear answer. I’m trying to create a searchable table for our club’s members.
The test page is https://redwoodwriters.org/datatable-test-pg/I have already found some solutions, but I don’t know which plugin file I should update to fix the following:
<script type=”text/javascript”>
jQuery(document).ready(function($){
$(‘#tablepress-1’).dataTable({“order”:[],”orderClasses”:false,”stripeClasses”:[‘even’,’odd’],”pagingType”:”simple”});
});
</script>
</body>
</html></div></div></div><script type=”text/javascript”>
jQuery(document).ready(function($){
$(‘#tablepress-1’).dataTable({“order”:[],”orderClasses”:false,”stripeClasses”:[‘even’,’odd’],”pagingType”:”simple”});
});
</script>~~~~~~~~~~~~~~~~
Again, I understand this means the site is initialising the same DataTable twice. Now, what?
Some of the solutions I have found include:
$(‘#example’).dataTable( {
paging: false
} );$(‘#example’).dataTable( {
searching: false
} );~~~~~~~~~~~~~~
$(‘#example’).dataTable( {
paging: false,
searching: false
} );
$(‘#example’).DataTable( {
destroy: true,
searching: false
} );
~~~~~~~~~~~~~~~destroy: true,
~~~~~~~~~~~~~PLEASE, please (yes, I’m getting desperate) answer this: *****Which solution is best to use, and in which plugin file do I make this edit to fix the problem and eliminate the error?****
Thanks for your help!!
- The topic ‘TablePress reinitialise error: Which plugin file do I need to alter?’ is closed to new replies.