Uncaught exception with JQuery Update module enabled

logicalpat - August 14, 2009 - 14:42
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-2.x-dev
Component:Compatibility with other modules
Category:bug report
Priority:minor
Assigned:Jorrit
Status:closed
Description

It seems the FCKeditor module has a problem when the JQuery Update module is also installed. Loading a page with the FCKeditor on it throws an uncaught exception in Firebug:

uncaught exception: Syntax error, unrecognized expression: [@class=teaser-button-wrapper]

Then clicking on the "Switch to plain text editor" button throws another:

uncaught exception: Syntax error, unrecognized expression: [@class=teaser-button]

Disabling the JQuery Update module fixes this however there are several modules I use that required the JQuery Update module.

#1

Jorrit - August 15, 2009 - 20:38
Component:Code» Compatibility with other modules
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

What version of JQuery Update are you using?

#2

logicalpat - August 17, 2009 - 13:55

I'm using JQuery Update 6.x-2.x-dev

#3

Jorrit - September 8, 2009 - 19:34
Assigned to:Anonymous» Jorrit

I will look at this soon.

#4

Jorrit - September 9, 2009 - 18:55
Version:6.x-1.3» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» fixed

Fixed in 6.x-1.x-dev branch.

#5

System Message - September 23, 2009 - 19:00
Status:fixed» closed

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

#6

mizerydearia - October 7, 2009 - 04:20
Version:6.x-1.x-dev» 6.x-2.x-dev
Status:closed» needs review

I need jquery 1.3.2 or higher for some functionality to continue normally at my site, so I need jQuery Update 6.x-2.x-dev. Is there a workaround or solution for this version?

I mentioned similarly in #jquery @ Freenode, and simply removing all instances of @ symbol is the fix needed?

e.g.
ubercart/payment/uc_payment/uc_payment.js: var products = $("[@name=cart_contents]").val();
should be
ubercart/payment/uc_payment/uc_payment.js: var products = $("[name=cart_contents]").val();

#7

Jorrit - October 7, 2009 - 08:53

Could you specify which @ expressions are still present? I can't find any in the 6.x-2.x branch.

#8

Jorrit - October 7, 2009 - 08:53
Status:needs review» postponed (maintainer needs more info)

#9

johnny_up - October 28, 2009 - 19:14
Priority:normal» minor
Status:postponed (maintainer needs more info)» active

Hi,
I had a problem with jquery update, fckeditor and og (organic groups version = "6.x-1.3")...after installing jquery update 6.x-2.x (needed that branch for blocks in accordion) the fckeditor broke. I hunted down the errors in og_access.js and changed @name='og_selective' to name='og_selective' and it fixed the editor enough so that you can use it (and it doesn't break og) but I still get the above error:

uncaught exception: Syntax error, unrecognized expression: [@class=teaser-button-wrapper]

It's not mission critical as the page still works, but I'd love to know how to get rid of the error altogether.

Thanks!

#10

Jorrit - October 28, 2009 - 19:21

Does the problem exist in 6.x-2.x-rc2 of the FCKeditor module?

#11

macinnir - November 11, 2009 - 18:49

Just wanted to leave my 2-cents -- I had this issue with the Jquery update module enabled, but I had also updated misc/jquery.js to jquery-1.3.2 manually. I uninstalled the Jquery update module and the problem persisted --

Error: uncaught exception: Syntax error, unrecognized expression: [@Name='og_selective']

I then reverted the misc/jquery.js script back to its original 1.2.6 and everything was fine.

Not sure if that pertains.

#12

Jorrit - November 12, 2009 - 08:38

As the name suggests, [@Name='og_selective'] is related to the organic groups module, not the FCKeditor modules.

#13

Jorrit - November 16, 2009 - 07:53
Status:active» closed

Please reopen if you find any jQuery issues with FCKeditor code, and please provide file name, file version and line number.

 
 

Drupal is a registered trademark of Dries Buytaert.