Title: Previewing pages when logged in doesn&#8217;t work: Javascript TypeError
Last modified: October 14, 2025

---

# Previewing pages when logged in doesn’t work: Javascript TypeError

 *  Resolved [radgh](https://wordpress.org/support/users/radgh/)
 * (@radgh)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/previewing-pages-when-logged-in-doesnt-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
 *     ```wp-block-code
       jquery.min.js?ver=3.7.1:2jQuery.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
 *     ```wp-block-code
       jquery.min.js?ver=3.7.1:2Uncaught 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:
 *     ```wp-block-code
       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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpreviewing-pages-when-logged-in-doesnt-work-javascript-typeerror%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/previewing-pages-when-logged-in-doesnt-work-javascript-typeerror/#post-18688805)
 * Hi [@radgh](https://wordpress.org/support/users/radgh/), 
 * I’ve checked the page URL you provided and it seems that you have Elementor Pro.
   Since you are an Elementor Pro user, you can open a support ticket at [my.elementor.com](https://my.elementor.com/)
 * ref: [https://elementor.com/help/how-to-submit-a-support-ticket/](https://elementor.com/help/how-to-submit-a-support-ticket/)
 * I’d also suggest you check out Elementor Community Group on Facebook. We have
   created it to connect Elementor users together and share knowledge, [Global Elementor Community](https://www.facebook.com/groups/Elementors).
 * [WordPress.org](https://wordpress.org/) rules state that commercial products 
   are not supported here.
 * Kind regards,
 *  Thread Starter [radgh](https://wordpress.org/support/users/radgh/)
 * (@radgh)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/previewing-pages-when-logged-in-doesnt-work-javascript-typeerror/#post-18689899)
 * I am not the license holder. Also the problem persists if the pro plugin is disabled.
 *  Plugin Support [Rica](https://wordpress.org/support/users/ricav/)
 * (@ricav)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/previewing-pages-when-logged-in-doesnt-work-javascript-typeerror/#post-18707353)
 * Hi [@radgh](https://wordpress.org/support/users/radgh/),
 * Upon checking the website, it appears that it’s using **Elementor Pro**, which
   requires an active license.
 * Since your site is running Elementor Pro, please reach out to our **support team**
   through your Elementor account. They’ll be able to securely investigate the issue
   on the backend, something we’re unable to do here in the forum.
 * You can contact them by logging in to your Elementor account and navigating to**
   Support → Contact Support**.
 * Thank you for your understanding!
 * Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Previewing pages when logged in doesn’t work: Javascript TypeError’ is
closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rica](https://wordpress.org/support/users/ricav/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/previewing-pages-when-logged-in-doesnt-work-javascript-typeerror/#post-18707353)
 * Status: resolved