academic-bloggers-toolkit icon indicating copy to clipboard operation
academic-bloggers-toolkit copied to clipboard

Edits spontaneously revert while editing a reference

Open glorious1 opened this issue 6 years ago • 7 comments

ABT Version: 5.1.0

PHP Version: 7.3.6

Theme: GeneratePress

Plugin List: I deactivated all others with Site Health troubleshooting; still happened.

Browser: Firefox 67.0.4, also happens in Safari

Expected behavior: While editing an imported reference in ABT, changes persist.

Actual behavior: Edits revert while I am editing after 10-20 seconds. I don't have to do anything - make a small change, then sit back and wait before saving. When making several edits, I can't finish and save before they start reverting.

Console messages:

// Paste messages here
JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:8:552
onmozfullscreenchange is deprecated. components.min.js:12:80764
onmozfullscreenerror is deprecated. components.min.js:12:80764


glorious1 avatar Jul 05 '19 17:07 glorious1

Can you take a screen recording of this?

dsifford avatar Jul 05 '19 20:07 dsifford

Here is a recording. Here it took about 25 seconds to revert, but I think it varies. If I make several changes over time, they all revert in the same moment.

edit_reversion.mp4.txt

glorious1 avatar Jul 05 '19 21:07 glorious1

Ah, so this happens in the edit reference dialog and not in the editor?

dsifford avatar Jul 05 '19 22:07 dsifford

Right, sorry if that wasn't clear.

glorious1 avatar Jul 05 '19 22:07 glorious1

Hi, I believe this is caused by the block editor's autosave feature. There are code snippets and plugins to disable it. I use 'EditorsKit' plugin which provides a handy toggle for this purpose.

adriandomenico avatar Apr 03 '20 18:04 adriandomenico

Thanks, that sounds like a reasonable explanation. So switching off autosave with that plugin prevents it from happening?

glorious1 avatar Apr 03 '20 20:04 glorious1

  1. Correction: Disabling the editor auto-save does not resolve this problem. (Sorry about that) I have used plugins, and code snippets in wp-config.php and functions.php but to no avail. I believe this workaround worked in WP 5.3 but in 5.4 when editing a reference it 'reverts' to the saved version within about 20 seconds.

  2. Cannot change the citation type. Adjusting an entry from Journal Article to Web Page for example and configuring the dialogue before it reverts, does not save the changes. However, changing details within the originally configured citation type does save, if completed before it reverts.

I notice that even when the editor auto-save is disabled, when saving an edit to a reference the editor performs an update which I presume is triggered by the plugin. So perhaps it is something to do with the plugin after all?

If I come up with a fix, I'll let you know.

adriandomenico avatar Apr 04 '20 17:04 adriandomenico