• Resolved ryvix

    (@rrhode)


    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)
  • 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

    (@figureone)

    Plugin Author Paul Ryan

    (@figureone)

    Please test version 3.2.2, just released.

    Tested and passes. Thanks!

    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> (https://example.com/wp-content/plugins/insert-pages/js/wpinsertpages_plugin.js?wp-mce-4603-20170530:44:13)
        at k (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11590)
        at Array.<anonymous> (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11747)
        at Object.b [as each] (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:2:29317)
        at l (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:11679)
        at Object.q [as init] (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:14693)
        at o.<anonymous> (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:13:16159)
        at Array.<anonymous> (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:27194)
        at b (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:2:29317)
        at r (https://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) (https://example.com/wp-includes/js/tinymce/tinymce.min.js?ver=4603-20170530:4:27075)
        at HTMLScriptElement.f (https://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

    (@figureone)

    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.