Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Syntax error, unrecognized expression #206

Open
pboguslawski opened this issue Apr 30, 2024 · 6 comments
Open

Uncaught Error: Syntax error, unrecognized expression #206

pboguslawski opened this issue Apr 30, 2024 · 6 comments

Comments

@pboguslawski
Copy link

Create modular home page with features module and set Title to Możliwości in features module and publish it in menu (enable Visible).
See JS error on console on home page refresh

Uncaught Error: Syntax error, unrecognized expression: #mo%EF%BF%BD-liwo%EF%BF%BD-ci
    at Function.se.error (jquery-3.x.min.js:2)
    at se.tokenize (jquery-3.x.min.js:2)
    at se.select (jquery-3.x.min.js:2)
    at Function.se [as find] (jquery-3.x.min.js:2)
    at S.fn.init.find (jquery-3.x.min.js:2)
    at new S.fn.init (jquery-3.x.min.js:2)
    at S (jquery-3.x.min.js:2)
    at Object.getCurrentSection (singlepagenav.min.js:8)
    at Object.checkPosition (singlepagenav.min.js:8)
    at Object.init (singlepagenav.min.js:8)

Anchor text looks ugly too:
https://my.seerver/#mo%EF%BF%BD-liwo%EF%BF%BD-ci

Same problem if Menu is set to Możliwości in features module.

Checked in grav 1.7.45 + quark theme 2.0.4.

@pboguslawski pboguslawski changed the title Broken anchor Uncaught Error: Syntax error, unrecognized expression Apr 30, 2024
@rhukster
Copy link
Member

Sounds like an anchors plugin issue. Not core grav?

@pboguslawski
Copy link
Author

Checked with all plugins disabled and cache cleared (only Admin Panel plugin enabled).

@rhukster
Copy link
Member

Not sure what’s generating anchors then. And what would be using jquery for anchors? Try disabling debugger if enabled, it uses jquery.

@pboguslawski
Copy link
Author

Debugger is not enabled & page source contains JS resources:

<script src="/system/assets/jquery/jquery-3.x.min.js"></script>
<script src="/user/themes/quark/js/singlepagenav.min.js"></script>

@pboguslawski
Copy link
Author

@rhukster
Copy link
Member

Ok quark issue. It’s that on page nav menu script.

@rhukster rhukster transferred this issue from getgrav/grav Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants