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.


Jorrit’s picture

Component: Code » Compatibility with other modules
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

What version of JQuery Update are you using?

logicalpat’s picture

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

Jorrit’s picture

Assigned: Unassigned » Jorrit

I will look at this soon.

Jorrit’s picture

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.

Status: Fixed » Closed (fixed)

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

mizerydearia’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » 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?

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();

Jorrit’s picture

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

Jorrit’s picture

Status: Needs review » Postponed (maintainer needs more info)
johnny_up’s picture

Priority: Normal » Minor
Status: Postponed (maintainer needs more info) » Active

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.


Jorrit’s picture

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

macinnir’s picture

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.

Jorrit’s picture

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

Jorrit’s picture

Status: Active » Closed (fixed)

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

gusreiber’s picture

Status: Closed (fixed) » Needs review

I started having the same problem with the JS file "teaser.js" tossing an uncaught exception after upgrading to the latest flavor of JQuery. The answer for me was to simple change line 91 of the that file from "if ($(teaser).is('[@disabled]'))" to " if ($(teaser).is(':disabled'))". I am not an expert with either Drupal or JQuery and I don't recognize '[@disabled]', but I am assuming it is true if the element is disabled. The new JQuery selector for that condition is ':disabled'.

Jorrit’s picture

Status: Needs review » Closed (fixed)

I'll close it as it does not relate to FCKeditor.