Gutenberg: Preview stuck in "generating preview" (about:blank ) after auto-save on published post

Created on 27 Jun 2018  路  14Comments  路  Source: WordPress/gutenberg

Describe the bug
Stuck on "generating preview" when clicking preview after auto-save. Apparently preview is only working 'when updated / published / refreshed. Not after auto-save.

To Reproduce
Steps to reproduce the behavior:

  1. Add new post
  2. Write some stuff
  3. Publish post
  4. Edit something in the post
  5. Wait for autosave (Don't Update!)
  6. Click Preview
  7. Enjoy the about:blank page
  1. Update Post
  2. Click Preview
  3. Preview works again

Expected behavior
Seeing the preview!

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS High Sierra
  • Browser Chrome 66

Additional context

  • Gutenberg 3.1.0
[Feature] Saving [Status] Duplicate [Type] Bug

Most helpful comment

This is proposed to be fixed / improved in #7703

All 14 comments

@Soean Can you verify this issue reproduces on master? I think it may be fixed with #7130

@danielbachhuber Yes, I can reproduce the issue in the current master.

@Soean I can't reproduce:

autosavepreview

Can you share a GIF of your reproduction steps?

This happen to me too. Sometime it work but sometime it just stuck there on Generating Preview.

Maybe you have to publish it first
preview

@Soean Before we have to Save draft first but with the latest version we can directly hit the preview without saving (see the update log). But it stuck sometime. Even the page is reopen after saved.

We can't make it publish if we not finish the post yet but we need to preview it at least.

@Soean I'm unable to reproduce the issue with the post published either.

Tested and confirmed using Firefox 60.0.2 on macOS 10.13.5:

Video: 59s

@danielbachhuber looking at your GIF, you missed the step to make an edit to a published post before previewing.

@designsimply It works for me editing a published post too:

autosavepreview

This time 馃檪 you didn't wait for an autosave. The steps:

  1. Create post.
  2. Publish.
  3. Make an edit.
  4. Wait for autosave of edit.
  5. Click Preview.

I swear I did that the first time I tested.

In any case, I can reproduce the issue now. @aduth Any good ideas on what this might be?

This is my screen record. This is published post. I just come back to making some change by insert image and it is autosave. Then I preview but it not done with generate preview. Only if I come back and manually update the post then it could preview successful.

https://drive.google.com/file/d/1xBc1SzuiNiATrXmn62nEbdLaAJJ1V_hx/view

This is proposed to be fixed / improved in #7703

Noting that we're consolidating to #7416.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tofumatt picture tofumatt  路  86Comments

melchoyce picture melchoyce  路  169Comments

ahmadawais picture ahmadawais  路  101Comments

mapk picture mapk  路  80Comments

maddisondesigns picture maddisondesigns  路  79Comments