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

  1. nickblevins
    Posted 2 years 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.


  2. shazahm1
    Plugin Author

    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic