When the colorbox module is enabled, I get the following error in javascript console:
Uncaught TypeError: Object #
has no method 'colorbox' edit:16 Uncaught TypeError: Object # has no method 'once' When I hit edit on an added product in the inline entity form, and no edit form appears. WIthout colorbox there is no problems.
Comments
Comment #1
bojanz commentedMoving to the colorbox queue.
IEF is not doing anything unordinary here, so I'm guessing it's a colorbox bug.
Comment #2
lsolesen commentedFrom Firefox Firebug:
Error: $("a, area, input", context).filter(".colorbox").once("init-colorbox-processed").colorbox is not a function
Source File: http://dev.vih.dk/node/1275/edit
When trying to edit an inline entity form.
Comment #3
lsolesen commentedRelated to #1605428: Compatibility issue with some modules - Uncaught TypeError: Object [object Object] has no method 'colorbox' and #1619776: colorbox jquery errors and no longer working and #1223750: Jquery library rather than module
Comment #4
dgtlmoon commentedtry making sure you're using the original jQuery, not the latest one
Comment #5
lsolesen commented@dgtlmoon I am just using the jQuery bundled with Drupal 7.14.
/misc/jquery.js --> jQuery JavaScript Library v1.4.4
Comment #6
lsolesen commentedUsed the jquery_update module to get the version to 1.5 for jQuery and everything worked correctly again. Maybe that should be a dependency for colorbox?
Comment #7
frjo commentedComment #8
thatjustin commentedI had the error, "Object # has no method 'colorbox' " - and updating jQuery didn't help. The issue was that by default, in "/admin/config/media/colorbox", > Advanced Settings, Colorbox is set not to load on certain pages. In my case, removing the exception for
node/add/*andnode/*/editresolved my issues. I was seeing the error on pages that had a field_collection form.My guess is that some of the others who are seeing this problem have colorbox not loading on certain pages.
Comment #9
webdrips commentedFor the record, I tried both suggestions above, and the only way I could get the Remove button working for the images was to use the administration theme.
Note what's even more strange is the image being deleted was a standard image, with no colorbox images being used with this particular page type.
Comment #10
fotfotfot2000 commentedThe solution of removing the exceptions in "/admin/config/media/colorbox" worked for me.
TY Justin
Comment #12
aris.rep commented#8 worked perfectly for me, thatjustin thanks a lot for your solution! My problem was exactly as described in the issue.
Comment #13
RAWDESK commented#8 didn't solve my problem which is explained more detailed here :
http://www.jacklmoore.com/colorbox/faq/#faq-jquery
Apparently 2 conflicting versions of Jquery caused this issue for us.
Comment #14
stefank commentedHad the same issue when editing existing node and trying to remove and upload new image. Everything was working fine few days ago, so not sure what happened. #8 seems to fix it for now.