WordPress block editor: The editor has encountered an unexpected error (Attempt Recovery / Copy Error)
A JavaScript error broke the block editor — usually a plugin/theme block script conflict, cached old scripts, or a browser extension.
Seen on:
WordPress
Meaning
“Copy Error” gives the stack trace. Recently updated plugins, optimisation plugins combining/minifying admin scripts, or outdated custom blocks are frequent causes.
Common causes
- Plugin or theme block script error
- Script optimization/minification applied to admin
- Cached outdated JS after updates
- Browser extension interference
⚡ Quick fix
- Click Copy Error and check the browser console
- Disable plugins one by one (Health Check troubleshooting mode)
- Clear caches and exclude wp-admin from optimisation
Detailed fix by platform
WordPress
define('SCRIPT_DEBUG', true); // load unminified core scripts for clearer errors
How to diagnose
- Console — Error and file
- Plugins — Recently updated?
- Extensions — Works in incognito?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in WordPress
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026