Title: Error &#8220;Failed to initialize plugin: wpda_org_chart&#8221;
Last modified: May 30, 2023

---

# Error “Failed to initialize plugin: wpda_org_chart”

 *  Resolved [epilati](https://wordpress.org/support/users/epilati/)
 * (@epilati)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/)
 * Hello. I’m getting the error “Failed to initialize plugin: wpda_org_chart” on
   every admin page of my wordpress 6.2.2. I identified the error as a conflict 
   between the Advanced Custom Fields plugin and the Organization Chart plugin. 
   When I disabled the ACF plugin, the error stops to show. I think is something
   related to the mce_buttons filter, because the declaration of the “wpda_org_chart_insert_post_shortcode_nonce”
   function is done two times in a row, and in the console log is showed as:
 * **Failed to initialize plugin: wpda_org_chart ReferenceError: wpda_org_chart_insert_post_shortcode_nonce
   is not defined**

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

 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16781565)
 * Hi [@epilati](https://wordpress.org/support/users/epilati/).
 * We will check it and then let you know.
 * Thanks.
 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16785866)
 * Hi [@epilati](https://wordpress.org/support/users/epilati/).
 * We tested the plugins on localhost and everything works fine from our end. Can
   you provide more details with screenshots?
 * Thanks.
 *  Thread Starter [epilati](https://wordpress.org/support/users/epilati/)
 * (@epilati)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16787116)
 * [@wpdevart](https://wordpress.org/support/users/wpdevart/) Sure. The plugin is
   the ACF [https://wordpress.org/plugins/advanced-custom-fields/](https://wordpress.org/plugins/advanced-custom-fields/).
   The error message show up when I try to edit any content page (post.php).
 * For instance, this first image bellow is the error message in the contact page,
   even if I don’t have the organization chart block on the page, the error message
   shows up:
 * ![](https://lh3.googleusercontent.com/drive-viewer/AFGJ81opRnW26-UZb9wjqekgflm9KQ-
   EudaIIh-yjeyYyhxzVS9BWpV6uBRdbqq7mjvDReu3BNJEtL0Lx7hO3rrVhxSaEb5i4A=s1600)
 * This second image bellow is the error in the console log:
 * ![](https://lh3.googleusercontent.com/drive-viewer/AFGJ81rBGyw0E1JW0jfHbEoPclIKA_i-
   8qiOdpb-n2-sAQALeOiD4ibi-TBn_J8jQYngbrnROn02d7d2EdNInluos3_MNq1bkQ=s1600)
 * As you can see, in the image bellow, the declaration is done two times, but I’m
   not sure if this is the problem.
 * ![](https://lh3.googleusercontent.com/drive-viewer/AFGJ81qD2LZGhnHUmiR9c1x5MijUOW-
   dCdSNfiwOWHyITsmnRyu9NfJRY-B1c_3c141Z5oLi8pI_WJymdCNBKLFU3RDRatXrtA=s2560)
 * The error message does not make it impossible to use the Organization Chart plugin,
   but it is very annoying, because I have to close the message every time I want
   to edit a content page.
 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16788156)
 * Hi [@epilati](https://wordpress.org/support/users/epilati/).
 * Okay, we will check it again.
 * Thanks.
 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16804669)
 * Hi again.
 * Unfortunately, this is not a global problem, and we have not seen it from our
   side. Since we can’t see the error, we can’t find the cause of this problem.
 * Thanks.
 *  [ljwolf7691](https://wordpress.org/support/users/ljwolf7691/)
 * (@ljwolf7691)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16855309)
 * I am getting this same error when editing a user on the admin side. Error is 
   Failed to initialize plugin: wpda_org_chart. Shows the same pink skinny box with
   error as image previously posted by user epilati.
 *  [ljwolf7691](https://wordpress.org/support/users/ljwolf7691/)
 * (@ljwolf7691)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-16855415)
 * Screen shot of error with inset of browser error.
 * ![](https://i0.wp.com/www.ooida.com/wp-content/uploads/2023/06/error-org-chart.
   png?ssl=1)
 *  [bergaul](https://wordpress.org/support/users/bergaul/)
 * (@bergaul)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-17226331)
 * 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 eachat 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:3
 *  [bergaul](https://wordpress.org/support/users/bergaul/)
 * (@bergaul)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-17226394)
 * This is a temporary and not the best solution, BUT it might work for those who
   don’t like this error:
 *     ```wp-block-code
       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.
 *  [cherie16](https://wordpress.org/support/users/cherie16/)
 * (@cherie16)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-17699647)
 * I encounter the same error too in slide anything plugin, seems there is a conflict,
   if i remove the slide anything plugin shortcode then my header is working correctly
   as other pages. Im currently using elementor elementskit nav menu element. And
   it gets cut off where the menu cant be displayed.

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

The topic ‘Error “Failed to initialize plugin: wpda_org_chart”’ is closed to new
replies.

 * ![](https://ps.w.org/organization-chart/assets/icon-128x128.png?rev=2512026)
 * [Organization chart](https://wordpress.org/plugins/organization-chart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/organization-chart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/organization-chart/)
 * [Active Topics](https://wordpress.org/support/plugin/organization-chart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/organization-chart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/organization-chart/reviews/)

## Tags

 * [classic editor](https://wordpress.org/support/topic-tag/classic-editor/)
 * [org chart](https://wordpress.org/support/topic-tag/org-chart/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 11 replies
 * 5 participants
 * Last reply from: [cherie16](https://wordpress.org/support/users/cherie16/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-failed-to-initialize-plugin-wpda_org_chart/#post-17699647)
 * Status: resolved