• Resolved annrochelle

    (@annrochelle)


    Hi – Normally WordPress will display a message on the All Posts page stating something similar to, “Kevin is editing this post” and locking other users out from simultaneously editing that post.

    But yesterday I lost a bunch of work when another user saved his edits after I saved mine. And later in the day he lost work when I saved my edits shortly after he saved edits. Neither of us saw the usual “Kevin is editing this post” message on the way in to edit the post. Neither of us was blocked from simultaneously editing the post, or saw error messages or anything unusual before noticing our lost edits. We’re both admin-level users. WordPress version is current, 5.9.2.

    Any ideas that could explain this, or info on how to enforce the lockout of users so that only one person can edit a post at a time? I can’t find any settings for this.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The post locking feature uses the Heartbeat API to let your site know the session is still open with a user. Maybe you are running custom code or a plugin that enhances or disables it?

    To restore content from your lost work, please check if you can find multiple revisions of the post/page and copy past that into a new instance to restore your lost work.

    Thread Starter annrochelle

    (@annrochelle)

    Thanks for your reply. We did restore all lost work and now want to ensure it doesn’t happen again.

    Is there a way to search our site to see if anything is giving instructions to Heartbeat other than WordPress itself?

    We have no custom code like that – only custom mega menu code, and assorted code snippets for styling details. All custom code is over a year old, not recent.

    Found info about manually configuring or disabling Heartbeat in the theme’s functions.php file. Checked both our Divi theme functions.php and active child theme functions.php and there’s no mention of Heartbeat.

    Just installed the Heartbeat plugin – but don’t know if it will override other code, i.e. is it loaded first or last. I’ll run a test with the other admin user. To find out if he sees the “Another user is editing this post” lock message with, vs. without, the Heartbeat plugin active and configured to allow Heartbeat everywhere on the site.

    Thread Starter annrochelle

    (@annrochelle)

    Update: We are now seeing the “Kevin is editing this post/page” lock message correctly. Perhaps it was a weird problem just with that one post. Or perhaps me installing the Heartbeat plugin, telling it to enable pulsing site-wide, then de-activating the plugin, flushed something out of the system. In any case, this seems to be resolved. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress didn’t lock posts for editing’ is closed to new replies.