WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] datatables issue conflict? (6 posts)

  1. nikkel
    Member
    Posted 1 year ago #

    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/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. nikkel
    Member
    Posted 1 year ago #

    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.

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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

  5. nikkel
    Member
    Posted 1 year ago #

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

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic