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.
The fieldset links on any node/*/edit page are broken (no links shown) and I get the following js error:
Uncaught TypeError: Cannot read property 'transition' of undefined [url]/sites/all/modules/features/colorbox/js/colorbox_inline.js?p:17
I uninstalled colorbox (using modules/uninstall) and installed it again, but still the same problem.
Comment | File | Size | Author |
---|---|---|---|
#8 | colorbox_active_ 813990_8.patch | 910 bytes | frjo |
#7 | Screen shot 2010-06-01 at 8.54.02 AM.png | 14.46 KB | jisuo |
Comments
Comment #1
jisuo CreditAttribution: jisuo commentedCorrection: it only breaks the fieldset links on my "node/photos/edit" page, the only page with colorbox activated.
Comment #2
frjo CreditAttribution: frjo commentedThe file colorbox_inline.js is loaded in colorbox_handler_field_colorbox.inc and should only load when on a view with a Colorbox trigger.
Do you have some Views that displays on the node edit pages?
Comment #3
jisuo CreditAttribution: jisuo commentedYes, I believe there are some views on the node edit pages:
I also use a view with colorbox trigger on my "photos" page.
edit: only the view that displays my image nodes on the photos-page use colorbox trigger.
Comment #4
frjo CreditAttribution: frjo commentedAre you using something like Views attach or Views field to include a View with a Colorbox trigger field in the node itself?
Trying to figure out when this happens so I can come up with a decent solution.
Comment #5
jisuo CreditAttribution: jisuo commentedYes, a view field on my gallery content type. That view has the colorbox trigger. Then in my node-gallery.tpl.php I do
print $node->field_gallery[0]["view"];
Comment #6
frjo CreditAttribution: frjo commentedBut on the node type "photos", where you experience this bug, you don't have any views stuff attached?
Comment #7
jisuo CreditAttribution: jisuo commentedOk, summary:
- My page "photos" is of Gallery node type.
- It has a View field which includes a view also called Gallery which has a colorbox trigger.
- The view displays nodes of type Image (created by the Image module).
The "photos" page works fine in "view"-mode, no js errors or any other kind of errors. The js error occurs when I click "Edit" on the page. All the hide/close links on the fieldsets for the different settings are gone (see attachement) and I get the js error posted in #1.
Comment #8
frjo CreditAttribution: frjo commentedPlease try out this patch, it adds a if (_colorbox_active()) check for the colorbox_inline.js inclusion.
Comment #9
jisuo CreditAttribution: jisuo commentedIt worked perfectly. Awesome job! :)
Comment #10
frjo CreditAttribution: frjo commentedCommitted to 6-dev. Thanks for testing it.