• Resolved 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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi.

    We tested the plugin using the classic editor and did not find any errors (this is not a global error). Looks like this is a local JS error.

    Can you send us a screenshot?

    Thanks.

    Thread Starter bergaul

    (@bergaul)

    Thanks for the reply! I am attaching screenshots below.

    When viewing the site running on the network, I don’t see the pink vertical error bar. When working via localhost, this error appears when visiting the admin menu sections that have the Classic Editor function. Either way, the error messages remain in the console (see screenshot).

    Plugin Author wpdevart

    (@wpdevart)

    Hi.

    We cannot say why you are seeing this error because we have tested the plugin twice on a local and live website and there is no such error. Unfortunately, since we don’t see the error, we can’t find a solution.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to initialize plugin: wpda_org_chart’ is closed to new replies.