Wp-calypso: Gutenlypso: Previewing first version of Saved Draft causes a 404

Created on 11 Dec 2018  路  13Comments  路  Source: Automattic/wp-calypso

Steps to reproduce

  1. Starting at URL: wendiloulee.com
  2. Create a new post, save it as draft
  3. Click "Preview"

What I expected

To see a preview of the post.

What happened instead

Preview tried to open https://wendiloulee.com/?p=1009 Got a 404 error.

Then, after adding more content to the post and clicking Save Draft again, if you click Preview, Preview instead loads https://wendiloulee.com/?p=1009&preview=true and displays a preview of the draft post.

(h/t to @andrewspittle for discovering this workaround. See p1544556790659900-slack-livechat.

Browser / OS version

Google Chrome, 71.0.3578.80. Mac OS High Sierra.

Screenshot / Video

404 error:

404 error

After updating and clicking Save Draft again:

no 404 error

[Goal] Gutenberg [Pri] Normal [Type] Bug

All 13 comments

Got a report from a user with similar issue (error preview page whenever they want to edit and preview their post). I couldn't replicate the problem, though, so I'm confused in this issue.

8758316-hc and 1639835-zen

Looks like this issue was slipped earlier with no proper labels or project. I have added them now.

I am also marking this with normal priority, as there have been a few reports about this and does not affect a single user. Please feel free to update priority as fit.

Just a note that this does not feel to be reproducible consistently. For example, when I tested today evening, I was not able to see a 404 on a simple site and a AT site.

There are also times when the preview shows a 404 for a brief second before showing the expected preview.

On a larger note, could this be related to core issue https://github.com/WordPress/gutenberg/issues/13232?

@arunsathiya yep, I think it is, I have been following that one and the symptoms are the same

Potentially related to this case p2EDhh-Gh-p2.
Only getting "Oops! That page cannot be found." message with Safari and posts in Draft mode.

One more site with this same issue happening only in Safari:

-- https://chiiky.co.uk/
-- #10965754-hc
-- I was able to replicate the issue in Safari, but preview worked fine in Chrome. In Safari, it says "generating preview" and opens the site in a new tab. User said it sometimes also says "oops, page not found" but I didn't see that when testing.

Similar issue in 9429085-HC. Followup in 1859108-ZD.

Steps to produce: Edit page -> click Preview -> changes don't appear

The underlying implementation has changed since this was reported, and I can't reproduce it now. Please feel free to re-open if we get any new reports!

Found another instance of this. When previewing already published posts, they are displayed as expected.

When previewing a draft, a 404 - Page Not Found error is thrown.

Was only able to reproduce on Safari Version 12.0.3 (14606.4.5). Both Firefox and Google Chrome previewed draft as expected.

  • Site: janabouc.com
  • #1933939-zen

Found similar issue.

2781436-zen

Preview for draft fails for Safari, works for Chrome.
Reproduced on
Safari
Version 13.0.5 (14608.5.12)

User reported issue here - 2794588-zen

User mentioned using Safari and Firefox.

When trying to reproduce on my end in both Safari and Firefox, when previewing the page for an unpublished post through the edit page, the preview shows the 404 page for a second, then loads the content.

Works in Chrome as expected.

ETA: User also reports this started happening after upgrading to the Premium plan 3 weeks ago.

Was this page helpful?
0 / 5 - 0 ratings