Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #372618

    Hi,

    I have created a page with all the Teams of our Baseball Club: http://neue-wordpress-homepage.de/teams/

    Behind every Picture is a link to the Team. When I click on a link, I get an error message:
    DateTable warning (table id = ‘DataTables_Table_0’): Cannot reinitialise DataTable. To retreive….
    In the Background I run a plugin calles “sportspress” in order to organize the Players / Teams / games etc.

    Any Idea what I could do to get rid of the error message?

    Thanks

    Alexander

    #372623

    Hey Cevik_Kuersad!

    Does error go away when you deactivate “sportspress” plugin? It seems like “DataTables_Table_0” is attempting to be initialised twice

    Regards,
    Yigit

    #372646

    Hi Yigit,

    I did deactivate and the message disappeared. I just activated the plugin again and the error message came up again.

    I found this http://stackoverflow.com/questions/13708781/datatables-warningtable-id-example-cannot-reinitialise-data-table which seems like a solution but I have no clue how to implement this.
    Maybe it’s an error of the W3 cach plugin. The error message does not Show up when I’m logged in (page will not be cached in this case).

    Thanks

    Alexander

    #372649

    Hi!

    Please try adding following code to Functions.php file in Appearance > Editor

    function add_custom_data(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery("#DataTables_Table_0").dataTable().fnDestroy();
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_data');

    If that does not work, please try contacting plugin author, they should have better insight on the issue and what could be causing it.
    Regards,
    Yigit

    #372943

    Hi Yigit,

    unfortunately, this only produces an error message so I had to delete it from the functions.php again.

    Anyway, thank you.

    Take care

    Alexander

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Errom Message "DataTables warning…"’ is closed to new replies.