Title: Uncaught ReferenceError: wpInsertPagesL10n is not defined
Last modified: April 21, 2017

---

# Uncaught ReferenceError: wpInsertPagesL10n is not defined

 *  Resolved [Ryan](https://wordpress.org/support/users/rrhode/)
 * (@rrhode)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/)
 * Hello there,
 * I added an ACF form to the frontend of the site and now on that page I’m getting
   this javascript error which seems to be caused by this Insert Pages plugin and
   not having the proper things initialized for frontend since it’s probably expected
   to only work in the admin:
 *     ```
       Uncaught ReferenceError: wpInsertPagesL10n is not defined
           at new <anonymous> (https://example.com/wp-content/plugins/insert-pages/js/wpinsertpages_plugin.js?wp-mce-4506-20170408:44:13)
           at Array.e (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:11:26858)
           at n (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:3:1533)
           at L.init (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:11:27411)
           at L.<anonymous> (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:11:25336)
           at Array.<anonymous> (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:4:11775)
           at n (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:3:1533)
           at v (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:4:11722)
           at c.(anonymous function).c.(anonymous function).c.(anonymous function).c.(anonymous function) (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:4:11656)
           at HTMLScriptElement.o (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4506-20170408:4:10514)
       ```
   
 * Any idea how to fix that?
 * Thank you!

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

 *  [heydluv](https://wordpress.org/support/users/heydluv/)
 * (@heydluv)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9062923)
 * I was seeing the same js error! So, I removed lines 816 through 821 in insert-
   pages.php and it fixed the issue.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9063599)
 * Sorry about that, the most recent plugin update caused that problem. It’ll get
   fixed in the next version, due out soon!
 * [https://wordpress.org/support/topic/visual-editor-not-working-105/#post-9062895](https://wordpress.org/support/topic/visual-editor-not-working-105/#post-9062895)
   
   [https://wordpress.org/support/topic/button-in-the-toolbar-of-tinymce-disappear-conflict-page-builder/#post-8989632](https://wordpress.org/support/topic/button-in-the-toolbar-of-tinymce-disappear-conflict-page-builder/#post-8989632)
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9063632)
 * Please test version 3.2.2, just released.
 *  [heydluv](https://wordpress.org/support/users/heydluv/)
 * (@heydluv)
 * [9 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9063658)
 * Tested and passes. Thanks!
 *  [Nick Brombal](https://wordpress.org/support/users/nbrombal/)
 * (@nbrombal)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9436018)
 * Sorry to dredge up an old topic on you, but I found this post while searching
   for this same error message and figured I’d keep it contained here if possible.
   I can open a new thread if that’s more helpful.
 * I’m running into this issue specifically with the Gravity Forms plugin. When 
   I go to edit a confirmation, TinyMCE fails to load, and the console spits out
   the error as described. If I switch to the Text tab and reload the page, it’ll
   load up fine, but I can’t ever switch to the Visual tab or the error crops up
   and TinyMCE freezes.
 * Here’s the entire error, in case the stacktrace is useful:
 *     ```
       Uncaught ReferenceError: wpInsertPagesL10n is not defined
           at new <anonymous> (http://example.com/wp-content/plugins/insert-pages/js/wpinsertpages_plugin.js?wp-mce-4603-20170530:44:13)
           at k (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11590)
           at Array.<anonymous> (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11747)
           at Object.b [as each] (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:2:29317)
           at l (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11679)
           at Object.q [as init] (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:14693)
           at o.<anonymous> (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:16159)
           at Array.<anonymous> (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:27194)
           at b (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:2:29317)
           at r (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:27141)
           at l.(anonymous function).l.(anonymous function).l.(anonymous function).l.(anonymous function) (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:27075)
           at HTMLScriptElement.f (http://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:25933)
       ```
   
 * Appreciate your hard work on the plugin, and thanks for any help you can give
   me!
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9487513)
 * Interesting, it’s probably a conflict with Gravity Forms. Can you try setting
   the “TinyMCE filter” option in Dashboard > Settings > Insert Pages to “compatibility”
   mode and see if that fixes it?
 * It’s probably just that the Insert Pages javascript isn’t being loaded (because
   the plugin tries to only load it when editing pages, and Gravity Forms loads 
   a page edit environment in a place that Insert Pages isn’t expecting).

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

The topic ‘Uncaught ReferenceError: wpInsertPagesL10n is not defined’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/insert-pages.svg)
 * [Insert Pages](https://wordpress.org/plugins/insert-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-pages/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-wpinsertpagesl10n-is-not-defined/#post-9487513)
 * Status: resolved