Online Tutorials & Training Materials | STechies.com
Register Login
Advertisement

The editor has encountered an unexpected error.

|| 0

The editor has encountered an unexpected error.
Stechies

While create a blog I received a error msg “The editor has encountered an unexpected error.” with 3 buttons “Attempt Recovery", "Copy Post Text", "Copy Error". None of these seem to work.
Have checked it also comes when I edit and save any old post.

Screen-shots

Browser Console Errors

TypeError: Object(F.hasFilter) is not a function. (In 'Object(F.hasFilter)("blocks.getSaveContent.extraProps")', 'Object(F.hasFilter)' is an instance of Object) Block validation: Block validation failed because an error occurred while generating block content: TypeError: Object(F.hasFilter) is not a function. (In 'Object(F.hasFilter)("blocks.getSaveContent.extraProps")', 'Object(F.hasFilter)' is an instance of Object)

TypeError: Cannot read property 'getCollectionByRoute' of undefined
at t.value (/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-810.min.js?ver=10.0:1:145344)
at t.value (/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-810.min.js?ver=10.0:1:144551)
at jc (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:182:22)
at gc (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:182:22)
at vb (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:182:67)
at ub (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:182:22)
at wg (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:182:22)
at Ze (/plugins/gutenberg/vendor/react-dom.min.45rredde.js:445:22)

Environment

  • Wordpress 5.0.2
  • Gutenberg 3.7.0
  • WordPress is running in LAMP
  • OS: CentOS 5.5

Solutions  

Version Update

This error come due to Gutenberg editor conflict with other plugins to fix it please update all your Plugins and Wordpress version

Conflict with Nginx Config file

If your are running wordpress on Nginx server then the Gutenberg plugin have some conflict with API request

Furthermore i get a 403 on

Change in Nginx config file

location / {
try_files $uri $uri/ /index.php$is_args$args;
}

 

Change permalinks to “Plain”

Hope this will Fix your problem

 

 


Advertisement
Advertisement
Advertisement