The new editor is a javascript application. It runs in your browser, and communicates to your site using the wp-json REST API. You need to have that enabled. If you have added any security plugins, or anything similar to block that, then you will need to undo that in order for the editor to work properly.
]]>Publishing is the key in a blog program. We shall not need to know more than set the WordPress up to get it working!
Also, the new editor is missing more features: tags, categories.
]]>Also, the new editor is missing more features: tags, categories.
See, it’s not, actually. Things like tags and categories being missing are telling us that you have a problem on your server, where something is blocking the REST API.
WordPress has a thing called the REST API in it. It’s basically calls to the site that have the word “wp-json” in them. It is how the new editor talks to the site, in the background. The REST API has been around for a couple years, but this is one of the first major uses of it.
Now, to display the categories, for example, the editor sends a request to the site that basically says “hey, give me a list of the categories”. If you are blocking that somehow, you don’t get the category listing.
How are you blocking it? Well, over the past two years, a lot of “security” plugins and other misguided tutorials have recommended to either block or disable the REST API. They were wrong, and you need to not do that.
If you have any security plugins, turn them off. If you have any rules in the .htaccess file that block the wp-json requests, remove them. The editor in your browser needs to be able to talk to the site, to display things like tags and categories, as well as to be able to send the post content to the server for publishing. So you have to not block the REST API for it to do that.
]]>In a couple of cases we’ve seen on the forums, the default .htaccess rules made by some installers such as Softaculous are slightly incorrect, and resaving the permalink settings should rewrite the .htaccess file correctly.
It’s a bit of a long shot, but it doesn’t hurt to try.
]]>-Tried the permalinks solution and did not work.
-Disabled all my plugins (All In One SEO Pack, Classic Editor, Contact Form 7, WordPress importer).
-WP still does not save/update a page.
-The Classic Editor does not work for me. (Cannot click on the tabs in the classic editor. The classic visual editor shows no content, even though the content is available on the actual page).
-I have not put anything into my .htaccess file to block wp-json requests (it’s just the basic WP htaccess plus a few 307 redirects).
-I have no security plugins.
-I use Cloudflare.
So there must be something blocking it. Not sure if this is a Cloudflare issue, but I can’t see why that should cause a problem – it is used by so many.
]]>I have no security plugins. I don’t know if any of my .htaccess is blocking. How would I know? Nothing mentions json and the only line mentioning security is this:
Header add Strict-Transport-Security “max-age=300”
Is that line presenting a problem?
J
Thanks for the assistance.
-Tried the permalinks solution and did not work.
-Disabled all my plugins (All In One SEO Pack, Classic Editor, Contact Form 7, WordPress importer).
-WP still does not save/update a page.
-The Classic Editor does not work for me. (Cannot click on the tabs in the classic editor. The classic visual editor shows no content, even though the content is available on the actual page).
-I have not put anything into my .htaccess file to block wp-json requests (it’s just the basic WP htaccess plus a few 307 redirects).
-I have no security plugins.
-I use Cloudflare.
So there must be something blocking it. Not sure if this is a Cloudflare issue, but I can’t see why that should cause a problem – it is used by so many.
]]>