Skip to content
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

Autosaving never ends #9220

Open
moriartyviccar opened this issue Aug 22, 2018 · 18 comments

Comments

Projects
None yet
@moriartyviccar
Copy link

commented Aug 22, 2018

Describe the bug
Autosave feature will decide to start saving the article, then won't stop and I can't publish or come out of the article because it's still in the process of saving. If I close the window and go back,it will have saved the text, but not images. Though Blocks for images and galleries are there along with corresponding caption texts.

To Reproduce
Steps to reproduce the behavior:

  1. Just use Gutenberg and start a new post
  2. Article will start to autosave
  3. See error

Expected behavior
I want to be able to save when I want to, not when the system decides to.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome

Additional context

  • Version 3.6.2
@designsimply

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2018

May I ask what web host you are using and whether you have a reliable internet connection? (Just want to note these things as a first step in case they are relevant.)

I am unable to get autosaving to break in testing so far. Does this problem only happen for you when uploading images and galleries? May I ask how many blocks you typically have in a post and how many images total you typically add when you see this problem happen?

@moriartyviccar

This comment has been minimized.

Copy link
Author

commented Aug 22, 2018

Hi,

my webhost is Bluehost and I do have a reliable connection, but I admit it seems to be very slow at the moment. Normally I run at 16Mbps but it's currently 4Mbps according to a Ping test.

As an example I clicked on an article with around 20 blocks, 1600 words and anything up to 40 images - which I appreciate is a lot but had been resized down to 2000x1333px - and it was still frozen in autosave 5 hours later. Classic Editor never had that problem. I've had to disable it for now as I have too much work to do and it's slowing me down far too much but I will reactivate it if you need me to test anything.
Many thanks

@designsimply

This comment has been minimized.

Copy link
Contributor

commented Aug 22, 2018

Thank you for the extra info. I think this might be mainly media related. For the images, do you typically drag and drop all 40 in to the post in one go?

Creating a post with 40 images at ~2000x1333px each is a good thing to note for testing and I'll add the Needs Testing label for that.

@moriartyviccar

This comment has been minimized.

Copy link
Author

commented Aug 23, 2018

Hello, I insert some as single images as it's a magazine so I scatter them to compliment the writing. Some I upload as galleries. I upload them all onto the Media Gallery at once but I place them sporadically so it's not all working at the same time.
I admit, I normally use save for web but because I had so many pictures, I created an action in Photoshop to resize them by batch process so they weren't compressed in the same way save for web does.

@rosell-dk

This comment has been minimized.

Copy link

commented Oct 5, 2018

I experience this issue as well.
It is not related to images. As this screenshot shows, it happens the first time it tries to autosave. As also shown in the screenshot, the request to "index.php?rest_route=/wp/v2/posts/4/autosaves" just keeps pending
screenshot_2018-10-05_09-50-41

@rosell-dk

This comment has been minimized.

Copy link

commented Oct 5, 2018

screenshot_2018-10-05_09-56-47

@rosell-dk

This comment has been minimized.

Copy link

commented Oct 5, 2018

It happens every single time I try to create a post

@doughatlem

This comment has been minimized.

Copy link

commented Oct 8, 2018

