Hello, we are on Drupal 6.10.

When IA Browse is enabled, Javascripts on FusionCharts node edit pages malfunction completely, nothing dynamic works at all, including all other collapsible fields and FC selectors, except IA Browse's "Click to browse" link. Though you can attach an image, no chart data can be saved and no other parameters which belong to collapsed fields can be set. Even resizable textarea functionality is lost.

FC is known to be using AHAH callbacks and somehow these two modules can not function together on the same page.

Other node types' edit pages seem to be OK by the way.

Thanks in advance.

CommentFileSizeAuthor
#5 image_attach_browse.module.patch891 bytesaaronbauman

Comments

aaronbauman’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to reproduce this issue on a fresh d6 install.
I successfully installed IA Browse and FC and was able to create a fusion chart node with attached image.

Please provide more info about your setup:
What other modules do you have installed? Color picker widget? Other javascript-y culprits?
What is your operating system / browser?
What is your server setup?
Have you used FireFox w/ Firebug? What kind of output do you get?
Do you have any custom modules installed?

The collapsible fieldsets are notoriously buggy and will break on almost any javascript error.
If your page loads w/ broken fieldsets, there's something going wrong even before the AHAH callbacks.

chawl’s picture

Indeed Colorpicker seems to have a problem, but as you know, it is required for FC nodes. Initial result is, when IAB is enabled (Firefox 3.0.7) Firebug error says:

$.farbtastic is not a function
attachPicker()()colorpicker.js?X (line 49)
init()()colorpicker.js?X (line 33)
colorpicker()()colorpicker.js?X (line 12)
(?)()()jquery.j...e3Q%3D%3D (line 1)
(?)()()jquery.j...e3Q%3D%3D (line 1)
colorpicker()(Document fusioncharts)colorpicker.js?X (line 9)
(?)()()drupal.js?X (line 42)
(?)()(Object, function(), undefined)jquery.j...e3Q%3D%3D (line 1)
attachBehaviors()(Document fusioncharts)drupal.js?X (line 41)
(?)()()drupal.js?X (line 276)
e()jquery.js?X (line 13)
e()jquery.js?X (line 13)
e()jquery.js?X (line 13)
e()jquery.js?X (line 13)
[Break on this error] ref.farb = $.farbtastic(ref.wrapper);

Also IE8 Beta on Windows 7 shows an error on the same JS file, on the same line.

Our module list is rather crowded but similar to one of our live sites, no exotic JSs, no custom modules and our server is our own and is a production server which runs on Centos 5.2.

I will investigate it further and try to isolate the problem, then I will post the results here.

Tx for your fast consideration.

aaronbauman’s picture

The first line of firebug output is particularly disconcerting:

$.farbtastic is not a function

farbtastic js lib is part of drupal core (not sure when it was added).

further, on my clean install i did the following:
* enabled all modules required by and depending on color picker (including color picker widget)
* added a cck color picker field and cck color text field

and i was still unable to reproduce this issue.

Can you confirm that IA Browse is or is not the culprit by temporarily disabling it?

chawl’s picture

Ok, some (premature) results. Enabling or disabling CP CCK Widget module has no effect on the situation by the way, also I set the theme to Garland and disabled almost all JS using modules, same results on Firefox 3.0.7 and IE8 Beta on W7:

Colorpicker 6.x-2.0-rc1 + IAB + FC:
Farbtastic error on line 49, no collapsibles, no chart save, no FC AHAH callback, no JS works.

Colorpicker 6.x-1.0-beta1 + IAB + FC:
Collapsibles OK but no CP badges for color fields, no FC AHAH callback/no throbber, try changing chart type to Multiseries, grid should reflect the change but nothing happens and Firebug gives the following error, but chart "saves". May be this is your situation.

$(element_settings.element).parents("form").ajaxSubmit is not a function
to the element event. $()()ahah.js?v (line 99)
(?)()()jquery.j...e3Q%3D%3D (line 1)
(?)()()jquery.j...e3Q%3D%3D (line 1)
[Break on this error] $(element_settings.element).parents('form').ajaxSubmit(options);

Colorpicker 6.x-2.0-rc1 + FC:
On FC AHAH callback Firebug says "colorpicker_init is not defined" just once and some Drupal errors come, obviously FC is not (fully) compatible with CP 2.0, nothing to do with IAB anyway, but everything still works including AHAH callbacks and with proper CP badges on color fields, and chart saves.

Colorpicker 6.x-1.0-beta1 + FC:
Everything is OK, no errors, no flaws, chart saves.

I will setup a test site and compare the situation by the way. Sorry if this really is a local issue.

Tx for your time.

aaronbauman’s picture

Assigned: Unassigned » aaronbauman
Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new891 bytes

ahhhhhh - found the issue.
dunno how this got past me, or why it wasn't breaking the entire site, but somehow misc/jquery.js was being included twice in scripts.
oy vey.

patch committed to head and attached

chawl’s picture

Absolutely confirming the patch is OK, and the issue is resolved :)

Thank you very much.

aaronbauman’s picture

Status: Fixed » Closed (fixed)

Thanks for helping out chawl