Title: JS error
Last modified: November 3, 2020

---

# JS error

 *  [mitgiselle](https://wordpress.org/support/users/mitgiselle/)
 * (@mitgiselle)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/js-error-115/)
 * When logged in as admin I’ve got the JS error (on public pages):
 * **Uncaught TypeError: Cannot read property ‘length’ of undefined**
    File: enable-
   jquery-migrate-helper/js/deprecation-notice.js line 119: `if (warnings.length){`
 * Fixed by:
    `if (warnings && warnings.length ) {`
    -  This topic was modified 5 years, 7 months ago by [mitgiselle](https://wordpress.org/support/users/mitgiselle/).
    -  This topic was modified 5 years, 7 months ago by [mitgiselle](https://wordpress.org/support/users/mitgiselle/).

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

 *  [getbsm](https://wordpress.org/support/users/getbsm/)
 * (@getbsm)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/js-error-115/#post-13615870)
 * I get the same
 *  [sebmeric](https://wordpress.org/support/users/sebmeric/)
 * (@sebmeric)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13654498)
 * same here too…
 *  Plugin Author [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13664219)
 * Hmm, that’s odd, it should be there regardless, do you use some kind of asset
   caches (for example plugins to minify JavaScript and/or CSS) or similar?
 * This notice would show up if the Migrate script has not been loaded yet, but 
   it is defined as a dependency so it should always exist by the time this plugins
   code runs 🤔
 * (We could add that check to it to prevent errors, but it would also be good to
   understand the underlying reason for why the data is missing)
 *  [bshhun](https://wordpress.org/support/users/bshhun/)
 * (@bshhun)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13667348)
 * I get the same, no caching, minifying plugin.
 *  [shreyagokani](https://wordpress.org/support/users/shreyagokani/)
 * (@shreyagokani)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13679543)
 * Is there any solution for this? I can’t enable this plugin on my site because
   of the error and wpbakery page builder is not loading without it.
    if (warnings&&
   warnings.length ) { This didn’t work.
 *  [inovagora](https://wordpress.org/support/users/inovagora/)
 * (@inovagora)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13681598)
 * Hello,
    Same problem here, this is stopping JS execution and interfering with
   other functionalities (in my case Gravity Forms forms don’t show up anymore on
   frontend when i’m connected as admin). Can you please fix with the OP solution?
   Thank you

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

The topic ‘JS error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/enable-jquery-migrate-helper.svg)
 * [Enable jQuery Migrate Helper](https://wordpress.org/plugins/enable-jquery-migrate-helper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-jquery-migrate-helper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/reviews/)

 * 6 replies
 * 7 participants
 * Last reply from: [inovagora](https://wordpress.org/support/users/inovagora/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/js-error-115/#post-13681598)
 * Status: not resolved