TobiasBg on "[Plugin: TablePress] Cannot reinitialise datatable"

ساخت وبلاگ

Hi, I get "DataTables waing: 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/

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

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.

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

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

Hi,

yes, please let me know when you find something!

Regards,
Tobias

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 157 تاريخ : سه شنبه 7 ارديبهشت 1395 ساعت: 16:21