WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Search fields and pagination not displayed (Javascript issue?) (6 posts)

  1. djacobson
    Member
    Posted 1 year ago #

    I have not been able to determine what has caused my search fields and pagination buttons to disappear on all of my tables. It might have been due to deactivating / reactivating W3-Total-Cache? Regardless, I have:

    * DataTables enabled
    * Site URL and WordPress URL match

    My web site:
    http://www.hillcountrytrailrunners.com

    Your assistance greatly appreciated,

    David Jacobson

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. djacobson
    Member
    Posted 1 year ago #

    Also,

    * lang-en_US\.txt in the "Never cache the following pages:" Page Cache section of W3-Total-Cache, but, I have also completely deactivated W3-Total-Cache as well with no success.

  3. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    This is one of the more tricky things.
    The reason for this is a JavaScript problem, but nobody is to blame really. What happens is this:
    The main JS file of your theme wants to initialize the Fancybox Gallery JS script. This Fancybox scripts, in one line of its code, needs to find out what browser the viewer is using. For that, it uses the jQuery JS library. Your site is configured so that it will always load the latest version of jQuery library from the Google CDN network. And just a few days ago, jQuery was released in version 1.9, which (on purpose) drops support for the functionality to determine what browser the viewer is using.
    So, because of that, the Fancybox script fails, and that causes the theme's JS code to fail. And that again stops all JS on the page, so that the sorting/search/pagination JS for tables also is not executed.

    The mid-term solution is that the Fancybox plugin will need to update its JS code, so that it is compatible with jQuery 1.9. The short-term solution is to not load the latest version of jQuery from the Google CDN, but to use the version 1.8.3 that ships with WordPress. (This is probably done by your theme or another plugin that you have installed for this purpose.)

    Regards,
    Tobias

    P.S.: By the way: WP-Table Reloaded has been replaced by a much better and official successor: TablePress. No immediate action is necessary (and this will not directly help with your issue), but I recommend that you switch in the next couple of months. For more information, please see http://tobias.baethge.com/2013/01/tablepress-replaces-wp-table-reloaded/

  4. djacobson
    Member
    Posted 1 year ago #

    Thank you Tobias! I am working on finding out where to mod that in my theme ("seventeen"), and will report back here asap.

    BTW, tablepress looks awesome and is the main reason I am working to upgrade this WordPress site this coming month. :)

    David.

  5. djacobson
    Member
    Posted 1 year ago #

    Fixed it! ...this tip helped:

    http://digwp.com/2009/06/use-google-hosted-javascript-libraries-still-the-right-way/

    Thank you for putting me on the right track Tobias!

    David.

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi David,

    great to see that you found a solution! :-)
    I'd recommend one more change: Instead of loading the old version 1.7.1, please load 1.8.3. Otherwise, you will run into trouble sooner or later.
    Just change that version number in the code that you found on that page that you linked to.

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic