I know that this issue has been posted several times, but I'm sure this must be something new, because I checked every solution that is provided in the faq on this site: http://drupal.org/node/898222

The button shows up, but when you press it, nothing happens

o After pressing the button, do you see any errors (javascript)?
YES: Javascript error: "self.container.dialog is not a function"
o If you have a custom theme, be sure you placed the "$closure" area/variable
The closure Variable is placed correct
o Somehow the jquery ui libraries are not included. Check if they are.?
They are included
o If you use memcache or any other caching thing (varnish ..) please disable and try again.
All caches are disabled

Please help me to find the reason why nothing happens when i'm clicking the image upload button..
I'm using the jquery ui module jquery dialog, jquery update, etc.. all as described on the module page for WYSIWYG image upload - Inline images for your WYSIWYG 6.x-2.4

Thank you!

Comments

EugenMayer’s picture

Perfect error description and debug informations - so be sure you get help :)

Thanks for reading the docs and the FAQ, you save me a lot of time.

Back to your issue, dialog is implemented by jquery_ui_dialog ( the module ). Could you please check if its installed correctly and activated?

darvit’s picture

I'm not have any luck either; clicking on button and nothing happens.

Info for the relevant modules:
Drupal 6.19 (with CTI Flex 6.x-2.2 theme installed)
ImageCache 6.x-2.0-beta10
ImageAPI 6.x-1.9
ImageAPI GD2 6.x-1.9
jQuery UI 6.x-1.4
jQuery Update 6.x-2.x-dev
Wysiwyg 6.x-2.1

WYSIWYG Image upload 6.x-2.4
WYSIWYG Image upload - Lightbox2 integration 6.x-2.4
WYSIWYG Image upload Browser 6.x-2.4

JQuery UI Dialog API 6.x-1.10
Lightbox2 6.x-1.11

CKEditor 3.4.1.5892 installed

----------------------------------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
Timestamp: Tue, 19 Oct 2010 17:46:00 UTC

Message: 'Drupal.settings.wysiwyg_imageupload.revisions' is null or not an object
Line: 40
Char: 7
Code: 0
URI: *****/sites/all/modules/wysiwyg_imageupload/plugins/imgupload/imgupload.js?K

Breakerandi’s picture

:-)
Well, I have installed and activated JQuery UI Dialog API 6.x-1.10

Anybody knows what my Javascript error "self.container.dialog is not a function" means?
This message comes in firebug when I click on the image upload button in the wysiwyg..

EugenMayer’s picture

It means, that the dialog function does not exist. It is defined by jquery_ui_dialog and it seesm like you miss the module or the files (js files) are not included. It can also be that you might use the wrong jquery ui library and thats why jquery ui dialog cannot load ( as it is based on it).

@darvit. Are you using jquery ui (library) 1.7.x? Are you actually editing a node or something else ( like a block or similar?)

Breakerandi’s picture

I got the jQuery UI module v. 6.x-1.4 and jquery ui v. 1.7.3
all installed as described in the readme.txt

Firebug tells me that this scripts are included:
.../modules/jquery_ui/jquery.ui/ui/minified/ui.core.min.js?5">

.../modules/jquery_ui/jquery.ui/ui/minified/ui.dialog.min.js?5">

.../modules/jquery_ui/jquery.ui/ui/minified/ui.draggable.min.js?5">

.../modules/jquery_ui_dialog/js/jquery_ui_dialog_parent.js?5">

These jquery update files are included AFTER them:
.../modules/jquery_update/replace/jquery.form.js?5">

.../modules/jquery_update/replace/ahah.js?5">

Could that be the reason??

EugenMayer’s picture

no that looks pretty fine to me.

Please disbale aggregation and tell me the exactl line of the JS error. Thanks

Breakerandi’s picture

Firebug console output:

self.container.dialog is not a function
"self.container.dialog(options);"
http://www.gonjin.com/sites/all/modules/jquery_ui_dialog/js/jquery_ui_di... Line 86

EugenMayer’s picture

