Topic: Problems in the FSS and LightBox

RoffDaniel pro asked 3 years ago


Hi, everybody. I have a problem with the gallery when using FS, climbs some JS error. Seems like yesterday(yesterday I have this page written), everything worked, but today here is a picture. Please tell me how to fix? Thanks in advance!

jquery-3.4.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: div[fss-anchor=main-settings&gid=null&pid=1], section[fss-anchor=main-settings&gid=null&pid=1], article[fss-anchor=main-settings&gid=null&pid=1]
at Function.se.error (jquery-3.4.1.min.js:2)
at se.tokenize (jquery-3.4.1.min.js:2)
at se.select (jquery-3.4.1.min.js:2)
at Function.se [as find] (jquery-3.4.1.min.js:2)
at k.fn.init.find (jquery-3.4.1.min.js:2)
at new k.fn.init (jquery-3.4.1.min.js:2)
at k (jquery-3.4.1.min.js:2)
at Object.getFromCache [as get] (mdb-fsscroller.js:324)
at getCurrBagNbr (mdb-fsscroller.js:483)
at HTMLDocument.onKeyDown (mdb-fsscroller.js:1320)

jquery-3.4.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: div[fss-anchor=lectures&gid=null&pid=1], section[fss-anchor=lectures&gid=null&pid=1], article[fss-anchor=lectures&gid=null&pid=1]
at Function.se.error (jquery-3.4.1.min.js:2)
at se.tokenize (jquery-3.4.1.min.js:2)
at se.select (jquery-3.4.1.min.js:2)
at Function.se [as find] (jquery-3.4.1.min.js:2)
at k.fn.init.find (jquery-3.4.1.min.js:2)
at new k.fn.init (jquery-3.4.1.min.js:2)
at k (jquery-3.4.1.min.js:2)
at Object.getFromCache [as get] (mdb-fsscroller.js:324)
at getCurrBagNbr (mdb-fsscroller.js:483)
at HTMLDocument.onKeyDown (mdb-fsscroller.js:1320)

Uncaught Error: Syntax error, unrecognized expression: div[fss-anchor=chat&gid=null&pid=1], section[fss-anchor=chat&gid=null&pid=1], article[fss-anchor=chat&gid=null&pid=1]
at Function.se.error (jquery-3.4.1.min.js:2)
at se.tokenize (jquery-3.4.1.min.js:2)
at se.select (jquery-3.4.1.min.js:2)
at Function.se [as find] (jquery-3.4.1.min.js:2)
at k.fn.init.find (jquery-3.4.1.min.js:2)
at new k.fn.init (jquery-3.4.1.min.js:2)
at k (jquery-3.4.1.min.js:2)
at Object.getFromCache [as get] (mdb-fsscroller.js:324)
at getCurrBagNbr (mdb-fsscroller.js:483)
at HTMLDocument.onKeyDown (mdb-fsscroller.js:1320)

jquery-3.4.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: div[fss-anchor=piemenu&gid=null&pid=1], section[fss-anchor=piemenu&gid=null&pid=1], article[fss-anchor=piemenu&gid=null&pid=1]
at Function.se.error (jquery-3.4.1.min.js:2)
at se.tokenize (jquery-3.4.1.min.js:2)
at se.select (jquery-3.4.1.min.js:2)
at Function.se [as find] (jquery-3.4.1.min.js:2)
at k.fn.init.find (jquery-3.4.1.min.js:2)
at new k.fn.init (jquery-3.4.1.min.js:2)
at k (jquery-3.4.1.min.js:2)
at Object.getFromCache [as get] (mdb-fsscroller.js:324)
at getCurrBagNbr (mdb-fsscroller.js:483)
at HTMLDocument.onKeyDown (mdb-fsscroller.js:1320)

This page in internet: https://govhelper.portfolio.roffdaniel.com/


RoffDaniel pro answered 3 years ago


I probably figured out what the problem is. Because I have each photo, it's a separate gallery, but I have null gid. How can I ask it??


Piotr Glejzer staff commented 3 years ago

Can you show me code about that problem? I can't help if you will show me only error. You can use our snippets to do this. Thanks.
https://mdbootstrap.com/snippets/


RoffDaniel pro commented 3 years ago

I can't get rid of the error code anymore, because I magically fixed it. But I can say in words. For as long as my page consists of slides, and there their pieces 8+, then of course I use a plugin called FSS. The mistake was how much I realized I was using the mdb-lightbox class in each slide separately.


RoffDaniel pro commented 3 years ago

But I was wondering. I have gid constantly null, you have in documentation each gallery has its id, as his ask?


Piotr Glejzer staff commented 3 years ago

I think there is probably a problem with events when a file has more images. And I don't understand your question. We using data 'fss-anchor' to attach events.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.8
  • Device: Windows
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes