Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedWhat version of JQuery Update are you using?
Comment #2
logicalpat CreditAttribution: logicalpat commentedI'm using JQuery Update 6.x-2.x-dev
Comment #3
Jorrit CreditAttribution: Jorrit commentedI will look at this soon.
Comment #4
Jorrit CreditAttribution: Jorrit commentedFixed in 6.x-1.x-dev branch.
Comment #6
mizerydearia CreditAttribution: mizerydearia commentedI 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();
Comment #7
Jorrit CreditAttribution: Jorrit commentedCould you specify which @ expressions are still present? I can't find any in the 6.x-2.x branch.
Comment #8
Jorrit CreditAttribution: Jorrit commentedComment #9
johnny_up CreditAttribution: johnny_up commentedHi,
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!
Comment #10
Jorrit CreditAttribution: Jorrit commentedDoes the problem exist in 6.x-2.x-rc2 of the FCKeditor module?
Comment #11
macinnir CreditAttribution: macinnir commentedJust 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.
Comment #12
Jorrit CreditAttribution: Jorrit commentedAs the name suggests, [@Name='og_selective'] is related to the organic groups module, not the FCKeditor modules.
Comment #13
Jorrit CreditAttribution: Jorrit commentedPlease reopen if you find any jQuery issues with FCKeditor code, and please provide file name, file version and line number.
Comment #14
gusreiber CreditAttribution: gusreiber commentedI 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'.
Comment #15
Jorrit CreditAttribution: Jorrit commentedI'll close it as it does not relate to FCKeditor.