Please see attached screenshot with JavaScript errors that I get when loading a node page without a breadcrumb. Looks like the error is coming from the Aloha library, however I was wondering if something in the template needs to be adjusted so that it is Aloha ready. What's the experience of oter users here?

CommentFileSizeAuthor
js error.jpg35.87 KBjurgenhaas

Comments

jurgenhaas’s picture

Title: JavaScript Error if no breadcrumb is available » JavaScript Error in aloha.js

It looks like the problem is unrelated to the breadcrumb, the same error appears on pages with bradcrumbs.

Is also happens with different themes, including Bartik.

However, the editor works fine and seems to be fully functional. It's just so that other js files do not work which get loaded later on. Any ideas anyone?

fragglebob’s picture

These errors are not actually todo with our module, but aloha's code it self. I don't think it helps that the two files are named the same thing.

I think this could be your browser more than anything.

jurgenhaas’s picture

Well, I've tried Safari 5.1, Firefox 7.0, Chrome 14 - all with the same error. I fully agree, this looks more like a problm in the external library, I was just wondering if anyone else here in the community had a similar problem.

SebCorbin’s picture

If your site is on line, maybe I can help you.

jurgenhaas’s picture

Unfortunately it's on my localhost so far, I'm still testing and wanted to bring that to the production server only after it is working properly. Thanks for offering your help. I'm currently looking into the Aloha forum, maybe that error is known there.

jurgenhaas’s picture

@SebCorbin, I have now managed to get a sample site online. Please check http://jh01.easy2change.de and use admin/e2c4711 as login credentials. Your help is appreciated a lot.

LouisStAmour’s picture

My first thought was, could it be a JavaScript library conflict (e.g. jQuery/ExtJS) of some kind?

http://drupal.org/node/1145468

Now having taken a look at the site, the error probably lies in some global variable name being shared between the various scripts you've enabled.

The breadcrumb error could be addressed with the fix in the above link, I suspect, but the other error is purely Ext JS Library 3.2.1 and to debug it, we'd probably need to un-minify it from aloha.js ... actually, the fact that it's minified at all is odd. We should be letting Drupal do the minification at the end.

LouisStAmour’s picture

Perhaps we should try using the latest mostly non-ExtJS version of Aloha, as I gather we're not already? https://github.com/alohaeditor/Aloha-Editor/tree/master/WebContent

It has some memory leak bugs, which might currently exist also, but should be fine other than that. It uses a global namespace now to prevent conflicts.

jurgenhaas’s picture

Status: Active » Fixed

Wow, applying the change from #1145468: ExtJS error when using Admin already corrected the problem. So I'm going to submit a patch and hope that this little change will go into the admin module.

Thanks @LouisStAmour for your great and very quick help.

Status: Fixed » Closed (fixed)

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