I just opened up a similar report, but it was text with me the that was lost. Unlike another commenter, I cannot get it to reproduce. It happened after I had been away from machine and the post for an hour or so and meant I lost several paragraphs (I tried to hit ctrl/cmd-v to save after highlighting the whole post before refreshing the page, but that did not work. My internet is fairly reliable and fast, but the wi-fi (Rogers in Canada) auto switches between the 5G and regular connection depending partly upon who else is in the house and what kind of bandwidth they are using. It may be that I was switched between the 5G and regular connection when I returned to the post. At that point, the autosaving feature as stuck, but I did not notice until I had composed two or three more paragraphs, which I then lost, as well as the last paragraph or so from the previous session.

@edindubai

This comment has been minimized.

Copy link

commented Nov 24, 2018

I get this a lot, never added images only text. I am also with Bluehost but the Bluehost plugin is disabled. I have a fast connection 50mbps but Bluehost + wordpress is crushingly slow all chrome console reads complain of bad network, I figured bluehost was just a bad match with wordpress so thought of moving but then see Wordpress recommend bluehost as best experience. If I try and generate a preview of the page this also hangs with the W logo constantly redrawing itself. You have to copy past the entire post then load a new page and then come back and paste in the latest edit to rescue it. It justs flips between flashing saving and flashing autosaving in top right.
word

@vadi2

This comment has been minimized.

Copy link

commented Dec 21, 2018

I got autosave stuck while on a poor connection - there was no way to cancel it and as a result, I lost content when I had to reload the page.

@dameer

This comment has been minimized.

Copy link

commented Jan 3, 2019

PLEASE ALLOW DISABLING AUTOSAVE, IT'S IMPOSSIBLE TO WORK! I'm pulling my hair off coz autosave interrupts the main purpose of editor: TO EDIT TEXT.

@jaypeeperos

This comment has been minimized.

Copy link

commented Jan 3, 2019

You may paste this code on your theme's functions.php

add_filter( 'block_editor_settings', 'jp_block_editor_settings', 10, 2 );

function jp_block_editor_settings( $editor_settings, $post ) {
	$editor_settings['autosaveInterval'] = 2000; //number of second [default value is 10]

	return $editor_settings;
}
@dameer

This comment has been minimized.

Copy link

commented Jan 3, 2019

Woohoo! Thanks jaypeeperos, that's kinda lifesaving. Damn Gutnbrg...

@ombion

This comment has been minimized.

Copy link

commented Feb 12, 2019

I have similar issue with Autosave and found this thread. Using latest Firefox, and host provider is Bluehost. Connection should not be an issue for me as I'm on fiber with super fast speeds.

While I work in the editor, autosave kicks in and it just gets stuck there. I can't get out of it. Then I have to refresh the screen and lose the work. This sucks. So I resort to copying the page code before going for a bail out.

There maybe browser, theme, plugin, server issue to cause this. Thing is, autosave is not a feature I need or want - more problem the help. I can save the work myself when I want to. All I wish is there's an easy setting to turn this unnecessary feature off for good.

Thanks.

@pawel-tomkiel

This comment has been minimized.

Copy link

commented Mar 15, 2019

Well, I may be a little biased, because of all Gutenberg bugs. However - if I understand this problem correctly - Gutenberg needs to stay reliable even if connection is not. Always assume that conditions and environment may change. Handling lost connection looks like first thing when developing autosave function.

I can confirm this issue. Probably related to lost Wi-Fi connection. For example when I'm writing something and close laptop lid for a moment.

What I expect is behaviour like:

  • timeouting autosave when connection is lost
  • showing save error or not - doesn't matter
  • but giving a way to retry saving would be great

It's especially frustrating, as if autosave is stuck, there is no way to save content manually.

@MikeWhelan

This comment has been minimized.

Copy link

commented Mar 21, 2019

Just want to add I'm also having this problem. I have a 200mbps fibre optic connection to the office and am connected to the router via Gigabit Ethernet. The host server is located in the same country (UK). It's impossible to use. Thanks for posting the code to disable it.

@Hoodlum-Z

This comment has been minimized.

Copy link

commented Mar 31, 2019

I have this exact same issue and am also on BlueHost.

The classic editor used to save in two parts, the tick and then a spinner. It would save on the tick, but the spinner always took longer for some reason.

With Gutenberg the process is still in two parts, but way longer on each part. The first part is the two-tone bar, which takes a while.

Secondly the flashing cloud that takes absolutely forever.

I only have say 8 blocks and one cover image. Regardless of what I have saving the problem is the same.

@TheTracyL

This comment has been minimized.

Copy link

commented Apr 28, 2019

This happens to me all the time too. I have to back out of the post then fingers crossed that latest version is in autosave.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.