-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Preview opens and says "generating preview" forever (solved by an update form Cloudflare) #8441
Comments
Do you see any error in the console of Gutenberg when clicking this button? |
[Sorry for my bad english, but I want to support Gutenberg and Wordpress] It did happen to me too, I can't preview my post. Here is the condition. Bug Description Steps to reproduce Expected behaviour My device I'm really excited with Gutenberg. I hope you guys always keep up the spirit to make Gutenberg better than ever :) |
also happening with me some time ago |
This also happened to my install. It cleared up with the Cloudflare Firewall fix.... if you want to call it a fix. |
Here is last known workaround for Cloudflare copied from #2704 (comment) for reference:
And #2704 also notes that Cloudflare should have an update in place soon. |
Thank you for the answer. Yes, I'm using Cloudflare. I rather to wait Cloudflare team to resolve that issue. I'm just ordinary writer of my blog and don't have experience to messed up my Cloudflare setting :( but I do really love and want Gutenberg to be default editor in the coming future. I hope I can report any issue when I'm writing :) |
I hope this issue can be fixed at Cloudflare. I'm also experiencing the same bug with a free Cloudflare account and Gutenberg installed. |
I made this... ;) |
Thanks! That works. The downside is that I have to repeat the process every time my IP address changes. That adds a lot of overhead to writing.
Thanks,
Bill
---
"There are two kins of people in the world: those who say to God, "thy will be done," and those to whom God says, "alright, then, have it your way." — C. S. Lewis
…On Aug 4, 2018, 4:21 PM -0500, abwdvm ***@***.***>, wrote:
I made this... ;)
http://www.ksstradio.com/2017/12/the-gutenberg-cloudflare-free-fix/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Cloudflare is working on an update and it should be fixed soon. Here is the latest note I could find on that: #2704 (comment) |
I am NOT on Cloudflare and have the same issue. Created a new post, tried to preview and got: "Please wait... Generating Preview" which does not change. Post page says "updating failed". However, if I display all posts, the draft I saved is there. If I click on preview from the All Posts page, that DOES work. When I attempt to publish it, I receive the message "publishing failed". However, when I return to the All Posts page, the post shows as published. |
@KansasEMS I suspect you have a PHP error or warning messing up with the return value (JSON) of the API endpoints. You can open the network tab in your browser's console to check the response of the "autosave"/"save" XHR for instance. Hopefully the content of the response will help debug this. |
I didn’t see any errors when I opened the console. Strangely, once I published using the “classic” editor, I can now preview from within Gutenberg. Also, even though it SAYS that updating fails, it appears that the update ACTUALLY happens.
James Kennedy
IT Manager
Kansas Board of EMS
900 SW Jackson; Suite 1031
Topeka, KS 66612-1228
Office 785.296.7296
Fax 785.296.6212
Email: James.kennedy@ks.gov<mailto:James.kennedy@ks.gov>
From: Riad Benguella <notifications@github.com>
Sent: Wednesday, August 08, 2018 12:13 PM
To: WordPress/gutenberg <gutenberg@noreply.github.com>
Cc: Kennedy, James [BEMS] <James.Kennedy@ks.gov>; Mention <mention@noreply.github.com>
Subject: Re: [WordPress/gutenberg] Preview opens and says "generating preview" forever (Cloudflare) (#8441)
@KansasEMS<https://github.com/KansasEMS> I suspect you have a PHP error or warning messing up with the return value (JSON) of the API endpoints. You can open the network tab in your browser's console to check the response of the "autosave"/"save" XHR for instance. Hopefully the content of the response will help debug this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8441 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AoQmJm_EwI_apq0kjAZoeCMMZKw9aT2Yks5uOxwOgaJpZM4Vt_vi>.
|
I will test again later, when I have more time.
James Kennedy
IT Manager
Kansas Board of EMS
900 SW Jackson; Suite 1031
Topeka, KS 66612-1228
Office 785.296.7296
Fax 785.296.6212
Email: James.kennedy@ks.gov<mailto:James.kennedy@ks.gov>
From: Riad Benguella <notifications@github.com>
Sent: Wednesday, August 08, 2018 12:39 PM
To: WordPress/gutenberg <gutenberg@noreply.github.com>
Cc: Kennedy, James [BEMS] <James.Kennedy@ks.gov>; Mention <mention@noreply.github.com>
Subject: Re: [WordPress/gutenberg] Preview opens and says "generating preview" forever (Cloudflare) (#8441)
I don't expect errors, but valid XHR response (code 200) with PHP warnings/errors making the JSON in the responses invalid.
Here's how you see the response in Chrome
[screen shot 2018-08-08 at 18 37 34]<https://user-images.githubusercontent.com/272444/43854237-35a519a6-9b3a-11e8-906f-902e7ca17967.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8441 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AoQmJoRlN9rELgWjA5oTDVD4JYnVxQ2xks5uOyIbgaJpZM4Vt_vi>.
|
Ok, it looks like Cloudflare fixed the issue, I'm closing this issue for now. Let's see how it plays. To follow the Cloudflare discussions, this issue #2704 is probably a better one. |
This may help somebody I had the same issue. I was able to fix it, |
Describe the bug
Preview doesn't work. About:blank page opens and says "generating preview." Forever.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Preview appears.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: