Javascript Error in v.8.4
Permalink Browser Info Environment
Hi,
using this theme on a freshly updated install, I get this JS error:
Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])
at Function.fa.error (jquery.js:2)
at fa.tokenize (jquery.js:2)
at fa.select (jquery.js:2)
at Function.fa [as find] (jquery.js:2)
at n.fn.init.find (jquery.js:2)
at new n.fn.init (jquery.js:2)
at n (jquery.js:2)
at HTMLDocument.<anonymous> (main.js:257)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
Do you have any hints where to look at?
Thank you for that beautiful theme!
using this theme on a freshly updated install, I get this JS error:
Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])
at Function.fa.error (jquery.js:2)
at fa.tokenize (jquery.js:2)
at fa.select (jquery.js:2)
at Function.fa [as find] (jquery.js:2)
at n.fn.init.find (jquery.js:2)
at new n.fn.init (jquery.js:2)
at n (jquery.js:2)
at HTMLDocument.<anonymous> (main.js:257)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
Do you have any hints where to look at?
Thank you for that beautiful theme!
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Hey there,
It is the latest Version of the Theme. Cache has been cleared.
It is the latest Version of the Theme. Cache has been cleared.
Hi, Cahueya
The error message is "Uncaught Error: Syntax error, unrecognized expression: a [href * = #]: not ([href = #])", but line 257 of "main.js" of version 2.1.6 is "$ ('a [href * = "#"]: not ([href = "#"])'). click (function () {"
Did you clear your browser's cache?
Thank you.
The error message is "Uncaught Error: Syntax error, unrecognized expression: a [href * = #]: not ([href = #])", but line 257 of "main.js" of version 2.1.6 is "$ ('a [href * = "#"]: not ([href = "#"])'). click (function () {"
Did you clear your browser's cache?
Thank you.
I have the same issue. I have cleared the cache and the error still occurs. It is prohibiting the video add-on to work. I'll be happy to help troubleshoot. Tell me what to do.
I checked the theme version 2.1.6, concrete 5 version 8.4.2, but no problem..
# concrete5 Version
Core Version - 8.4.2
Version Installed - 8.4.2
Database Version - 20180716000000
# concrete5 Packages
Accelerated Mobile Pages (AMP) (0.2), Stucco (2.1.6)
# concrete5 Overrides
None
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
# concrete5 Version
Core Version - 8.4.2
Version Installed - 8.4.2
Database Version - 20180716000000
# concrete5 Packages
Accelerated Mobile Pages (AMP) (0.2), Stucco (2.1.6)
# concrete5 Overrides
None
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
I checked the theme version 2.1.6, concrete 5 version 8.4.3, and have the same problem as above. It does NOT happen with 8.2.1. See attached.
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Devoda SEO (1.5.2), Structured Data Video (1.1.0), Stucco (2.1.6), Styled Maps (1.2.3), White Label (1.0.1)
# concrete5 Overrides
elements/header_required.php
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Devoda SEO (1.5.2), Structured Data Video (1.1.0), Stucco (2.1.6), Styled Maps (1.2.3), White Label (1.0.1)
# concrete5 Overrides
elements/header_required.php
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
Any additional feedback on this? I really need to get this solved and have no idea what this javascript is looking for. Any help is appreciated.
Please check the default theme without overriding.
Thanks.
concrete5 Overrides elements/header_required.php
Thanks.
I don't know what I'm looking for. I am attaching the file and appreciate any help you can offer.
I checked the theme version 2.1.6, concrete 5 version 8.4.3, but no problem.
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Accelerated Mobile Pages (AMP) (0.2), Stucco (2.1.6)
# concrete5 Overrides
None
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
Thanks.
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Accelerated Mobile Pages (AMP) (0.2), Stucco (2.1.6)
# concrete5 Overrides
None
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).
Thanks.
Any clues on how I should go about fixing this issue? Clearly others have this problem as well. Do you know if there is a common thread between all of us? I hate to have to roll back the concrete5 version to get it to function properly, but I may have to do that. Any ideas at all?
I am having strange problems with 8.4.3 also.
In the editing interface, the CKEditor buttons don't show up until you click into the content area and Page List editing is totally borked. See attached 2 images, one using Stucco that is completely blank (including Preview) and the same page using the Elemental theme.
Here's what shows up in my Firefox console (edited for readability):
I have an upcoming meeting with a client in 2 days, and the site is no longer editable! I have no idea how to debug this.
BTW, I get the same blank Page List Settings and Preview in Vivaldi / Chrome, so it's not my Firefox setup. I have no strange overrides, and the site has been working since 8.2.1 was released.
Please advise ASAP!
In the editing interface, the CKEditor buttons don't show up until you click into the content area and Page List editing is totally borked. See attached 2 images, one using Stucco that is completely blank (including Preview) and the same page using the Elemental theme.
Here's what shows up in my Firefox console (edited for readability):
jquery.js:2:12733 - Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#]) jquery.js:4:26272 - Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
I have an upcoming meeting with a client in 2 days, and the site is no longer editable! I have no idea how to debug this.
BTW, I get the same blank Page List Settings and Preview in Vivaldi / Chrome, so it's not my Firefox setup. I have no strange overrides, and the site has been working since 8.2.1 was released.
Please advise ASAP!
I'm having this issue as well. Did you find any solution? I also tried clearing the cache, with no success.
Unfortunately, no.
Found the problem and have solution.
A jquery syntax is no longer valid in the main.js located in:
\application\themes\(themename)\js
\packages\motif\themes\motif\js
Delimiters need to be added around the #
Replace
jQuery("a[href*=#]:not([href=#])")
with
jQuery("a[href*='#']:not([href='#'])")
A jquery syntax is no longer valid in the main.js located in:
\application\themes\(themename)\js
\packages\motif\themes\motif\js
Delimiters need to be added around the #
Replace
jQuery("a[href*=#]:not([href=#])")
with
jQuery("a[href*='#']:not([href='#'])")
Thanks! I'll give it a shot!
This worked for me. Thank you!
Was happening to me with the Stucco theme after updating to Concrete5 8.5.1. Its probably a common error from using an older version of a theme on an updated version of Concrete5. Either update the theme to the latest version, or make the changes directly to the main javascript file like what LanexJeff says.
Was happening to me with the Stucco theme after updating to Concrete5 8.5.1. Its probably a common error from using an older version of a theme on an updated version of Concrete5. Either update the theme to the latest version, or make the changes directly to the main javascript file like what LanexJeff says.
What version are you installing?
If the version 2.1.4 or earlier, please update theme.
Thanks.