Hi,
I am using the latest version of ACF Pro (5.12.3) and Essential Grid (3.0.16) with WordPress 6.0.2.
When I go to “Media” tab, there is a pop-up error - Failed to initialize plugin: essgrid_sc_button
I can close this notice and everything still works ok but everytime I go to Media, this error pops-up.
The cosole error shows -
tinymce.min.js:2
Failed to initialize plugin: essgrid_sc_button ReferenceError: ESG_LANG is not defined
at new <anonymous> (shortcode.min.js?wp-mce-49110-20201110:1:19594)
at Ew (tinymce.min.js:2:330473)
at Array.<anonymous> (tinymce.min.js:2:332223)
at Object.jt [as each] (tinymce.min.js:2:29356)
at Aw (tinymce.min.js:2:332173)
at tN.<anonymous> (tinymce.min.js:2:333551)
at Array.<anonymous> (tinymce.min.js:2:96969)
at jt (tinymce.min.js:2:29356)
at u (tinymce.min.js:2:96914)
at n (tinymce.min.js:2:96402)
And the shortcode.min.js line refers to -
“undefined” != typeof tinymce && tinymce.PluginManager.add(“essgrid_sc_button”, function(e, s) {
e.addButton(“essgrid_sc_button”, {
title: ESG_LANG.essential_grid_shortcode_creator,
icon: “icon dashicons-screenoptions”,
onclick: function() {
var e = void 0 !== tinymce.activeEditor && void 0 !== tinymce.activeEditor.selection ? tinymce.activeEditor.selection.getContent() : “”;
ESG.SC.openBlockSettings({
editor: “tinyMCE”,
shortcode: e
})
}
})
})
If I deactivate ACF Pro, there is no error/warning displayed.
Is there something you can help with? I have reached out to Essential Grid creators and they have asked to refer to you as the plugin is bundled with theme.
Any help is much appreciated.