-
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
Previews: cannot preview a published post that has an autosave #7852
Comments
I tested with WordPress 4.9.7 and Gutenberg 3.2.0 using Firefox 61.0.1 on macOS 10.13.5 and was unable to reproduce the problem based on your steps. Here are the scenarios I tested: Video: 1m18s
@maddisondesigns would you mind having a look at the video linked above and let me know if you can see anything different in my tests compared to yours? I noticed the url in your screenshot is fwiw, I have seen that bug before but for the life of me couldn't break it with 3.2.0 today when I tested! |
The site I'm using is a test site on my own local server but I'm only using the stable 3.2.0 plugin version of Gutenberg. I've disabled all plugins, retested and can consistently reproduce the issue by adding a Classic block. The test page where I first encountered the error had all sorts of different blocks on it. To try and narrow it down I created a new page and started adding different blocks and clicking preview. As soon as I add a Classic Block, the preview breaks. Here's a vid: https://cl.ly/0J071E2z0u1F |
Nice sleuthing! I added the |
I'm able to reliably reproduce this, it seems that if you hit the preview button before some kind of state change occurs, it's left in the "generating preview" screen for ever, it's not receiving the URL it needs to redirect to. If you wait a second or two after updating before hitting the preview, it works just fine. I'm wondering if implementing #7922 (comment) would remove this problem entirely, as it seems to be the intermediary of our fancy "generating preview" page that's causing the issue, and the content is already saved and ready for viewing? |
I re-tested and found that previews get stuck for me any time I try to preview an autosaved post:
Result: cannot preview a published post that has an autosave. Video: 41s Here is the autosave API response from the Network tab in my browser:
@maddisondesigns can you check to see if the steps above consistently result in stuck previews for you? |
While researching preview issues today, I realized that this one is a duplicate of #7416. |
Describe the bug
This bug has come and gone several times and it appears to be back again. I simply clicked on a page to edit it, and before I did actually start editing, I clicked on Preview. The front-end simply shows Please wait… Generating preview and never actually displays the page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Published page should open in new browser tab
macOS Sierra 10.12.1
Firefox Quantum 61.0.1 (64-bit)
Gutenberg 3.2.0
The text was updated successfully, but these errors were encountered: