• Hi,

    There is an issue with the formstack plugin when using Advanced Custom Fields within a WordPress site. Advanced Custom Fields is a very widely used page builder tool so we’d assume this issue comes up a lot.

    When using the Advanced Custom Fields WYSIWYG editor field, the formstack plugin throws an error message. This only occurs on special pages (options, author pages, menu pages) – sections in WordPress that wouldn’t typically have WYSIWYG editor fields present.

    We’ve developed a fix to at least not throw the large red error banners, but ideally the plugin would work in those locations as well.

    The user displayed error is:
    Failed to initialize plugin: Formstack.

    The JS error that is shown in the console is:
    Failed to initialize plugin: formstack ReferenceError: formstack_tinymce is not defined

    We have implemented a fix on our version of the plugin which is to this file:
    /wp-content/plugins/formstack/tinymce/plugin.js

    The fix is to add this code after line 2 in that JS file:
    if (typeof formstack_tinymce == ‘undefined’) {
    return;
    }

    Often when the formstack plugin is updated it overwrites our changes so it would be great if you would consider updating the plugin.

    Thanks for your help!!

    Joe

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    At least on the surface, it sounds like a case of, for some reason, TinyMCE in general isn’t available, and thus the rest of our js loading is failing. I haven’t seen the issue at all, but I also likely don’t see majority of general support that Formstack handles.

    Do you know much, if anything, about your browser developer tools? I’m curious if the script files in question are being loaded at all.

    I’m Also getting this error. It shows up on Options Pages, and the media upload (upload.php) page.

    The error shows up twice on an options page if a WYSIWYG editor is present on it as well.

    I’m getting “formstack_tinymce is not defined” in the console.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Same general questions for you @cb3008. Do you know much, if anything, about your browser developer tools? Still curious if the script files in question are being loaded at all.

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

The topic ‘Formstack JavaScript Error’ is closed to new replies.