Support » Plugin: TablePress » DataTables JS library and mData error

  • Resolved arisgast

    (@arisgast)


    Hello,

    I use the Avada theme with the Tablepress plugin. I have a problem when I filtered a table and returns no results (correct).

    I have 3 tables and when any of those tables has no results an error appears in Chrome console and the menu of the theme doesn’t work.

    I have found a relevant ticket that you suggest to disable DataTables JS library but I need the filters and pagination. Is there any other solution for this issue?

    Thank you in advanced.

    Url : http://64.34.67.210/~svstats/%ce%b5%ce%b9%cf%81%ce%ae%ce%bd%ce%b7-%ce%b1/

    Error message : Uncaught TypeError: Cannot read property ‘mData’ of undefined

    Relevant ticket : https://wordpress.org/support/topic/strange-jquery-issue-some-jquery-functions-not-working-with-tablepress/

    Debug and Version Information
    Website: http://64.34.67.210/~svstats
    • TablePress: 1.8
    • TablePress (DB): 34
    • TablePress table scheme: 3
    • Plugin installed: 2017/03/06 22:41:49
    • WordPress: 4.7.3
    • Multisite: no
    • PHP: 5.6.27
    • mysqli Extension: true
    • mySQL (Server): 5.6.33
    • mySQL (Client): mysqlnd 5.0.11-dev – 20120503 – $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
    • ZIP support: yes
    • UTF-8 conversion: yes
    • WP Memory Limit: 40M
    • Server Memory Limit: 128M
    • Magic Quotes: off
    • WP_DEBUG: false
    • WP_POST_REVISIONS: true

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I just tried the search in the two tables on that page from your link, but don’t see any errors. Everything is working fine.
    How can I reproduce this error?

    Regards,
    Tobias

    Hello,

    The tables are 3! In the bottom of the page and before the related post is the last one without records (filtered table).

    Also i forgot to enable again the DataTables JS library.

    Regards,
    Aris

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Yes, there is a third table, but it only has one row, which is why the DataTables JS library is not active for it.

    It still don’t see any JavaScript errors, however.
    What are the exact steps to reproduce this? Can you maybe post a screenshot of the error that you are seeing?

    Regards,
    Tobias

    @tobiasbg Hi,
    We also have such problem – http://prntscr.com/fdwrcb

    Thanks to this error, the scripts below on the page do not work.

    Webpage: http://pruebas.casasdeapuestasweb.com/carcaj.html

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    @aberdov: In your case, the reason for the problem is the use of #colspan# to merge cells in the first row. This is not supported by the DataTables JS library.
    If you want to use DataTables with this table, you should move the heading “RETIRADAS” as a separate piece of text above the table, so that the (currently) second row becomes the table header row.

    Regards,
    Tobias

    Thank you. This solved the problem.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good 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 7 replies - 1 through 7 (of 7 total)
  • The topic ‘DataTables JS library and mData error’ is closed to new replies.