• Resolved Kip Kniskern

    (@kip-kniskern)


    I updated to Slide Anything 2.3.22 today, and am now receiving a pair of error messages in our (classic WordPress) post editor: “Failed to initialize plugin: tiny_mce_button.”
    I ran a quick browser inspect on the code, and it shows this:
    wp-tinymce.js?ver=49100-20200624:3 Failed to initialize plugin: tinymce_button ReferenceError: sa_title_arr is not defined
    at new <anonymous> (add_tinymce_button.js?wp-mce-49100-20200624:10)
    at Ew (wp-tinymce.js?ver=49100-20200624:3)
    at Array.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at Object.jt [as each] (wp-tinymce.js?ver=49100-20200624:3)
    at Aw (wp-tinymce.js?ver=49100-20200624:3)
    at tN.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at Array.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at jt (wp-tinymce.js?ver=49100-20200624:3)
    at u (wp-tinymce.js?ver=49100-20200624:3)
    at n (wp-tinymce.js?ver=49100-20200624:3)
    wh @ wp-tinymce.js?ver=49100-20200624:3
    2wp-tinymce.js?ver=49100-20200624:3 Failed to initialize plugin: tinymce_button ReferenceError: sa_title_arr is not defined
    at new <anonymous> (add_tinymce_button.js?wp-mce-49100-20200624:10)
    at Ew (wp-tinymce.js?ver=49100-20200624:3)
    at Array.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at Object.jt [as each] (wp-tinymce.js?ver=49100-20200624:3)
    at Aw (wp-tinymce.js?ver=49100-20200624:3)
    at tN.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at Array.<anonymous> (wp-tinymce.js?ver=49100-20200624:3)
    at jt (wp-tinymce.js?ver=49100-20200624:3)
    at u (wp-tinymce.js?ver=49100-20200624:3)
    at Ri.loadScripts (wp-tinymce.js?ver=49100-20200624:3)

    Is a fix incoming?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Am also receiving this error. Any Fix?

    Plugin Author simonpedge

    (@simonpedge)

    There were a few JS errors with WP version 5.5 apparently, which have been fixed in 5.5.1. So try updating to the latest version of WordPress to see if this resolves the issue?

    I also am getting this error message although my mine reads “Failed to initialize plugin: tinymce_button” versus the “tiny_mce_button” shown above and I am updated to WP version 5.5.1.

    In my plugins, it was noted that my Advanced Editor Tools plugin was previously called TinyMCE Advanced so for grins I tried deactivating/deleting/reinstalling that one to see if it got rid of the error message.

    It didn’t.

    Plugin Author simonpedge

    (@simonpedge)

    Ok, to identify if another plugin is causing a clash with Slide Anything on your site, you need to:
    – (temporarily) Deactivate all plugins, except Slide Anything, and then test to see if this error has been resolved
    – if this ‘tiny_mce_button’ error disappears then its a plugin conflict, and then you need to activate plugins one-by-one (testing in-between each activation) until we can identify the plugin which is clashing with Slide Anything.
    Once we know this plugin, we can take it from there.

    Thread Starter Kip Kniskern

    (@kip-kniskern)

    While I’m unable to deactivate all my plugins on our live site, as it would break the site for our readers, I was able to back up the site and restore it to a local instance of WordPress (using Desktop Server).
    After a bit of setup, I got the site running, and in opening a new post, received the same error: “Failed to initialize plugin: tinymce_button”
    I then deactivated all plugins except Slide Anything (We use Slide Anything Pro, but I still get the error with it deactivated).
    The error does not appear in the Gutenberg Editor, however we use the Classic Editor plugin from WordPress (https://github.com/WordPress/classic-editor/). I activated that, and the error then appeared. Again, this is a copy of our live site on a local server, running WordPress 5.5.1, with only the Classic Editor and Slide Anything plugins activated.
    On our live site, we have reverted to Slide Anything version 2.3.21, where the error does not occur. All subsequent plugin revisions up to and including 2.3.26 do throw the error however.
    Hope this helps.

    Thread Starter Kip Kniskern

    (@kip-kniskern)

    Pinging @simonpedge just in case this missed you ^^

    Plugin Author simonpedge

    (@simonpedge)

    Hmmm, a bit tough because I cannot replicate the error my side…

    BUT, I think it has to do with the TinyMCE button added to the classic editor that allows you to insert Slide Anything shortcodes into your post or page content – see:
    https://i.imgur.com/KQAfOq5.png

    To test this out for me, could you please upload the latest version of SA, and then edit the following file:
    /wp-content/plugins/slide-anything/slide-anything.php
    And then comment out lines 30 and 31, so these 2 lines will now look like:

    // add_action('admin_head', 'add_tinymce_button');
    // add_action('admin_footer', 'get_tinymce_shortcode_array', 9999999);

    If this resolves you problem, then what I thing I need to do is add a plugin setting which allows users to switch off this TinyMCE button functionality.

    Plugin Author simonpedge

    (@simonpedge)

    @kip-kniskern – ok try upgrading to the version of Slide Anything I’ve just released – Version 2.3.27.

    And if you go to ‘Settings -> Writing’ within the WordPress Dashboard, you will see a new setting (checkbox) at the bottom of the page called ‘Disable TinyMCE Button’. Check this checkbox to see if this resolves your issue. Please let me know if it does.

    hi Simon, I had the same issue and followed your recommendation.

    However considering that the button is now disabled, i’m not sure I understand how to add new sliders ?

    Thread Starter Kip Kniskern

    (@kip-kniskern)

    Thanks @simonpedge – yes I installed 2.3.27, the error message is still there initially, but disabling the TinyMCE button in Settings>Writing does the trick, and the error messages no longer appear. Thanks!
    As for @flipo44 ‘s question above, I believe we’ll now have to insert the shortcodes manually using the text (not visual) editor, correct?

    Plugin Author simonpedge

    (@simonpedge)

    Yes, you copy the shortcode using the “Copy to Clipboard” button near the top-right of your SA Settings page – see:
    https://i.imgur.com/aoIefzM.png
    You then paste this shortcode into a wordpress page/post editor (or a page-builder text module) – it should work in both the visual editor or text editor modes.

    A few people have reported issues as a result if this TinyMCE button – I think this is because of core changes WP is making with its editor and the introduction of Guttenberg editor. At some point I’ll have to do a deep-dive into this, but this is a workaround for now. @kip-kniskern I’m glad its working again on your site ??

    Plugin Author simonpedge

    (@simonpedge)

    I am marking this topic as closed.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘“Failed to initialize plugin: tiny_mce_button”’ is closed to new replies.