Failed to initialize plugin: wpda_org_chart
-
Hello! Thank you for the great plugin, I started using it yesterday and found a similar problem – conflict between plugins: Classic Editor and WpDevArt Organization Chart. Perhaps the error indicates that the wpda_org_chart_insert_post_shortcode_nonce variable is missing. I have no way of making sure that this variable is defined in the right context. Perhaps it needs to be initialized in some script or file.
Has anyone found a solution? Please update your plugin, excluding the appearance of this error in the administrative part of the site.
The error and the thin pink block appear when I open the admin page containing the classic editor:
Uncaught SyntaxError: Identifier ‘wpda_org_chart_insert_post_shortcode_nonce’ has already been declared
Failed to initialize plugin: wpda_org_chart ReferenceError: wpda_org_chart_insert_post_shortcode_nonce is not defined
at new (post_page_insert_button.js?wp-mce-49110-20201110:3:68)
at Ew (wp-tinymce.js?ver=49110-20201110:3:330473)
at Array. (wp-tinymce.js?ver=49110-20201110:3:332223)
at Object.jt as each
at Aw (wp-tinymce.js?ver=49110-20201110:3:332173)
at tN. (wp-tinymce.js?ver=49110-20201110:3:333551)
at Array. (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)
Th @ wp-tinymce.js?ver=49110-20201110:3This is a temporary and not the best solution, BUT it might work for those who don’t like this error:
function custom_admin_styles() { echo '<style> .mce-widget.mce-notification.mce-notification-error.mce-has-close.mce-in { display: none !important; } </style>'; } add_action('admin_head', 'custom_admin_styles');
Place this code in the functions.php file (of the child theme). It hides the error message, but does not fix the error. You may need to define your own class. I hope the plugin developers pay attention to this, because no other installed plugin reacts like this.
- The topic ‘Failed to initialize plugin: wpda_org_chart’ is closed to new replies.