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

bojanz’s picture

Title: Incompatible with colorbox » Uncaught TypeError: Object # has no method 'colorbox'
Project: Inline Entity Form » Colorbox
Version: 7.x-1.0-beta2 » 7.x-1.x-dev

Moving to the colorbox queue.
IEF is not doing anything unordinary here, so I'm guessing it's a colorbox bug.

lsolesen’s picture

From 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.

dgtlmoon’s picture

try making sure you're using the original jQuery, not the latest one

lsolesen’s picture

@dgtlmoon I am just using the jQuery bundled with Drupal 7.14.

/misc/jquery.js --> jQuery JavaScript Library v1.4.4

lsolesen’s picture

Used 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?

frjo’s picture

Status: Active » Closed (duplicate)
thatjustin’s picture

Issue tags: +Field collection

I 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/* and node/*/edit resolved 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.

webdrips’s picture

For 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.

fotfotfot2000’s picture

Issue summary: View changes

The solution of removing the exceptions in "/admin/config/media/colorbox" worked for me.
TY Justin

aris.rep’s picture

#8 worked perfectly for me, thatjustin thanks a lot for your solution! My problem was exactly as described in the issue.

RAWDESK’s picture

#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.

stefank’s picture

Had 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.