Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Block Editor: Sometimes autosaves get "stuck" and do not persist changes #36191

Closed gwwar closed 1 year ago

gwwar commented 5 years ago

Some folks are reporting that autosaves get "stuck" without actually persisting content. Unfortunately when this happens and a save is in progress, users cannot manually save because the UI is in a waiting/loading state.

See https://github.com/Automattic/wp-calypso/issues/33362 for some details (though I suspect this can happen in other ways).

Instead of trying to reproduce:

davoraltman commented 4 years ago

One more report of this. Site 148687910 in 2644913-zen

The auto-saving gets stuck:

Screen Shot 2020-01-19 at 4 20 51 PM

The post in draft can't be published and sometimes the preview can't be viewed.

joweber123 commented 4 years ago

@gwwar The site mentioned in the above comment by @davoraltman may be a good one to take a look at as this issue can be reproduced consistently by trying to create a post on this site and clicking the save button.

Here is a video: https://d.pr/i/ftkCRd Screen Capture on 2020-01-20 at 18-59-56

The error that I am seeing in the console after clicking the save button is the following.

uncaught exception: Object

joweber123 commented 4 years ago

Update: I have done some more testing and it appears that this is connected to the theme Full-Frame.

https://wordpress.com/theme/full-frame

I am able to reproduce this on a test site as well when this theme is activated as well. So far this is the only theme I have seen this issue on. I get the same error as above and am unable to save.

davoraltman commented 4 years ago

Great find, @joweber123 ! I can confirm I can reproduce this on my test site with the Full Frame theme activated.

gwwar commented 4 years ago

cc @johnHackworth for triage

cathymcbride commented 4 years ago

This issue appears to only happen on this retired premium theme. Investigating how we handle this....

github-actions[bot] commented 3 years ago

This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels.

gwwar commented 3 years ago

cc @obenland for triage, as a reminder for devs simulate an error case and see if the UI is still locked.

formosattic commented 3 years ago

Another report, with the active premium theme Twotone.

More details at p2EDhh-1iQ-p2

pauljacobson commented 1 year ago

I have a report of this issue in 5929222-zen where the site uses Independent Publisher 2.

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Example - Simple Site, Full Frame

https://user-images.githubusercontent.com/27249804/233167763-5092f2f5-f019-498d-a598-ba82327bd69f.mp4

History

This has had reports periodically over the years, as well, such as:

But it doesn't seem that a consistent bug has been identified - it's just an unpleasant experience for the user when this happens.


📌 ACTIONS

📌 Next Steps

For users, we also offer advice here on best practices to ensure autosave preserves their work correctly: https://wordpress.com/support/editors/page-post-revisions/#recover-lost-content-on-a-post-or-page