One of the ajax modules (thickbox plugin) seems to conflict with the core optional upload.module. Clicking "Attach" will add the file in but generate two recursion errors in firebug. I found via some debugging with my own module that to fix this issue the line Drupal.attachBehaviors($('#TB_window')); needs to be commented out.
From what I can tell, the Drupal.attachBehaviors($('#TB_window')); line seems to conflict with AHAH calls as this was the case in the project I was working on. Maybe it's a conflict specifically with the AHAH tabledrag reload (as that's the specific js code I've generated it with both times). I wish I could help debug it more then that but I don't really understand how to attach behaviors to the thickbox window in any other fashion, for now though i'd personally recommend turning it off as it causes problems to unrelated modules / code!
Comments
Comment #1
brendoncrawford commentedBtopro,
Thanks for your feedback. I will have a look at this to see if I can fix it.
Comment #2
luckyspin commentedDid you find anything out about this? I am seeing the same sort of problem when I have the current version of Thickbox and Ajax installed. It causes an infinite loop in the browser when the thickbox plugin for the Ajax module is enabled.
Comment #3
btopro commentedI didn't get an infinite loop but I have commented out the attachbehaviors command just to be safe for now incase I turn that module on on any of my sites. I get long time-out-like recursion errors.
Comment #4
brendoncrawford commentedStill working on this.
Comment #5
brendoncrawford commentedbropro,
This bug http://drupal.org/node/240777 is unfortunately stopping me from being able to fully test upload.module. Even with partial success using upload.module for some reason I am not able to reproduce the bug you mentioned. Could I get the following information from you...
1) What exact version of Drupal?
2) Which modules/themes do you have enabled? To get this, you can just run this query:
3) If available, what is the call stack for the firebug error you are getting?
Thanks
Comment #6
brendoncrawford commentedbtopro,
Yeah, I have done some more testing. Until there is a solution to http://drupal.org/node/240777, I don't think I will be able to fix this bug.
Comment #7
brendoncrawford commentedBtopro,
Yes, it appears to be the ajax.js itself, not the thickbox plugin. Working on this... Stay tuned.
Comment #8
brendoncrawford commentedBtopro,
I believe this should now be fixed with the latest dev snapshot. Please allow up to 12 hours for snapshot to appear. Let me know if you still have problems with this.
Thanks,
brendon