WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[resolved] jQuery accordion error - can't expand or show details (2 posts)

  1. nickblevins
    Member
    Posted 11 months ago #

    The page is http://www.themdas.org/churches/

    Plugin worked fine for my client for a while, but now the accordion feature isn't working and throws this error:

    Uncaught TypeError: Object [object Object] has no method 'accordion'

    I'm guessing it happened when they upgraded to 3.6, but can't say for sure it's the only change they made.

    http://wordpress.org/plugins/connections/

  2. shazahm1
    Member
    Plugin Author

    Posted 11 months ago #

    @ nickblevins

    The error is being caused by the theme. My guess is it stopped working when the site was upgraded to 3.6. Why? WP 3.6 registers its own jquery-ui-accordion script and I'm certain the theme is registering its own using the same exact handle. Since WP loads first its script is registered first and prevents the theme's from registering therefor WP will load the script that is bundled with WP instead of the script theme expects which in turn is causing the script fatal error.

    The solution is likely to search the theme files for a line of code that starts with either wp_register_script( 'jquery-ui-accordion' or wp_enqueue_script( 'jquery-ui-accordion' and change jquery-ui-accordion to something that is more unique to the theme.

    I hope that helps!

Reply

You must log in to post.

About this Plugin

About this Topic