Hi,

So far all went well on getting the module up&running. I can see that the users are being created on ejabberd and the tests went fine.

I´m using a Drupal Commons base and the DXMPP block keep this JS message. Jquery Ui is 1.7.3 and Jquery Update are enabled. I don´t see any error message on Firebug and at this point I got stuck.

Appreciate your help. Thanks,
Wilton

Comments

IckZ’s picture

Hey,
what browser are you using? Are you sure you enabeld javascript in your browser? Maybe you try to disable the setting "disable on bad browser"..

But I think this should be only a problem with your browser.

wilton.pinheiro’s picture

Hey IckZ,

I don´t think that´s the case. I´m on Chrome 8.0 and have tried with IE and FF also. All the JS functions works fine, only DXMPP is showing this message.

I don´t understand why! Thanks for trying to help! Any other idea?

IckZ’s picture

Hey,
yes I overlooked that you are using jquery ui 1.7.3.


Most likely the problem is with jQuery UI version. jQuery UI filenames have been changed from version 1.8.2 onwards. Which version of jQuery UI are you using? It should be version 1.8.2 or later.

wilton.pinheiro’s picture

Hi,

I understand now the problem, although haven't figured out the solution....

I'm using Jquery Ui 1.8.7.

After debuging I can see that there is an error when Drupal.t() tries to replace the string "@count friends online" in Drupal.js. str.replace(key, args[key]) is undefined! Why? Because str is not a string, is an array!!!! ["@count friends online", "@count friends online"].
All strings on DXMPP are like this! textFriendsSingular, textFriendsPlural.... all an array!

I'm still debuging.... let me know if you have any other ideas on it.

Thanks,
Wilton

that0n3guy’s picture

I am also having this error... I am sure I have 1.8.7 and have jquery_update dev...

Also on FF 3.6.13 and chrome 8.0.552.224

Edit: also, firebug shows ui as version 1.8.7

that0n3guy’s picture

I noticed a bunch of errors in drupal logs, mostly stuff like: http://drupal.org/node/779562.

I followed it here http://drupal.org/node/749126 and did the patch + extra changes, still getting the "enable javascript" thing.

How are you getting 1.8.7 to work? jquery_ui doesn't even really support it yet?

that0n3guy’s picture

I noticed a bunch of errors in drupal logs, mostly stuff like: http://drupal.org/node/779562.

I followed it here http://drupal.org/node/749126 and did the patch + extra changes, still getting the "enable javascript" thing.

How are you getting 1.8.7 to work? jquery_ui doesn't even really support it yet?

darklrd’s picture

Hey that0n3guy,

Please read comment #4 here - http://drupal.org/node/962264#comment-3670628

that0n3guy’s picture

Yeah I. Saw that.. basically use 1.8.2 or greater. I've tried 1.8.2 on up. with dxmpp beta and dev. I'm starting to think it may be something in drupal commons.. will try wth plain drupal tomorrow.

darklrd’s picture

@that0n3guy - I guess I found the problem. I was checking jquery ui 1.8.7 files and it seems they have again renamed their files :( I am fixing it.

darklrd’s picture

@that0n3guy - which version of jquery_ui Drupal module are you using?

darklrd’s picture

@everyone - This problem is with jquery_ui module. Kindly check this issue - #749126: JQuery Plugin 1.8 is out

that0n3guy’s picture

@darklrd - Yeah I tried that (I stated that in #7). Is there something that needs to be modified in this module as well?

Also, I tired both jquery_ui 1.4 and the dev... either one worked. I will be trying it again on a clean site (not drupal commons) later today.

that0n3guy’s picture

Ok, so here is what I used:

- plain drupal 6
- jquery 1.4 with this patch: http://drupal.org/node/749126#comment-3810242
- jquery_update 2.x dev
- dxmpp dev
- jquery ui 1.8.6 in the jquery_ui's module folder (not in all/libraries)

I no longer have the enable javascript error, horray! I think that maybe something in drupal_commons was fighting with this also... because I used this setup before and had issues.

My stuff still isn't working, but I'll ask those questions in another issue.