• Resolved okso

    (@okso)


    Hi, I get “DataTables warning: Cannot reinitialise DataTable”, when loading Tablepress in a framework using knockout.js I’ve checked source and tablepress script is loaded twice. The plugin uses knockout for binding data. Any leads would be appreciated. From the content template…

    global $pl_static_template_output;

    $binding = “plclassname: [ (tplwrap() == ‘wrapped’) ? ‘pl-content-area pl-content-layout’ : ” ]”;

    printf( ‘<div class=”pl-page-content” data-bind=”%s”>%s</div>’, $binding, $pl_static_template_output );

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This indicates that the wp_footer(); function is called twice in your theme or something like that.
    I can’t spot anything wrong in that particular piece of code that you posted.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter okso

    (@okso)

    Hi Tobias, thanks for your quick follow up.
    I’ve made sure everything works ok in 2015, which it does, and then loaded the platform plug (no theme change), which breaks tablepress.
    and to the plug: https://wordpress.org/plugins/pl-platform/
    Many thanks.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link! As I had thought, the JS code is in the page twice. This indicates that this other plugin is somehow modifying how JS is loaded into the page.
    I’m afraid that there’s nothing that I can do about this in TablePress.

    Regards,
    Tobias

    Thread Starter okso

    (@okso)

    thanks for looking, I’ll let you know when I find the fix

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, please let me know when you find something!

    Regards,
    Tobias

    Thread Starter okso

    (@okso)

    Hi Tobias,
    Thanks for your support, just to let you know Pagelines Platform 5 plugin is now compatible with TablePress.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    awesome! That’s great to hear! Thanks for the update!

    Best wishes,
    Tobias

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

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

The topic ‘Cannot reinitialise datatable’ is closed to new replies.