gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

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

Open katerlouis opened this issue 8 years ago • 14 comments

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

  8. Update Post

  9. Click Preview

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

katerlouis avatar Jun 27 '18 10:06 katerlouis

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

danielbachhuber avatar Jun 27 '18 12:06 danielbachhuber

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

Soean avatar Jun 27 '18 13:06 Soean

@Soean I can't reproduce:

autosavepreview

Can you share a GIF of your reproduction steps?

danielbachhuber avatar Jun 27 '18 13:06 danielbachhuber

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

Emilybkk avatar Jun 27 '18 13:06 Emilybkk

Maybe you have to publish it first preview

Soean avatar Jun 27 '18 13:06 Soean

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

Emilybkk avatar Jun 27 '18 13:06 Emilybkk

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

danielbachhuber avatar Jun 27 '18 13:06 danielbachhuber

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 avatar Jun 27 '18 13:06 designsimply

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

autosavepreview

danielbachhuber avatar Jun 27 '18 13:06 danielbachhuber

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.

designsimply avatar Jun 27 '18 14:06 designsimply

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?

danielbachhuber avatar Jun 27 '18 14:06 danielbachhuber

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

Emilybkk avatar Jun 27 '18 16:06 Emilybkk

This is proposed to be fixed / improved in #7703

aduth avatar Jul 04 '18 01:07 aduth

Noting that we're consolidating to #7416.

designsimply avatar Aug 15 '18 01:08 designsimply