Block-Editor (Gutenberg) not saving (nginx + letsencrypt + WordPress 5.0.1)
-
Problem: I can’t save content with the new Block Editor (Gutenberg). The Classic Editor works fine. I am seeing a HTTP Status Code 403 in the access logs. Seems like a configuration problem with nginx.
I am running:
WordPress Version 5.0.1
Theme: Twenty Nineteen Version 1.0
nginx version: nginx/1.10.3 (Ubuntu)
Using https with letsencrypt certificateExample from access.log (nginx):
# grep '403' access.log xxx.xxx.xxx.xxx - - [15/Dec/2018:13:47:47 +0100] "GET /wp-json/wp/v2/taxonomies/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor__forget" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:48:08 +0100] "GET /wp-json/wp/v2/media/57/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor__forget" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:48:11 +0100] "GET /wp-json/wp/v2/blocks/?_locale=user&per_page=100 HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor__forget" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:48:49 +0100] "GET /wp-json/wp/v2/taxonomies/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:53:48 +0100] "GET /wp-json/wp/v2/taxonomies/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor__forget" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:54:09 +0100] "GET /wp-json/wp/v2/taxonomies/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:54:10 +0100] "GET /wp-json/wp/v2/taxonomies/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" xxx.xxx.xxx.xxx - - [15/Dec/2018:13:54:35 +0100] "GET /wp-json/wp/v2/media/57/?context=edit&_locale=user HTTP/2.0" 403 457 "https://www.../wp-admin/post.php?post=16&action=edit&classic-editor" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15"
Searching for 403 Status Code I find => “403 Forbidden. The HTTP 403 Forbidden client error status response code indicates that the server understood the request but refuses to authorize it. This status is similar to 401 , but in this case, re-authenticating will make no difference.”
I found other posts discussing similar problems with Nginx and already changed the nginx configuration to:
try_files $uri $uri/ /index.php$is_args$args;But this didn’t solve the problem. I still can’t save with the new Block Editor. Switching back to classic editor and everything works fine. Switching back to Gutenberg Block-Editor and it refuses to save.
Flushing caches didn’t help.
I also installed the Health Check Plugin and deactivated all Plugins via Trouble Solving. Didn’t help.
Health Check Plugin show everywhere green checkmarks (also with REST API availability) except for PHP-Version, which is 7.0.32-0ubuntu0.16.04.1 (here it shows a yellow dash and a recommendation to upgrade to 7.2)Do you have any advice on how to configure nginx + letsencrypt to work with Gutenberg?
- The topic ‘Block-Editor (Gutenberg) not saving (nginx + letsencrypt + WordPress 5.0.1)’ is closed to new replies.