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

Preview opens and says "generating preview" forever (solved by an update form Cloudflare) #8441

Closed
billhennessy opened this issue Aug 3, 2018 · 18 comments
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@billhennessy
Copy link

Describe the bug
Preview doesn't work. About:blank page opens and says "generating preview." Forever.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new post or edit an existing post.
  2. Click Preview
  3. In new tab, about:blank page opens with message "Generating preview."
  4. Preview never appears.

Expected behavior
Preview appears.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS 10.13.x
  • Browser Chrome, Safari
  • Version Latest
@youknowriad
Copy link
Contributor

Do you see any error in the console of Gutenberg when clicking this button?

@designsimply designsimply added the [Status] Needs More Info Follow-up required in order to be actionable. label Aug 3, 2018
@achmedislamic
Copy link

[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
I can't preview my post (old or new post using Gutenberg). It says "Please wait... Generating Preview". And I wait for so long and the preview won't appear.

Steps to reproduce
Simply, create new post or edit existing post with Gutenberg. And try to Preview it using Preview button.

Expected behaviour
Just like preview on Classic Editor. I expect to see my post that I create or change and the rest of my site.

Screenshot
gutenberg issue

My device
I'm using Windows 10 with April 2018 Update using Google Chrome latest version (V.68)

I'm really excited with Gutenberg. I hope you guys always keep up the spirit to make Gutenberg better than ever :)

@ghost
Copy link

ghost commented Aug 3, 2018

also happening with me some time ago
Are you using Cloudflare? I'm (quite) sure this is happening due to the Cloudflare. Whitelist your IP in Cloudflare Firewall.
also see #2704

@abwdvm
Copy link

abwdvm commented Aug 4, 2018

This also happened to my install. It cleared up with the Cloudflare Firewall fix.... if you want to call it a fix.

@designsimply
Copy link
Member

designsimply commented Aug 4, 2018

Here is last known workaround for Cloudflare copied from #2704 (comment) for reference:

Once you have upgraded your account, you would be able to disable the firewall rule by going to your Firewall page >> selecting Web Application Firewall >> under Cloudflare Rule Set >> click on Cloudflare Wordpress >> Select the rule WP0025B >> set to Disable

The only resolution then, with a free Cloudflare account, is to whitelist all of the IP addresses that will be using the JSON API.

And #2704 also notes that Cloudflare should have an update in place soon.

@designsimply designsimply changed the title Preview Doesn't Work Preview opens and says "generating preview" forever Aug 4, 2018
@achmedislamic
Copy link

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 :)

@remaindeer
Copy link

I hope this issue can be fixed at Cloudflare. I'm also experiencing the same bug with a free Cloudflare account and Gutenberg installed.

@swissspidy
Copy link
Member

See also #7852, #7561, and #6331, and probably many more.

This can also be caused by something else like another plugin. IIRC I had the same issue when using Polylang.

@abwdvm
Copy link

abwdvm commented Aug 4, 2018

I made this... ;)
http://www.ksstradio.com/2017/12/the-gutenberg-cloudflare-free-fix/

@billhennessy
Copy link
Author

billhennessy commented Aug 6, 2018 via email

@designsimply
Copy link
Member

Cloudflare is working on an update and it should be fixed soon. Here is the latest note I could find on that: #2704 (comment)

@KansasEMS
Copy link

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.

@youknowriad
Copy link
Contributor

@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.

@KansasEMS
Copy link

KansasEMS commented Aug 8, 2018 via email

@youknowriad
Copy link
Contributor

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

@KansasEMS
Copy link

KansasEMS commented Aug 8, 2018 via email

@youknowriad
Copy link
Contributor

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.

@designsimply designsimply changed the title Preview opens and says "generating preview" forever (Cloudflare) Preview opens and says "generating preview" forever (solved by an update form Cloudflare) Aug 20, 2018
@designsimply designsimply added [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Aug 20, 2018
@designsimply designsimply removed the [Status] Needs More Info Follow-up required in order to be actionable. label Aug 20, 2018
@Niresh12495
Copy link

This may help somebody I had the same issue. I was able to fix it,
Fix wordpress “Updating Failed”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

9 participants