Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft auto #6614

Closed
Phoenix13real opened this issue May 7, 2018 · 4 comments
Closed

Draft auto #6614

Phoenix13real opened this issue May 7, 2018 · 4 comments
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@Phoenix13real
Copy link

Gutenberg 2.8.0
Last Wordpress version : 4.9.5
Theme : Beaver Builder Theme
Plugins : Beaver Themer, Beaver Builder, Imagify, Gravity Forms, SEO Framework, Code Snippets, Safe SVG, WP Mail SMTP, WP Rocket

Hello, I test Gutenberg …. The problem is this: the title of the page is always the same (Auto Draft). If I change, the title comes back.

Note: what I do in the page does not register. If I preview, nothing is displayed (except Auto Draft)

@danielbachhuber danielbachhuber added the [Status] Needs More Info Follow-up required in order to be actionable. label May 9, 2018
@danielbachhuber
Copy link
Member

Hi @Phoenix13real,

Thanks for the report! I'm not quite sure I follow what the bug is. To help clarify further:

  1. Can you share a screencast (or GIF) of the problem in action?
  2. Can you share the debugging steps you've performed to try to track down the issue? And, on that note, can you try deactivating each plugin one-by-one to see if one of them is the source of the conflict?

@Phoenix13real
Copy link
Author

hi @danielbachhuber,

I found the solution to the problem. In fact, it was a problem with Nginx. Wordpress runs on a Nginx server and the Plesk control panel.

On Plesk (17.8.11) , rewrite rules (for pretty urls Wordpress) :

-BAD (issue Gutenberg)-

rewrite /wp-admin/$ /wp-admin/index.php break;
rewrite /$ /index.php break;

-GOOD (perfect for Gutenberg) -

	if (!-e $request_filename){
		rewrite ^(.*)$ /index.php break;
	}

@danielbachhuber
Copy link
Member

Glad you sorted it out, @Phoenix13real

@Jayfrown
Copy link

Jayfrown commented Aug 14, 2018

This recently happened to me too - I could not create pages using the Gutenberg editor, it would change the title to Auto Draft and then show a spinning wheel of death apparently trying to save the page. I see no PHP processes taking any CPU time so I don't think it was doing anything.

Saving pages seemed to work, but opening the page reveals no changes, and subsequently re-opening the page in the editor shows that no changes have been saved.

@Phoenix13real is on the right track. The problem appears to occur due to a rewrite (mis)configuration [in nginx].

I use the following configuration to work around out-of-scope broken behavior observed in permalinks - it redirects anything that does not contain a . to the same location with a trailing /, so /page to /page/ but not /page.html to /page.html/. It's a fairly common thing I use in most of my vhost configs.

        location / {
         rewrite ^([^.]*[^/])$ $1/ permanent;
         try_files $uri $uri/ /index.php$is_args$args;
        }

This somehow breaks saving any page/post in Gutenberg. By simply removing the rewrite rule (and reloading nginx), the problem disappears and I can save pages/posts within the Gutenberg editor just fine. I don't have much other debugging info, but would love to provide it - given someone tells me where to look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

4 participants