Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
field_group.js, line 48:
wrapper.accordion({
is not a function
Comment | File | Size | Author |
---|---|---|---|
#10 | field_group-accordion-1473792-10.patch | 508 bytes | yannickoo |
#8 | 1473792-5.patch | 775 bytes | jghyde |
#5 | 1473792-5.patch | 779 bytes | jghyde |
Comments
Comment #1
nils.destoop CreditAttribution: nils.destoop commentedbrowser and group setup?
Comment #2
codecouleurs CreditAttribution: codecouleurs commentedI have the same bug, the group title is not displayed and there is an error : wrapper.accordion is not a function
- there is no differences between browsers (Firefox, IE, Safari)
- no particular setup, I put "no effect" but nothing changes when I choose the other effect
thanks
Comment #3
nils.destoop CreditAttribution: nils.destoop commentedCan you maybe provide an url where i can check this? I think the accordion jquery file is not loaded for some reason.
Comment #4
jghyde CreditAttribution: jghyde commentedAs a user, when viewing a node page with field_group's accordion feature, the accordions do not work and I receive the following error on the javascript debug console:
TypeError: wrapper.accordion is not a function
It points to line 48 of field_group.js
To check to see if the problem was that the ui.accordion library was not added, I added the following to a preprocess func in template.php:
At that point, the accordion began working.
Comment #5
jghyde CreditAttribution: jghyde commentedThis patch fixes it. I initially tried to #attached the library, but didn't. This is just a brute force drupal_add_library() call and it works. Applied against 7.x-1.1.
Comment #6
jghyde CreditAttribution: jghyde commentedComment #7
yannickooWhitespaces
Whitespaces again
Comment #8
jghyde CreditAttribution: jghyde commentedhere is the space-less version
Comment #9
yannickooSorry but every line comment should end with a ./?/!
Comment #10
yannickoo#9 you didn't clone the Git repository from drupal.org so the path to field_group.module is wrong. Created a new version.
Comment #11
Bernsch CreditAttribution: Bernsch commentedI use the version 7.x-1.x-dev from 2013-May-16 and the patch from #10 works finde!
Thanks yannickoo!
Comment #12
nils.destoop CreditAttribution: nils.destoop commentedPushed to dev. Thx for the patch