Support » Plugin: TablePress » datatables issue conflict?

  • Resolved nikkel

    (@nikkel)


    i’m using wp-google-maps-pro and tablepress — my table displays just fine, but my maps only display if i DISABLE the tablepress plugin. i get a jquery console error: “Uncaught TypeError: Cannot read property ‘className’ of undefined” in jquery.datatables.min.js:27
    could it be that both plugins are using jquery.datatables.js and there is a conflict? can you suggest a workaround?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This could indicate that there’s some small HTML code syntax error in the table.
    Or are you maybe using connected cells in this table (via colspan/rowspan)?

    If you post the link to the page with the table, I’ll gladly take a direct look!

    Regards,
    Tobias

    okay. it seems i have to choose between using tablepress OR using wp-google-maps. here’s my page:

    http://roadtrips.koopthereitis.ca/monaco-formula-1/

    there is a ‘map’ tab and a ‘rates’ tab — when i activate your plugin my maps stop working (i’m inserting the map on the first tab [‘overview’] and on the ‘maps’ tab). but the table works! when i deactivate tablepress the map shows up. check the console log and that’s where i see the error.

    thanks for your quick response.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link! That helps a lot!

    The problem comes from the fact that you are using combined cells in the first column of the table. This unfortunately means that you can not use the advanced functions like sorting, search, pagination that the DataTables JS library in tables offers.
    So, to fix your problem, just uncheck the “Use DataTables” checkbox on the “Edit” screen of the table. After that, the table and the maps should work.

    Regards,
    Tobias

    wow! you are amazing! fixed it just like that. i only wish you could do the same for my map plugin! danke schön!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem! You are very welcome! 🙂
    Great to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘datatables issue conflict?’ is closed to new replies.