Hi!

I'm using IMCE as module for managing files:
http:///user/1/imce

This displays a filebrowser windows. (not a normal page template, simply the filebrowser)

Because of a check in ajax-responder.js of CTools, the Upload buttons are not rendered.

Line 505:

// Add information about loaded CSS and JS files.
if (Drupal.settings.CToolsAJAX.css) { }

Because Drupal.settings.CToolsAJAX is empty on this page, this lead to a javascript error. (Drupal.settings.CToolsAJAX.css is undefined)

Attached you find a patch, that solves this issue with an additional check.

CommentFileSizeAuthor
ctools-ajax-responder.js-imce-compat.patch714 bytesayalon

Comments

socialnicheguru’s picture

This is awesome. after hours of searching for my specific gmap error, I looked in Firebug and saw that there was a ctools error. Your patch helped solve it.

Can this be committed?

merlinofchaos’s picture

Status: Needs review » Fixed

Sure, this is easy enough.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kenorb’s picture

Thanks.

kenorb’s picture

johnhanley’s picture

Status: Closed (fixed) » Active

I'm having the same problem. That is, the above error breaks the IMCE upload button.

What's the status of this patch as part of an official release? I don't want to use the dev version on a production server and the current 6.x-1.7 version as of July 26, 20010, obviously predates this patch.

merlinofchaos’s picture

The patch is in the -dev version and we're very close to a new release.

johnhanley’s picture

Thanks merlin. I'll hold-out until then.

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)