Cannot save or update posts with Gutenberg
-
Hello,
a couple of days ago I noticed a problem with 3 wordpress websites, all of them installed on the same shared hosting account. I cannot publish or even update posts and pages.
If I try to publish a post, everything seem fine but actually when I get back to the post later I find it empty and saved as Auto Draft. If I try to edito an old post, one created before this issue, I get an message “the editor encountered an unexpected error” and I cannot even access the post.
The only workaround I found: installing the Classic Editor plug-in. Also, posting through the dashboard home “Quick Draft” feature works, as does the quick edit – I can at least change the title and/or categories.All the installs are up-to-date (WP 5.5.1 at the time of writing), PHP 7.3, all the plugins are updated to the latest version.
I tried the obvious troubleshooting steps:
1) turned Debug on – no clues
2) disabled all plug-ins and switched to TwentyTwenty – no results
3) disabled the cache module from my hosting provider (accessible via CPanel), but no luck
4) when I asked my provider to flush the cache from their side, then I managed to publish just one post, but then the problem came back
5) tried to strip the .htaccess to a bare minimum but again no luck
6) checked the site inspector console but I cannot see js/ajax errors – actually, no errors at all.
7) tried to switch to plain permalinks, or simple postname pretty permalinks (I usually use a custom structure) but nothing changed.
8) since I recently updated two of the websites to PHP 7.3.0 tried to revert to a previous version of PHP, but again no changesThe only interesting thing is that when I installed the Health Check plug-in I got a REST API error “The REST API did not process the context query parameter correctly.”
Then I checked the REST API url (/wp-json/wp/v2/post) and it outputs correctly my posts, so the endpoint seems to work. I manage other 5.5.1 install on different servers and they work just fine, I can use the block editor without any issue.Honestly I don’t know what else I can do, but before re-installing WordPress from scratch and importing a back-up I’d like to understand what happened to all three websites. They use different themes and plug-ins, they only have the same hosting in common, but the hosting denies any responsibility.
Also the dev versions of all the websites work just fine on my local MAMP install.Any suggestion is much appreciated.
- The topic ‘Cannot save or update posts with Gutenberg’ is closed to new replies.