I know I got the libraries and modules (including the dependencies) right, I tested with a clean install and there it works. Just spend quiet some time figuring out which module or what setting that could be the problem. Without luck

The button is added nicely to the editors (tinyMCE and CKeditor, tested with both latest and older versions that I had downloaded previously), but nothing happens when I click it.

Figured I could possibly save me the trouble by sorting a nice page over installed and enabled plugins, maybe someone else has ran into the same problem or know which module is the likely clash. I did install the same modules on the install where it works, to test, and right out of box they don't cause a problem, but something about how to configure one, or more of them, does seem cause a problem.

Here's a nice collection of pictures of installed plugins (skipped the drupal core and optional as they should not be the problem).
http://dev.webbyanna.com/plugins/

If no one has any clue, guess I'll have to go through the plugins and configure each and everyone on the test install as instructed. Promise to post back on which one caused a problem in that case.

Comments

eugenmayer’s picture

First off, thank you for doing such a deep investigation before asking. Very kind!

You might want to look at the new FAQ section, where iam going though some common problems : http://drupal.org/node/898222

Also very important in your case is to check the incompatibilities section (http://drupal.org/node/809612) and be sure to apply all patches if needed. In common, you problem seems to be related to JS, most probably jquery ui not loaded or similar. Go throught the FAQ section and be sure to look for JS errors when you press the button.

Also be sure to check, if it is skin related or cache related ( performance ). In some cases this can be the cause, so JS gets aggregated wrong or similar.

Iam willing to help you, just give me some details like errors. Be sure to check which JS files are loaded and look for ui.core / ui dialog / jquery / jquery_ui_dialog_parent and look if they are included properly ( html source ) and are in a correct order (jquery, core, dialog, jui, imgupload)

LadyAnna’s picture

I compared my two installs.

Seem that in the one that works the js is loaded in a different orders. They are using same theme, and on the one that fails, it does fail on the default theme as well.

I get no errors, it just doesn't pop up the upload dialog.

On the one that fails, the imgupload is loaded before the dialog and jui. On the one it works it is also loaded before those, it is even loaded before the core on that one.

On both installs imgupload is loaded between the two editors. And on one both fail, the other both work.

Upon comparing the list of loaded js I did find the incompatible module though, the lists did differ some. I had the module enabled on both installs, but it was only properly configured on the one that failed. I disabled the module and now imageupload works, for both editors.

Seem imageupload is incompatible with Smileys: http://drupal.org/project/smileys (using the release version, not tested with the dev)

eugenmayer’s picture

Good testing!

Well the order imgupload.js is loaded cannot be influenced by me, as its part of the WYSIWYG API. But iam not calling any methods there onload, so should work anyway.

Is it now 100% confirmed that the smilies module causes the problem? I guess all it does is providing a popup where you can chose smilies? If it causes the problems, can you grep the js code for it for a "@" character? if there are any matches i will need to look into it, would mean they are incompatible with Jquery 1.3 and need some very easy and basic fixes

LadyAnna’s picture

I retested on a clean install with only wysiwyg and wysiwyg_imageupload and smileys enabled (and of course any dependencies). If fails.

As soon as I disable the use of smileys for one node type, it works for that type. Didn't make any difference if the "more" pop up was active or not from the smileys pack.

Could not find "@" character in the js files for smileys.

I'd say it is confirmed, smileys does not work with imageupload, looked at the recent issues reported for smileys, seem it does have an issue with WYSIWYG editors in general. So it might be the maintainers of smileys module who should sort it, perhaps I should have been reporting it there instead :/

eugenmayer’s picture

You did a outstanding work with all the debugging. I will move the issue there and update the incompatibilies section of WUI.

Very good work!

LadyAnna’s picture

Least I can do is help with debugging :) How else are things gonna get better?

I'm not very experienced with coding, but I know the key to getting anything sorted is finding out where the error is, and under what conditions it does appear. Without that information it is virtually impossible to find out what code is causing an problem.

eugenmayer’s picture

Title: Possible incompatibility issue. » Incompatiblem with WYSIWYG?
Project: WYSIWYG image upload - Inline images for your WYSIWYG » Smileys
Version: 6.x-2.2 » 6.x-1.0
Category: support » bug

Updated the incompatibilies section, moving issue to smilies issue queu

yankozmo’s picture

I ran in to the same problem.

I found a little additional information: the problem only occurs when the"Enable Smileys dialog window" option in the smileys options is checked.

soundboy89’s picture

the problem only occurs when the"Enable Smileys dialog window" option in the smileys options is checked

I wish that was true in my case, yankozmo. Clicking on the Image Upload button with Smileys module activated (CKEditor) does nothing but generate a JS error, regardless of the status of my "Enable Smileys dialog window" checkbox.

BTW, I caught the JS error with Firebug, here's what it says:

f.find("*").add(f).disableSelection is not a function

yankozmo’s picture

I'm afraid I gave up on trying to use both modules together, and now use image browser instead. no problems so far.