thank you, now you have to wait a little, i have to investigate

darvit’s picture

seems to be working now, sorry can't explain what i did to fix as i removed and changed many modules.
(Was using jQuery UI 1.7.x - and was editing a block)
Will monitor and let you know if any other issues.
keep up the good work!

EugenMayer’s picture

Well that what happens when issues get mixed.. we have fixed #2, but #1 is still open.

Breakerandi’s picture

I have checked it with garland theme, no improvement, same error.

EugenMayer’s picture

Project: WYSIWYG image upload - Inline images for your WYSIWYG » jQuery UI Dialog
Version: 6.x-2.4 » 6.x-1.10
Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Ok, so after looking at the code, iam moving this issue over to jquery_ui_dialog as it has nothing to do with WUI.

Breakerandi please post all versions as darvit did, esp your jquery_ui_dialog and jquery ui and jquery ui library version, this is 99% an installation issue of yourself

Breakerandi’s picture

I deaktivated and deinstalled every module that is need by WIU, did an database update, clear caches, run cron and then reinstalled this modules&versions again:

- Jquery UI Module 6.x-1.4 with library 1.7.3
- jQuery Update 6.x-2.0-alpha1
- Query UI Dialog API 6.x-1.10
- WYSIWYG Image upload 6.x-2.4

The crazy thing is that i got all these modules in a mutlisite configuration and WIU works on other sites.
Its just this one site where it doesn't work..

Thanks for your help!

EugenMayer’s picture

Sounds like a local problem, i can help you here. Somehow the jquery ui dialog (no my module, the libarary) is not included or missing. This way, .dialog is not set (that a method of the library). So thats where you have to look for

Breakerandi’s picture

I have to correct myself: It doesn't work on any site of my multisite configuration..
What do you mean by looking for the .dialog is not set? I'm afraid that my php Knowledge isn't enough therefore, cause it's even worse than my english :-)

EugenMayer’s picture

Thats not a PHP issue in that case.

dialog stands for jquery dialog and is a extension of the jquery ui library. (jquery ui dialog). Do not mix that up with tha jquery_ui_dialog module, thats just a wrapper arround it.

In you case, the library (jquery ui library) is not loaded completly, or better, a component, the dialog extension, is missing. thats why the attempt to call the "dialog" method fails.

there is something wrong in the way the jquery_ui files are included in you installations

http://github.com/EugenMayer/jquery_ui_dialog/blob/master/jquery_ui_dial... thats where the drupal module jquery_ui is called to include it.

Breakerandi’s picture

Oh my god, I'm now really embarrassed!
I've downloaded the Jquery Ui library again and i comparise it to mine: It seems like i have a minimal version, same folder structure but no "ui.dialog" file in the ui folder. No it works fine!

I'm so sorry that I've wasted your time!

EugenMayer’s picture

Status: Postponed (maintainer needs more info) » Fixed

:)

Well, happens i guess

Status: Fixed » Closed (fixed)

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

strader’s picture

Make sure you install the jquery ui 1.7 branch (Legacy) and not the 1.8 branch (at least for the 6.x-1.10 jquery_ui_dialog). The 1.8 branch prefixes many of the js files with "jquery." This results in them not being found. I found the discrepancy by reviewing the web server logs.

alexbk66-’s picture

I have weird problem in Google Chrome and FCKEditor.

So, in Google and FCKEditor the button shows up, I click - nothing.
I open Firefox, click the button, it works.
Go back to Chrome - it works! Until I restart Chrome.

Other browsers and CKEditor work fine.

jquery_ui-6.x-1.4
jquery-ui-1.7.3.custom
jquery_ui_dialog-6.x-1.10
jquery_update-6.x-2.0-alpha1

EugenMayer’s picture

Iam using WUI with chrome + CKeditor most of the time, also with FF and IE. So it comes down to:
- cache issue
- FCKeditor issue

Pease debug it, analyze the JS errors and open a new issue if needed, with more details fors the errors. thanks

alexbk66-’s picture

Where can I see JS errors?