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.
I am using a colorbox (not in iframe) that displays node data. and another colorbox that have node form in it. Both on the same page. When I click on link that opens colorbox which displays data it opens and closes with no error. But after that I open colorbox which displays node form it gives error (Error: cboxElement missing settings object). and after this 2 same colorboxes opens. and after closing them this error comes TypeError: parent.jQuery.fn.colorbox is not a function. and JavaScript breaks.
open node form colorbox again and again gives no error.Any idea.
Comments
Comment #1
frjo CreditAttribution: frjo commentedComment #2
jphelan CreditAttribution: jphelan commentedI have the same issue.
Comment #3
jphelan CreditAttribution: jphelan commentedHere's some more info.
The first time I click a colorbox link on a page it works fine. After that any other's get this error "Error: cboxElement missing settings object" in the console and open two or three windows. However, using colorbox-inline seems to work fine unless you open a link for colofboc-load first then inline breaks too.
I'm using Drupal Colorbox 7.x-1.3 and Colorbox 1.3.20 and Jquery Update.
Comment #4
jphelan CreditAttribution: jphelan commentedUsing Colorbox Node and the colorbox-node class seems to work fine for me rather than colorbox-load.
Comment #5
harry_nc CreditAttribution: harry_nc commentedSame issue happening here
Comment #6
Neslee Canil Pinto