Hi,
The error “The editor has encountered an unexpected error.” in the WordPress block editor (Gutenberg) is a common, but frustrating, message that indicates a JavaScript error or conflict.
Here’s what you can do to try and resolve this, based on your findings:
1. Update Everything (WordPress, Blocksy, Otter Blocks, Other Plugins):
- Most Common Fix: Outdated themes or plugins are frequent causes of conflicts. Ensure WordPress core, the Blocksy theme, and the Otter Blocks plugin are all updated to their latest versions. Also, check any other plugins you have activated, as an older plugin might be contributing to a broader conflict when Otter Blocks is active.
2. Clear Caches:
- Plugin Caches: If you’re using any caching plugins (e.g., WP Rocket, LiteSpeed Cache, W3 Total Cache), clear all their caches thoroughly.
- Server Caches: Many hosting providers have their own server-side caching. Check your hosting control panel and clear any server caches.
- Browser Cache: Clear your browser’s cache and cookies, or try editing in an incognito/private Browse window.
3. Check for JavaScript Errors in Your Browser Console:
- This is crucial for understanding the root cause.
- Open the page/post editor where you get the error.
- Right-click anywhere on the page and select “Inspect” (or “Inspect Element”).
- Go to the “Console” tab.
- Look for any red error messages. These messages can provide valuable clues about what exactly is breaking when Otter Blocks is active. Share these errors if you need further help.
4. Increase PHP Memory Limit:
- Sometimes, editor issues can stem from insufficient memory.
- You can usually do this by adding
define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php file, just above the line /* That's all, stop editing! Happy blogging. */. If it’s already set, try increasing it further (e.g., to 512M).
- Your hosting provider might also have a setting in their control panel to adjust PHP memory.
5. Temporarily Switch to a Default WordPress Theme:
- Even though you’ve identified Otter Blocks, it’s worth a quick test to see if Otter Blocks alone causes the issue with a default WordPress theme (like Twenty Twenty-Four). If it works with a default theme but not Blocksy, it strongly suggests a conflict between the two.
Hope this helps.
Kind regards,
Rodica
Thanks for your response.
I did most of those things yesterday while I was on support with my hosting provider. The issue occurs even if I change the theme. I cleared all the caches. They did not find any php errors, everything was up to date.. But I did not personally check for javascript errors while I was in the editor where I get the error. I took a screenshot which I will share on my Google Drive.
-
This reply was modified 10 months, 1 week ago by
eventide0.
Hi,
I’m sorry that nothing helped. Unfortunately, I can’t think of any other suggestion. If possible, you can try to recreate those blocks that broke. Maybe it was something temporary, and adding the new blocks will work.