How to Fix The Editor Has Encountered an Unexpected Error in WordPress

When trying to compose or edit a post, a page or any other custom post types such as [...]