Hi,
the Views-Accordion only works in the preview of the Views UI.
I can't find the error.
I had tested bartik and seven theme. on site is allways the same.
Have you an idea?

Thank's

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lheidbrink’s picture

Hey,

I have the same problem, works well in the preview but not on the live side. Tried already some other block regions, no effect. I am using the TB_Purity with Nucleus as Base Theme.

Update: Fixed it! Double injection of Jquery into the side. Messed up everything, now it works fine!

mmtahir’s picture

Same here, I am using 0 point theme. Works in preview only. The issue remains in the dev version too.

Federman79’s picture

Priority: Normal » Major

The views accordion itself works but not in panels.
I tested the same view in a menu and on a panel, it works on the menu but not on the panel.
I wonder if there is a solution to this, or maybe something else to do to see views in panels
Please can someone help?

dalearyous’s picture

i am having same issue.

#1 how did you fix yours?

*edit*
firebug shows me this:
TypeError: $(displaySelector + ":not(.ui-accordion)").accordion is not a function
[Break On This Error]

clearstyle: this.clearstyle

ivz’s picture

Hi,

Does anyone solved this issue? I encountered the same problem too in our website.

Thank you.

jaesperanza’s picture

Issue summary: View changes

Still an issue for some themes, posting in case it will help anyone.

In most cases this is due to conflicts with other jQuery scripts being used by the themes, or in some cases other modules. To troubleshoot:

  1. Use web developer toolbar browser extension (Use Firefox or Chrome for this)
  2. Navigate to page where accordion is placed
  3. Information > View Javascript - this shows a list of all JS installed and location used on the site and page
  4. Try temporarily renaming JS files until you identify which one/s are conflicting with accordion JS
  5. Address issue as needed (updating versions, safely disabling unnecessary ones, etc.)

Hope this helps!

jsimonis’s picture

Also check the ownership of the files for the module. I frequently log in as the main user for our server, as then I can work across multiple sites without having to log in and out. But this means that all files uploaded "belong" to that user. So I have to be sure to change the user/group for those files. It used to not be an issue, but with newer server software, it throws out lots of errors and things won't work/load properly.

justinmello32’s picture

Although this issue is related to Drupal 8, the same thing still applies, I had conflicting jquery.min.js files. One of my .js files was being called in core while another was being called from a contrib theme. Just something to keep in mind when having an issue with .js files.

dennismathenge’s picture

I found the problem to be in the module's javascript file. I have created the attached patch that fixed everything for me.