• Resolved Auk

    (@auk)


    Hi, Tobias,

    Fantastic plugin. Thank you so much for creating it.

    I’ve used this for the first time on a client website, which I am handing over to them to manage and it’s proved invaluable. They are now starting to their own content, including tables, but have come up with an issue on some of the new tables they are creating.

    The error message reads:
    DataTables warning (table id = ‘tablepress-TableName’): Cannot reinitialise DataTable.

    To retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy

    The tables appear to be displaying correctly.

    I’ve searched the forums for similar issues but haven’t found anything that quite matches the problem.

    The page with the tables in question is here. http://wordpress.gigl.org.uk/giglpolicy/accessing-data-policy/

    Any ideas?

    http://wordpress.org/extend/plugins/tablepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The reason for this is a bug in your theme. In the file “footer.php” you’ll likely see two instances of a line like

    wp_footer();

    There should however only be one of those, directly before the closing </body> HTML tag.

    Regards,
    Tobias

    Thread Starter Auk

    (@auk)

    Hi, Tobias,

    All my footers, including that in use on the page in question have only one instance of
    wp_footer();.

    Can you see something in my theme that I haven’t, or is this just what usually causes this problem?

    If it makes any difference, I’ve also had this problem occur on a page (now defunct) with multiple tables, but only one error message.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m very sure that something is duplicated, and if it is not the call wp_footer(), it’s the inclusion of the footer file itself, probably with something like get_template_part( 'footer' );.
    I’m pretty sure that this is the case, because I can see the footer HTML twice on the page in question, if I click “View Source” in the browser.

    Regards,
    Tobias

    Thread Starter Auk

    (@auk)

    Aah, I see what you mean now. How odd. I need to figure out where that has come from.
    I can see the extra footer is also pushing the placement of the “real” footer.

    I just have to track down where that’s coming from …

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that you can confirm this!
    Maybe you can ask the theme developer for help, if you can’t find it?

    Regards,
    Tobias

    Thread Starter Auk

    (@auk)

    That would be me!

    I’ve tracked down the problem. My custom post types were picking up the default footer in addition to their own personal footers. So working through that has tidied up another item on my snagging list in addition to the TablePress problem.

    Thank you so much for your time on this. I really appreciate it. I shall certainly suggest to my client that they may like to show their appreciation. 🙂

    You’re a genius. And a very patient one.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    great 🙂 Very nice find! Always glad when I can help!
    And thanks for that suggestion to your client! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter Auk

    (@auk)

    I certainly will do.
    Thank you again.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it!

    Best wishes,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Error message pop up’ is closed to new replies.