• Resolved mtroxell

    (@mtroxell)


    I setup a staging directory because I had to change my website theme and I didn’t want to interrupt the current site. When I go to view https://monocacychurchofthebrethren.org/1651446974735/life-scriptures/ I am getting this warning:
    DataTables warning: table id=tablepress-10 – Cannot reinitialise DataTable. For more information about this error, please see https://datatables.net/tn/3

    I think if I add some javascript I could fix this problem but just don’t know the code I need to add. This only happens on my staging site. My production site is ok. How do I fix this?
    My name is Maxine. My email address is: [ email deleted, never post any email addresses ]

    • This topic was modified 2 years, 7 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I could not inspect this error on your site, as your staging environment seems to be password-protected.

    The cause for this error is that somehow the JavaScript code for the TablePress JS features is loaded twice on this page. Thus, adding some JavaScript code will not help, instead, we’ll have to make sure that the relevant code is only added once.
    Often, such errors happen because of a problem in the theme, in particular with PHP function calls like wp_footer(); being in the theme twice. Can you maybe check that? Also, can you please try again after temporarily deactivating all other plugins? That way, we can find what’s causing this.

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Maxine,

    please never post passwords in public forums! I’ll ask a moderator to remove them from your post.

    In addition, please change that password on the site, as well as anywhere else you might be using it.

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Maxine,

    as for the issue, it indeeds looks as if something on the side, outside of TablePress, is causing for the code to be added multiple times, by somehow calling the WordPress wp_print_footer_scripts function multiple times.
    Please test with all other plugins deactivated, as mentioned above.

    Regards,
    Tobias

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I can give you the login details for the staging site.

    @mtroxell If @tobiasbg took you up on that (and I am sure he did not) then he would be putting his plugin in jeopardy on this site. That is never allowed and it does not matter if it is a staging site or not.

    You don’t want to get another volunteer in trouble do you? Tobias is just another volunteer on this site like you and I.

    Please change that password NOW. For 50 minutes it has been out on the Internet and that’s very dangerous.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for removing the login credentials, Jan!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t reinitalize Data Table’ is closed to new replies.