• Resolved Tamenori

    (@tamenori)


    Hello Tobias,
    First of all, thank you for your plugin, I have used it for a long time and am very satisfied with it.
    I just switched from WP-Table Reloaded to TablePress, following the guide page. Everything is ok (including my CSS settings) but the DataTables functions don’t work anymore. For instance, I set the option to display only 10 rows, but TablePress displays all the rows. Also, the sorting option does not work (even if I don’t need this option).
    Any idea to help me to fix this ?
    Here is the URL of my tables page : http://www.frank-poupart.org/blog/?page_id=2940
    Regards,
    Tamenori

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    My assumption here is, that this is caused by your theme. From what I can see, your theme is loading its own copy of the jQuery library, and instead of using the up-to-date version 1.8.3 that ships with WordPress, it is bringing 1.2.6 with it!
    This likely causes the JavaScript code of the DataTables library to fail.

    To quickly verify this assumption, please switch to the WordPress default theme TwentyTwelve, temporarily, and check if the DataTables functions work then.
    If that is the case, you should get your theme updated, either by contacting its developer, or by simply removing the code that adds that custom version of jQuery.

    Regards,
    Tobias

    Thread Starter Tamenori

    (@tamenori)

    You were right Tobias, it was due to the theme.
    The theme I’m using is no longer supported by its developer, but I managed to fix this issue by replacing the jquery file of the theme by a newer version. Everything is ok now.
    Thank you again for your help.
    Tamenori

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    great to hear that this solved it! (And sorry to hear, that your theme is no longer supported 🙁 )

    Instead of replacing the JS file, a better (and more future-proof) fix would be to open the theme’s “header.php” file and to remove the lines

    <script type="text/javascript" src="http://www.frank-poupart.org/blog/wp-content/themes/mandigo/js/jquery.js"></script>

    and

    <script type="text/javascript">jQuery.noConflict();</script>

    (Instead of the URL of your site, the first line might contains something like site_url().)

    Without this, you would have to replace the JS file with the latest version from WP after every WordPress update. And this would actually load the jQuery library twice for each user, which makes the site slower.

    Best wishes,
    Tobias

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

    Thread Starter Tamenori

    (@tamenori)

    Even better 😀
    You deserve 5 stars !

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    great 🙂 Thanks a lot, I really appreciate it!

    Best wishes,
    Tobias

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

The topic ‘DataTables functions don't work anymore (migration issue)’ is closed to new replies.