StickyBar Uncaught Error: Syntax error

Please post any support questions here. Guest posting is allowed
IgorCher
Posts: 9
Joined: Sun Dec 19, 2021 1:00 pm

StickyBar Uncaught Error: Syntax error

Post by IgorCher »

Good day! Thanks for the great extension!

But the sad thing is that it leads to errors (And on this forum too):

Code: Select all

Uncaught Error: Syntax error, unrecognized expression: #
    at Function.se.error (jquery-3.6.0.min.js?assets_version=748:2)
    at se.tokenize (jquery-3.6.0.min.js?assets_version=748:2)
    at se.select (jquery-3.6.0.min.js?assets_version=748:2)
    at Function.se [as find] (jquery-3.6.0.min.js?assets_version=748:2)
    at S.fn.init.find (jquery-3.6.0.min.js?assets_version=748:2)
    at new S.fn.init (jquery-3.6.0.min.js?assets_version=748:2)
    at S (jquery-3.6.0.min.js?assets_version=748:2)
    at stickybar_goto.js?assets_version=748:3
    at stickybar_goto.js?assets_version=748:11
Is there a way to fix the problem?

Thanks again (and sorry for the bad english)!
Administrator
Site Admin
Posts: 683
Joined: Tue Nov 18, 2014 11:30 am

Re: StickyBar Uncaught Error: Syntax error

Post by Administrator »

I have done a little investigating and it appears that it is the JaveScript that ensures that the Header Bar doe not obscure the top of the post that i causing the issue. I am no JS expert but I will try to see if I can solve the issue. In the meantime if you want to remove the error you can do so by deleting one line of code

OPEN

ext/hifikabin/stickybar/styles/prosilver/template/js/overall_header_head_append.html

DELETE

Code: Select all

{% INCLUDEJS '@hifikabin_stickybar/js/stickybar_goto.js' %}
SAVE > UPLOAD > PURGE BOARDS CACHE
IgorCher
Posts: 9
Joined: Sun Dec 19, 2021 1:00 pm

Re: StickyBar Uncaught Error: Syntax error

Post by IgorCher »

Yes it worked! Thanks are on the way (paypal)! :) Thank you!


But stopped working ext Dark Mode :( To change day and night, you need to reload the page. I will wait for a solution to the problem :)
Administrator
Site Admin
Posts: 683
Joined: Tue Nov 18, 2014 11:30 am

Re: StickyBar Uncaught Error: Syntax error

Post by Administrator »

Thanks for the donation.

Re the Dark Mode extension, I have never tried it with that extension. My first suggestion would be to purge the cache again and purge your browsers cache.

If that doesn't work disable and re enable Dark Mode.

If that doesn't work let me know and I will experiment tomorrow
IgorCher
Posts: 9
Joined: Sun Dec 19, 2021 1:00 pm

Re: StickyBar Uncaught Error: Syntax error

Post by IgorCher »

I followed your recommendations, but the problem persists.

Code: Select all

https://www.phpbb.com/customise/db/extension/darkmode/
My forum is running on phpbb 3.3.5 prosilver, php 7.4.14.

Many thanks! I am not asking for an urgent answer. When there is time for it.
Administrator
Site Admin
Posts: 683
Joined: Tue Nov 18, 2014 11:30 am

Re: StickyBar Uncaught Error: Syntax error

Post by Administrator »

IgorCher wrote: Sun Dec 19, 2021 6:22 pm Yes it worked! Thanks are on the way (paypal)! :) Thank you!


But stopped working ext Dark Mode :( To change day and night, you need to reload the page. I will wait for a solution to the problem :)
I have done some experiments and can replicate your findings exactly.

What it happening is the JavaScript that controls the dark/light also changes the state of the switch on the navbar header. As the Sticky Header extension effectively duplicates the navbar header it confuses the Dark style switch position. (which is also why the Sticky Navbar does not appear in Dark Style)

The short answer is that I can not see of any way to resolve the conflict other than to remove the light/dark switch extension and to install a dark style which users can select in the UCP
IgorCher
Posts: 9
Joined: Sun Dec 19, 2021 1:00 pm

Re: StickyBar Uncaught Error: Syntax error

Post by IgorCher »

Unfortunately, there was an effect on chat (mChat) too - the sound menu stopped working.

Is there another extension like yours?

Your extension is perfect for me, and I'm sorry to want to abandon it :((
Administrator
Site Admin
Posts: 683
Joined: Tue Nov 18, 2014 11:30 am

Re: StickyBar Uncaught Error: Syntax error

Post by Administrator »

There is [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB which is totally different but does offer a customisable fixed header.

Sorry that I can not help further.
IgorCher
Posts: 9
Joined: Sun Dec 19, 2021 1:00 pm

Re: StickyBar Uncaught Error: Syntax error

Post by IgorCher »

Nevertheless thank you! :D