Previewing pages when logged in doesn’t work: Javascript TypeError
-
We recently finished launching a site only to find out that when you preview the page as an administrator, the page doesn’t finish loading. To be specific the page loads but the animations don’t play, so most of the page content remains invisible because it is supposed to animate in.
Note that the site works if logged out, and the Elementor page builder still works. However visiting a page while logged in is having a problem and does not display page content correctly if it normally uses an animation to become visible.
We have Elementor Pro, but the problem persists even if it is deactivated. The problem persists in Twenty Twenty-Five and the Twenty Twenty-Four theme. We have no child theme customizations. And the problem exists even if Elementor is the only plugin active.
With only Elementor v3.32.4 active, the javascript console shows a warning followed by an error. I believe these errors are causing the animations not to run.
#1 – The warning
jquery.min.js?ver=3.7.1:2
jQuery.Deferred exception: Cannot read properties of undefined (reading 'tools') TypeError: Cannot read properties of undefined (reading 'tools')
at Frontend.initOnReadyComponents (/wp-content/plugins/elementor/assets/js/frontend.min.js?ver=3.32.4:2:23141)
at Frontend.init (/wp-content/plugins/elementor/assets/js/frontend.min.js?ver=3.32.4:2:25037)
at HTMLDocument.<anonymous> (/wp-content/plugins/elementor/assets/js/frontend.min.js?ver=3.32.4:2:25262)
at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined#2 – The error
jquery.min.js?ver=3.7.1:2
Uncaught TypeError: Cannot read properties of undefined (reading 'tools')
at Frontend.initOnReadyComponents (frontend.min.js?ver=3.32.4:2:23141)
at Frontend.init (frontend.min.js?ver=3.32.4:2:25037)
at HTMLDocument. (frontend.min.js?ver=3.32.4:2:25262)
at e (jquery.min.js?ver=3.7.1:2:27028)
at t (jquery.min.js?ver=3.7.1:2:27330)Both warning and error point to this line about “tools” being undefined in frontend.min.js:
this.modules = {
StretchElement: elementorModules.frontend.tools.StretchElement, <-- ERROR, Cannot read properties of undefined (reading 'tools')
Masonry: elementorModules.utils.Masonry
},I’m not sure what else to do to investigate this and I’m not sure if this was happening before launch.
Any ideas?
The page I need help with: [log in to see the link]
The topic ‘Previewing pages when logged in doesn’t work: Javascript TypeError’ is closed to new replies.