• Resolved epilati

    (@epilati)


    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

    (@wpdevart)

    Hi @epilati.

    We will check it and then let you know.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Hi @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

    (@epilati)

    @wpdevart Sure. The plugin is the ACF https://www.ads-software.com/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:

    This second image bellow is the error in the console log:

    As you can see, in the image bellow, the declaration is done two times, but I’m not sure if this is the problem.

    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

    (@wpdevart)

    Hi @epilati.

    Okay, we will check it again.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    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.

    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.

    Screen shot of error with inset of browser error.

    bergaul

    (@bergaul)

    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:3

    bergaul

    (@bergaul)

    This 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.

    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.