Title: Gravity Forms: Error Message: Failed to initialize plugin: wpInsertPages
Last modified: February 26, 2025

---

# Gravity Forms: Error Message: Failed to initialize plugin: wpInsertPages

 *  [henrikki](https://wordpress.org/support/users/henrikki/)
 * (@henrikki)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/)
 * I have the same issue as mentioned by @[pmascis](https://wordpress.org/support/users/pmascis/)
   3 years ago
   [https://wordpress.org/support/topic/error-message-failed-to-initialize-plugin-wpinsertpages/](https://wordpress.org/support/topic/error-message-failed-to-initialize-plugin-wpinsertpages/)
 * I’m seeing an error message displayed ‘Failed to initialize plugin: wpInsertPages’.
   
   When using the plugin ‘Gravity Forms’.
 * This is only on specific pages within Gravity Forms.
   Forms > Settings > ConfirmationsForms
   > Setting > NotoficationsSo pages, where TINYMCE is loadedExample/wp-admin/admin.
   php?subview=notification&page=gf_edit_forms&id=1&view=settings&nid=<….>Using 
   latest Gravity Forms and latest InsertPagesAny solutions on that?It would be 
   OK for me to get a hit, how to deactivate InsertPages in GravityForms backend.

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

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18331100)
 * Thanks, we’ll take a look and see if we can reproduce!
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18331435)
 * We are not able to reproduce the issue. Do you have the Classic Editor plugin
   installed? Can you see if you can reproduce the error using one of the core themes(
   twentytwenty*)? What theme are you using?
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18331437)
 * One other thing to try: in Insert Pages settings, try setting the “TinyMCE filter”
   option to compatibility mode and see if that makes a difference.
 * You can also try just commenting out the filter hooks that register the TinyMCE
   plugin for Insert Pages: [https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L311-L312](https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L311-L312)
 *  Thread Starter [henrikki](https://wordpress.org/support/users/henrikki/)
 * (@henrikki)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18331494)
 * Thank for your work on this. Of course I am in compatibility mode. We are running
   on LiveCanvas but having the same issue with other themes.
   for now I commentedpublic
   function insert_pages_handle_filter_mce_external_plugins( $plugins ) {if ( self::
   $is_admin_initialized && ! array_key_exists( ‘wpInsertPages’, $plugins ) ) {$
   plugins[‘wpInsertPages’] = plugins_url( ‘/js/wpinsertpages_plugin.js’, **FILE**);}
   return $plugins;}Problem seems to be:
 *     ```wp-block-code
           wp-tinymce.js?ver=49110-20201110:3 Failed to initialize plugin: wpInsertPages ReferenceError: wpInsertPagesL10n is not defined
       at new <anonymous> (wpinsertpages_plugin…9110-20201110:44:13)
       at Ew (wp-tinymce.js?ver=49…0-20201110:3:330473)
       at Array.<anonymous> (wp-tinymce.js?ver=49…0-20201110:3:332223)
       at Object.jt [as each] (wp-tinymce.js?ver=49110-20201110:3:29356)
       at Aw (wp-tinymce.js?ver=49…0-20201110:3:332173)
       at tN.<anonymous> (wp-tinymce.js?ver=49…0-20201110:3:333551)
       at Array.<anonymous> (wp-tinymce.js?ver=49110-20201110:3:96969)
       at jt (wp-tinymce.js?ver=49110-20201110:3:29356)
       at u (wp-tinymce.js?ver=49110-20201110:3:96914)
       at n (wp-tinymce.js?ver=49110-20201110:3:96402)
       ```
   
 * I will investigate as soon I have got some spare time.
   Cheers
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18333229)
 * Edit: just re-read your comment; the part you commented out looks better than
   the suggestion below!
 * Sounds good. If you’re already in tinymce compatibility mode, there’s a different
   place in the codebase where the Insert Pages tinymce plugin gets added, so you
   should comment that out also to disable the plugin: [https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L1868-L1869](https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L1868-L1869)
    -  This reply was modified 1 year, 3 months ago by [Paul Ryan](https://wordpress.org/support/users/figureone/).
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18333241)
 * Also thanks for the detailed error message. I think the change below should fix
   the issue, can you try manually applying that in your environment (and uncomment
   the code where you disabled the tinymce plugin) and see if that addresses the
   issue? If so I’ll get a new version of the plugin released with the fix: [https://github.com/uhm-coe/insert-pages/commit/137fe692d8f7066cf8dff9ccdf384c04b74c5372](https://github.com/uhm-coe/insert-pages/commit/137fe692d8f7066cf8dff9ccdf384c04b74c5372)

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

The topic ‘Gravity Forms: Error Message: Failed to initialize plugin: wpInsertPages’
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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/gravity-forms-error-message-failed-to-initialize-plugin-wpinsertpages/#post-18333241)
 * Status: not resolved