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!

Type: Pre-Sale
Status: In Progress
Cahueya
View Replies:
nipper15 replied on at Permalink Reply
nipper15
Hi, Cahueya

What version are you installing?
If the version 2.1.4 or earlier, please update theme.

Thanks.
Cahueya replied on at Permalink Reply
Cahueya
Hey there,

It is the latest Version of the Theme. Cache has been cleared.
nipper15 replied on at Permalink Reply
nipper15
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.
edsaxmoore replied on at Permalink Reply
edsaxmoore
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.
nipper15 replied on at Permalink Reply 1 Attachment
nipper15
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).
edsaxmoore replied on at Permalink Reply 1 Attachment
edsaxmoore
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).
edsaxmoore replied on at Permalink Reply
edsaxmoore
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.
nipper15 replied on at Permalink Reply
nipper15
Please check the default theme without overriding.
concrete5 Overrides
elements/header_required.php


Thanks.
edsaxmoore replied on at Permalink Reply 1 Attachment
edsaxmoore
I don't know what I'm looking for. I am attaching the file and appreciate any help you can offer.
nipper15 replied on at Permalink Reply
nipper15
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.
edsaxmoore replied on at Permalink Reply
edsaxmoore
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?
jasteele12 replied on at Permalink Reply 2 Attachments
jasteele12
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):
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!
PriceChapel replied on at Permalink Reply
PriceChapel
I'm having this issue as well. Did you find any solution? I also tried clearing the cache, with no success.
edsaxmoore replied on at Permalink Reply
edsaxmoore
Unfortunately, no.
LanexJeff replied on at Permalink Reply
LanexJeff
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='#'])")
edsaxmoore replied on at Permalink Reply
edsaxmoore
Thanks! I'll give it a shot!
hunterwebs replied on at Permalink Reply
hunterwebs
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.0
Version Installed - 8.4.0
Database Version - 20180524000000

# concrete5 Packages
Backup Pro (3.4), Community Store (1.3.6), Community Store Table Rate shipping (1.0), GDPR (1.6.7), Localized Address Format (0.1), Login/Logout Link (1.0), Ortic Button (1.0), Paypal Payment Method (1.0), Simple Backup (2.0.4), Stucco (2.1.6)

# concrete5 Overrides
blocks/community_product/view.php, blocks/community_product/view.css, blocks/community_product, blocks/community_utility_links/view.php, blocks/community_utility_links/view.css, blocks/community_utility_links, blocks/community_product_list/view.php, blocks/community_product_list/bak_detail_view.php, blocks/community_product_list/view.css, blocks/community_product_list/view.bak2, blocks/community_product_list/view.bak, blocks/community_product_list, elements/ORG_order_slip Kopie.php, elements/order_slip.php, css/community-store-print.css, css/community-store-modal.css, single_pages/dashboard/store/orders.php, single_pages/dashboard/store, single_pages/dashboard

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
nginx/1.10.3

# Server API
fpm-fcgi

# PHP Version
7.0.27-0+deb9u1

# PHP Extensions
apc, apcu, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xdebug, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 20M
sql.safe_mode - Off
upload_max_filesize - 20M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
xdebug.max_nesting_level - 256
xdebug.max_stack_frames - -1
xdebug.var_display_max_children - -1
xdebug.var_display_max_data - -1
xdebug.var_display_max_depth - -1
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3450.0 Iron Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.