WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Search fields and pagination not displayed (Javascript issue?)

[Resolved] Search fields and pagination not displayed (Javascript issue?)

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Plugin Author TobiasBg

    @tobiasbg

    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/

    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.

    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.

    Plugin Author TobiasBg

    @tobiasbg

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Search fields and pagination not displayed (Javascript issue?)’ is closed to new replies.