Classic Editor

Error with Classic Editor

You may have this kind of error with Classic Editor :

Warning: Declaration of WPDI_Plugin_Installer_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($string, …$args) in /wp-content/plugins/classic-editor-addon/vendor/afragen/wp-dependency-installer/wp-dependency-installer.php on line 526

Or :

THIS BLOCK HAS ENCOUNTERED AN ERROR AND CANNOT BE PREVIEWED

Or :

Deprecated TinyMCE API call: .onNodeChange.add(..) at /wp-includes/js/tinymce/plugins/compat3x/plugin.min.js

Or :

wplink.min.js?ver={REDACTED}:2 Uncaught TypeError: Cannot read property 'show' of undefined
    at Object.open (wplink.min.js?ver={REDACTED}:2)
    at i.onclick (plugin.min.js?wp-mce-49100-20200624:1)
    at mp.c.fire (tinymce.min.js?ver=49100-20200624:2)
    at i.fire (theme.min.js?wp-mce-49100-20200624:1)
    at HTMLDivElement.o (theme.min.js?wp-mce-49100-20200624:1)
    at C (tinymce.min.js?ver=49100-20200624:2)
    at HTMLDivElement.d (tinymce.min.js?ver=49100-20200624:2)
open	@	wplink.min.js?ver={REDACTED}:2
onclick	@	plugin.min.js?wp-mce-49100-20200624:1
c.fire	@	tinymce.min.js?ver=49100-20200624:2
fire	@	theme.min.js?wp-mce-49100-20200624:1
o	@	theme.min.js?wp-mce-49100-20200624:1
C	@	tinymce.min.js?ver=49100-20200624:2
d	@	tinymce.min.js?ver=49100-20200624:2

Or :

wp-auth-check.min.js?ver={REDACTED}:2 Uncaught TypeError: Cannot read property 'hasClass' of undefined
    at HTMLDocument. (wp-auth-check.min.js?ver={REDACTED}:2)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:3)
    at Object.trigger (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:3)
    at HTMLDocument. (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:3)
    at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:2)
    at n.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:2)
    at n.fn.init.trigger (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:3)
    at Object. (load-scripts.php?c=0&load[chunk_0]=jquery-ui-accordion,thickbox,hoverIntent,common,hoverintent-js,admin-bar,wp-pointer,wp-hooks,heartbeat,autosave,wp-ajax-response&load[chunk_1]=,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,suggest,jquery-ui-sortable,postbox,tags-box,word-count,wp-sanitize,&load[chunk_2]=clipboard,post,editor-expand,shortcode,wp-plupload&ver={REDACTED}:365)
    at i (load-scripts.php?c=0&load[chunk_0]=jquery,jquery-ui-core,jquery-ui-widget,utils&ver={REDACTED}:2)

Or :

Uncaught TypeError: Cannot read property ‘show’ of undefined
at Object.open (wplink.min.js:1)
at i.onclick (plugin.min.js?wp-mce-4800-20180716:1)
at jg.c.fire (wp-tinymce.php:2)
at i.fire (theme.min.js?wp-mce-4800-20180716:1)
at HTMLDivElement.o (theme.min.js?wp-mce-4800-20180716:1)
at C (wp-tinymce.php:2)
at HTMLDivElement.d (wp-tinymce.php:2)
open @ wplink.min.js:1
onclick @ plugin.min.js?wp-mce-4800-20180716:1
c.fire @ wp-tinymce.php:2
fire @ theme.min.js?wp-mce-4800-20180716:1
o @ theme.min.js?wp-mce-4800-20180716:1
C @ wp-tinymce.php:2
d @ wp-tinymce.php:2

Or :

Cannot read property 'featuredImage' of undefined POST-EDIT-1540.js:1
    at t.default (post-edit-1540.js:1)
    at HTMLDocument. (post-edit-1540.js:1)

Or :

Error while uploading file .jpg to the media library.

Or :

ModSecurity: Access denied with code 403 (phase 2). Matched phrase “filestore” at ARGS:content. [line “86”] [id “77316844”] [msg “Block by known DB injection domain||Injection:true||Endpoint:/wp-admin/admin-ajax.php?_fs_blog_admin=true||Matched:

Or :

Uncaught TypeError: Cannot read property 'setAttribute' of undefined
    at i.aria (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at i.postRender (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at i.postRender (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at i.postRender (tinymce.min.js?ver=49110-20201110:2)
    at i.postRender (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at i.postRender (tinymce.min.js?ver=49110-20201110:2)
    at i. (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at Object.jt [as each] (tinymce.min.js?ver=49110-20201110:2)
    at i.each (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)
    at i.exec (theme.min.js?wp-mce-49110-20201110-tadv-5500:1)

Or :

Warning: Invalid argument supplied for foreach() in /wp-content/plugins/simple-job-board/admin/meta-boxes/class-simple-job-board-meta-box-job-features.php on line 158

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/simple-job-board/admin/meta-boxes/class-simple-job-board-meta-box-job-features.php:158) in /wp-admin/post.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/simple-job-board/admin/meta-boxes/class-simple-job-board-meta-box-job-features.php:158) in /wp-includes/pluggable.php on line 1251

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/simple-job-board/admin/meta-boxes/class-simple-job-board-meta-box-job-features.php:158) in /wp-includes/pluggable.php on line 1254

There are multiple solutions to try to make it work.

Updates

The first thing to do if you are stuck with Classic Editor is to ensure that all your WordPress is up to date. You should check your :

  • WordPress
  • Plugins
  • Theme

Once all these updates are done, check back if these errors appear.

Check Classic Editor

Sometimes, you just need to disable the plugin, and enable it just after to make it work again.

If it doesn’t work, your Classic Editor plugin may be corrupted. To ensure that it’s not your case, you have to re-download the plugin (or the theme delivered with the plugin) and try to install it again.

Check others plugins

Are you sure that the error is related to Classic Editor? Maybe not.

It could be related to another plugin that is not compatible. It could happen when you use a cache plugin, a security plugin, or simply a poorly developed plugin.

Disable all plugins. Then, check for your error, if the error is still there, the problem is not related to plugins compatibility. If there are no more errors, then enable every plugin one by one and check for the error. The goal is to target the plugin involved.

Try another theme

The error can be a problem with your theme.

If it’s not already done, then you should install & activate the default WordPress theme like Twenty Twenty-Two. Check for the error, and see what is happening to be sure that your WordPress theme is not the cause.

Permalinks & htaccess

If it doesn’t work, you may have a problem with your WordPress permalinks and/or your htaccess file. You should go on your WordPress dashboard, and re-saving permalinks from the permalinks page.

Contact the developer

If all these solutions don’t work, we advise you to contact the plugin developer.

You may have found a new bug, or a specific issue. You should get in touch with the developer either on the WordPress plugin forum, either by mail, either on their specific website with their own support.

Alternative solutions

If the developer doesn’t reply, or your problem is very urgent, then you should try an alternative to the plugin.

There are thousands of plugins on the official directory, and many others outside. You should try to find and test them!

If the issue is very specific, and the plugin could not be replaced, we advise you to contact an expert.
This is the best way to ensure you're not going to break your site anymore.