-
Notifications
You must be signed in to change notification settings - Fork 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
FSE: Pages with autosaves cannot be previewed [2] #35484
Comments
Initial investigation of this shows that it is not FSE site specific. The same error seems to occur on any Simple or Atomic site when following the above steps. For some reason the /wp-calypso/apps/wpcom-block-editor/src/calypso/iframe-bridge-server.js is sending a null preview url if a page has an autosave. Just need to work out how to debug the iframe-bridge-server so I can work out why this is. |
Got some debugging into iframe-bridge-server and now suspect it is something to do with the following in /wp-content/plugins/gutenberg/packages/editor/src/store/reducer.js
as in some instances (but not all it seems) related to autosaves the getEditedPostPreviewLink selector returns null, because the editorState.previewLink is null. Still trying to work out why that is, but if that situation rings any bells with you let me know. |
some potentially useful information here which I haven't had chance to read through yet WordPress/gutenberg#7179 & WordPress/gutenberg#7852 |
Calypsoify is definitely still displaying the behaviour noted here - WordPress/gutenberg#7852 (comment) which is supposed to have been fixed in WordPress/gutenberg#7945. I can't replicate the issue in block editor in wp-admin, only in calypsoify - which is running a version of the editor that should include the above fix. Will do some more digging tomorrow. |
Duplicate issue - #33799 |
fixed by #35824 |
The easiest way to reproduce this is to preview any page one time, since this will trigger an autosave (but I don’t understand why, there are no changes in the content. This also makes the issue with the revisions above more noticeable).
The second time you try to preview a page, the modal will show a gray background.
The text was updated successfully, but these errors were encountered: