Dear Support,
I have errors in Develop inspection:
TypeError: undefined is not an object (evaluating ‘b.querySelectorAll’)
ReferenceError: Can’t find variable: tdWeather
site: https://nook.rs
Do you know what is problem?
Thank you!
-
This topic was modified 2 years by
platamun47.
Hello,
Indeed this query appears to be related top the weather element from the theme panel – https://i.imgur.com/pzblCI7.png I made some tests on my install and I do not get that error message, so it is possible to be related to an extra plugin that you are using or maybe to some optimizations for JavaScript. Please check when you are logged in and no cache and optimization is apply, if the problem is not persisting, then please check the settings from the optimization/cache plugin.
Thank you!
Dear Calin,
Thank you for your message.
I have same problem when I logged like admin without cache of page.
[Error] TypeError: undefined is not an object (evaluating ‘b.querySelectorAll’)
ai_process_rotations_in_element (nook.rs:3062:222)
(anonymous function) (nook.rs:3107:496)
ai_process_rotations_in_element = function(b) {
b.querySelectorAll("div.ai-rotate").forEach((d, e) => {
ai_process_rotation(d)
})
};
"function" == typeof ai_process_rotations_in_element && ai_process_rotations_in_element(b);
Thank you in advance.
Hi,
The above code is related to an extra plugin and if I’m right is an AI plugin. The error was also present in the screenshot from the first reply – https://i.imgur.com/ZP8fTHe.png were the question was related to ReferenceError: Can’t find variable: tdWeather.
Thank you!
Dear Calin,
I do not have extra AI plugin…
What is AI plugin?
I think this code is part of theme Newspaper…
Hi,
Our theme do not have that kind of code and functions, so the code must by added by an extra plugin. I see that there is a class div.ai-rotate so it can be from an ads plugin like “ADINSERTER ROTATE” or “Ad Inserter” please check all the plugins you are using.
Also, if you have some extra code added in the theme panel, please check that too!
Thank you!
Dear Calin,
Thank you! I will ask support of AdInserter Plugin.
Pleas tell me about problem with next code
ReferenceError: Can’t find variable: tdWeather
Thank in advance
Hi,
The “ReferenceError: Can’t find variable: tdWeather” is related to the weather element from the website and I see that the js code is set to be Deferred, can you do a test when you are logged in and the cache options are not apply if the mentioned error still appears? If not, then please exclude the “tdWeather.js” file from cache settings.
Thank you!
Dear Calin,
I exclude tdWeather.js in WpRocker plugin.
Errors has gone. All ok.
Thank you!