WordPress.org

Ready to get started?Download WordPress

Forums

TheThe Tabs and Accordions
Tabs suddenly not working (34 posts)

  1. gnosis_wp
    Member
    Posted 1 year ago #

    Made no changes to any of my servers and the plugin stopped working today. Doe sit make calls to an external library where the server might be down or I might suddenly not have access to?

    http://library.gc.cuny.edu

    http://wordpress.org/extend/plugins/thethe-tabs-and-accordions/

  2. Damiaan van Vliet
    Member
    Posted 1 year ago #

    Sorry, no solution but I have exactly the same problem! Opening a accordion does not work anymore. Strange because the test sites from TheThe Tabs work.

  3. gnosis_wp
    Member
    Posted 1 year ago #

    What theme are you using?

    Switched to:

    http://kav.in/projects/blog/wp-ui-quick-start/

    None of these worked:
    http://wordpress.org/extend/plugins/put/
    http://wordpress.org/extend/plugins/thethe-tabs-and-accordions/
    http://wordpress.org/extend/plugins/jquery-ui-widgets/

    and they used to.

    My theory is that all the ones that we typically use point to a library on an external server which may not be available any longer (outage of blocked).

  4. Matt Lowe
    Member
    Posted 1 year ago #

    Looks like an incompatibility with the latest version of jQuery as pulled in through googleapis. The plugin pulls in the latest version automatically, add this to your theme's functions.php as a temporary workaround until the plugin is fixed:

    function thethe_fix() {
        wp_deregister_script('jquery');
        wp_enqueue_script("jquery", "//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", array('json2'), '1.8.3');
    }
    add_action( 'wp_print_scripts', 'thethe_fix', 20 );

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

    Note that this will fix your site onto version 1.8.3 of jQuery, which might not be a good thing long term.

  5. piotrek____
    Member
    Posted 1 year ago #

    Same here... Since yesterday my accordions and tabs don't work (while the toogles work fine). Your code hides the tabs and shows the whole content at once - was it suppose to do something more?

    Anyway: I (and not only me as I see) really need a fix for this plugin, pls, help! :(

  6. Matt Lowe
    Member
    Posted 1 year ago #

    Odd, sounds like for you it's deregistering jquery but not re-registering it. What's your site URL?

  7. Matt Lowe
    Member
    Posted 1 year ago #

    function thethe_fix() {
        $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https:" : "http:";
    
        wp_deregister_script('jquery');
        wp_enqueue_script("jquery", $protocol."//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", array('json2'), '1.8.3');
    }
    add_action( 'wp_print_scripts', 'thethe_fix', 20 );

    Ah, just tried my previous code block on WP 3.4.1 and it behaves as you suggested. This updated version should see you right.

  8. piotrek____
    Member
    Posted 1 year ago #

    It works! Thank you SO much! :) Should I delete this after a month or so and check if the plugin is fixed? And why actually if so?

  9. Matt Lowe
    Member
    Posted 1 year ago #

    Yes, don't leave this on your site indefinitely as it locks your site down to v1.8.3 of jQuery. If you just leave it on there then it will undoubtedly cause problems with other plugins somewhere in the future. A month sounds like a good period, or if you see an update for TheTheFly Tabs & Accordions then take this off.

    The issue, at a quick glance, appears to be either an incompatibility between the latest version of jQuery and the plugin, or perhaps between the latest version of jQuery and jQuery UI. Hopefully we'll see an update to the plugin, jQuery UI or jQuery itself in the near future and, when we do, this workaround will no longer be necessary.

  10. gnosis_wp
    Member
    Posted 1 year ago #

  11. Matt Lowe
    Member
    Posted 1 year ago #

    Post UI Tabs works in my lab. Checking the code it is pulling in version 1.8.3 (shipped with WP 3.5), same as my workaround above (except I pull it in from Google APIs).

    jQuery UI Widgets has a clear disclaimer on the plugin page:

    "Important! This Plugin requires WordPress 3.5 as it uses the jQuery UI 1.9 library shipped with this version of WordPress."

    So it is using the shipped version of jQuery UI, not the version on Google APIs. On installing I can verify it doesn't pull in jQuery from Google APIs. I've not tested it, but I would expect it to work.

  12. Damiaan van Vliet
    Member
    Posted 1 year ago #

    @Matt Lowe, you are my hero! Thanks a million times and greetings from the Netherlands. :)

  13. Chris
    Member
    Posted 1 year ago #

    The function thethe_fix() did the trick. Thanks a lot!

  14. alfonso_araujo
    Member
    Posted 1 year ago #

    @damnsharp: you made my day!!!, thanks my friend for your help from Mexico. ;-)

    @Matt Lowe: you are the one! thanks a lot!

  15. piotrek____
    Member
    Posted 1 year ago #

    Haha, the menu manager doesn't work now - to change the menu tabs order you have to delete the fix-code, reorder the menu and than paste the code back. :) So you were right (again), it's only a temporary solution. Has anyone written to Thethefly about this issue?

  16. Matt Lowe
    Member
    Posted 1 year ago #

    Hi piotrek, well spotted. This update will stop the temporary fix from interfering with the admin interface:

    function thethe_fix() {
        $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https:" : "http:";
    
        wp_deregister_script('jquery');
        wp_enqueue_script("jquery", $protocol."//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js", array('json2'), '1.8.3');
    }
    if (!is_admin()) add_action( 'wp_print_scripts', 'thethe_fix', 20 );

    There is a thread on their support forum regarding the issue, but I've not seen any official update from TheTheFly yet.

  17. gnosis_wp
    Member
    Posted 1 year ago #

    I assume, or hope that thethefly reads the forums attached to their plugins.

  18. maoski
    Member
    Posted 1 year ago #

    @Matt Lowe - thank you for the work around, works perfectly, cheers

  19. alfonso_araujo
    Member
    Posted 1 year ago #

    @Matt Lowe - thanks again, works perfectly, best regards

  20. piotrek____
    Member
    Posted 1 year ago #

    @ Matt Lowe - For me also, the last code you added works perfectly :)

  21. Lukalamalarahati
    Member
    Posted 1 year ago #

    @Matt Lowe - I've tried and succeeded, wish you a long life

  22. kinghamid
    Member
    Posted 1 year ago #

    My website Here stopped showing up the Thethe tab accordions and messed up the layout for the home page, india advantage and FAQ's. I am trying to figure out the concern but unable to get the answer for this....

    Let me know if there is another one which helps me fix this concern.

  23. Matt Lowe
    Member
    Posted 1 year ago #

    Hi kinghamid, did you try my fix above?

    TheThe Tabs has vanished from the plugins directory which would suggest that TheThe Fly have no intention of making any updates to it. I've written about the issue, you can read about it on my WordPress web design blog.

  24. Matt Lowe
    Member
    Posted 1 year ago #

    Hi guys, just wanted to update you all as I've created an alternative plugin that is designed to be compatible with the shortcodes used by TheThe Tabs and Accordions. It supports tabs, accordions and horizontal accordions. It doesn't support toggles yet but that is planned. It should be as easy as disabling TheThe Tabs and Accordions and installing Squelch Tabs and Accordions Shortcodes. Don't forget to remove my thethe_fix() from your functions.php too (or you'll get a warning telling you to remove it)!

    You can get the plugin from the plugin repository (search for "squelch" and you'll see it) or you can get it from the plugin page on wordpress.org: http://wordpress.org/extend/plugins/squelch-tabs-and-accordions-shortcodes/

    If you have any problems using the plugin then please leave a comment in the forum and I'll get back to you asap. I'd appreciate it if you could give it a try and see how you get on.

  25. gnosis_wp
    Member
    Posted 1 year ago #

    Hi Matt Lowe,

    Question:

    Does your new plugin point to an external [jquery] library or is the code self-contained?

  26. Matt Lowe
    Member
    Posted 1 year ago #

    Hi gnosis. The plugin pulls in jQuery and jQuery UI from WordPress itself. It pulls in the theme for jQuery UI from Google APIs as WordPress does not ship with a jQuery UI theme.

    It's worth noting that I've not had time to test this on any version of WordPress prior to 3.5 yet; It's possible that it won't work on older versions due to the version of jQuery shipped with those versions of WordPress.

    If anyone fancies trying that out and letting me know how they get on then that would be a great help.

  27. gnosis_wp
    Member
    Posted 1 year ago #

    @ML Since it points to the Google API, your code is vulnerable similar to the way the previous plugin stopped working. Why not include in codebase?

  28. Matt Lowe
    Member
    Posted 1 year ago #

    Oh I see. My code pulls only the theme in from Google, not the code, plus each version of my plugin is hardwired to pull in a specific version of the theme as opposed to TheThe's plugin, which just asked Google for the latest version each time. I'll only be rolling the version in the plugin forwards once the new themes have been tested with the plugin and shown to work.

  29. gnosis_wp
    Member
    Posted 1 year ago #

    The theme?

  30. gnosis_wp
    Member
    Posted 1 year ago #

    @ML also how to modify the CSS of the tabs?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic