Hello ! $w(‘#wixChat1’) appears as ‘not a valid selector’ on my code since Corvid last update. I tried to change the ID and use the selector on the masterPage but none work. It used to work before the last Corvid update. If someone can help that would be great, thanks a lot in advance !
Please post the URL of your site.
Yes here it is : https://www.pollenmessenger.com
Thanks
I looked at your site and don’t see where you have the chat.
I see on your masterpage code that you have multiple onReady() event handlers. It is recommended to put put all of the code needed in only one onReady() function. Having multiple onReady() functions might result in unpredictable results as the order of execution can’t be guaranteed.
You have an incorrect Javascript logical operator in your if statements in the masterpage.js file:
You have:
if(windowWidth < 1600 & wixWindow.formFactor === "Desktop"){
It should be:
if(windowWidth < 1600 && wixWindow.formFactor === "Desktop"){
I also see that on many other pages you have various issues:
-
Incorrect Javascript logical operator.
-
Multiple onReady() functions
-
Import statements need to be at the very top of the file.
I would suggest reviewing the Coding With Corvid documentation.
Hello Yisrael, thank you very much for your help. I will correct following your instructions. As for the Chat, it shows only on subpages, intentionally. I added buttons on some pages that expand the Chat on click but it says the selector is not valid although it is the correct ID. I noticed the expand on click actually works online from time to time though.
I have the same trouble ‘not a valid selector’ since November, any Wix update caused this error?