“You attempted to edit an item that doesn’t exist. Perhaps it was deleted?”
-
I was editing a post, when I noticed the editor became unresponsive after an alert indicating a failure to update. I tried previewing the post, and the preview loaded very slowly, never completely finishing. I found I couldn’t even hit the main page in my browser, so I tried opening up a new private window, which did allow me to access my blog and login. The post I was editing was listed among my drafts, and I could still preview some of it, but whenever I tried to edit it there I got the error message above. It clearly isn’t deleted because it’s still listed in my drafts, and I can preview some of it. Perhaps there’s some problem with the “block” editor, but I can’t load it up to edit it as code. I don’t want to close my original browser either, because there are edits I made that don’t appear to be saved when I preview the post.
The blog I need help with is: (visible only to logged in users)
-
My original browser window’s editor started responding again, but now every time I click “Save draft” I get the alert “Updating failed. An unknown error occurred.”
-
When I got the editor to be responsive enough to switch to the code editor, and then when that got responsive again, the Save Draft worked without error. So perhaps the Visual/Block editor really is the problem.
-
Editing in the private window never stopped producing the error up top. And the time listed for the last save for the entry’s listing under “Posts” is still hours ago, so perhaps it didn’t actually save. In that case, the path forward would appear to be to wait until the original editor (hopefully) loads up again and becomes responsive, then copy the code from there into a text editor so I can save it off of WordPress and not lose my current edits.
-
It appears the same error appears if I create a duplicate editing tab in the original window. Since I’ve now saved the code there is some hope of at least starting a new draft if the original one is inaccessible, though I expect similar errors are likely to pop up once I try.
-
I now see that saving in the code editor also produces the same error, but it only appears visibly if I’ve scrolled up to the top of the page.
-
If I turn on the inspector in the browser, I see that every time I try to save a draft, the PUT command gets a 500 request back, with no response body to indicate what specifically the error is.
-
I’m trying to create a new draft, gradually adding code from that text file, but at a certain point previews stop reflecting changes, and when I scroll up I see there’s that message of a failure to update on saved drafts. I wonder if there’s a size limit on posts now?
-
It seems that by copying quotes in the Visual Editor, code was produced with custom “wp” tags wrapped in “p” tags and missing their end tags. Manually going through and fixing those has been working so far. I take this as an indicator I should never use the visual editor, which has gotten less and less functional over time.
- The topic ‘“You attempted to edit an item that doesn’t exist. Perhaps it was deleted?”’ is closed to new replies.