WordPress.org

Ready to get started?Download WordPress

Forums

Can't edit posts - Autosave is messing up (23 posts)

  1. csburdick
    Member
    Posted 3 years ago #

    This just started recently and I can't attribute it to any plugin changes as far as I can remember.

    It seems like I can edit newer posts, but not old posts (before I upgraded from legacy WP.) Again, this just started - I was able to edit old posts a couple weeks ago (I upgraded months ago.)

    When I update the post and hit the "Update" button, it reverts to the previous unmodified version and gives me the error: "There is an autosave of this post that is more recent than the version below. View the autosave." When I click on "View the autosave" it shows me the correct, modified version of the post, but when I click on "Restore," it just gives me that error again and goes back to the old version.

    It's like it's saving the correct version as autosave but won't let me revert to it. This is driving me nuts!

  2. csburdick
    Member
    Posted 3 years ago #

    I haven't been able to figure out exactly which posts will update and which will, but it just seems like it's the older ones that won't.

  3. csburdick
    Member
    Posted 3 years ago #

    bump...can anybody give me hand?

  4. csburdick
    Member
    Posted 3 years ago #

    Sorry to keep bumping this, but does nobody have a clue what's going on?

  5. Have you tried turning off AutoSave for a bit?

  6. csburdick
    Member
    Posted 3 years ago #

    Tried that (commenting out the autosave line on post-new.php and post.php)

    No luck, still says there's a newer autosave version and won't revert to it.

  7. antmeeks
    Member
    Posted 3 years ago #

    Sounds like you need to manually edit the entries in the "wp_posts" table in the DB.

    First back up the table, then delete the entries that you can't update after making sure that the auto-save versions are present. Then, for each auto-save, make sure of the following:

    Column "id" = the correct numeric id for the entry
    Column "post_status" = "publish"
    Column "post_name" = "the-correct-slug-for-your-page"
    Column "guid" = "http://yoururl.com/?p=the same numeric id as above"
    Column "post_type" = "post" or "page"

  8. csburdick
    Member
    Posted 3 years ago #

    Thanks for the reply, but is there any way to do this without my brain exploding? :) Are you saying I need to do this to EACH of the hundreds of posts affected?

    This seems to be a "worked one minute, suddenly it won't work anymore" thing, so I'd think there would be a solution that would just reverse it.

  9. csburdick
    Member
    Posted 3 years ago #

    Ok it looks like if I edit an old post but edit and save it before autosave kicks in it's fine and updates ok. It's only when it autosaves does it give me an issue.

    I edited post.php to disable autosave but I still have posts that did autosave that I desperately need to edit.

  10. There was a plugin out there that did that... Can't remember what it was. Might be post revision management or something similar.

  11. csburdick
    Member
    Posted 3 years ago #

    A plugin that caused the problem or fixed it? I wonder if it was a plugin update that did it because I haven't added any plugins lately.

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    If it's a revision control management plugin you're after - Revision Control

  13. That was the one I was thinking. You can use Revision Control to clean up old post revisions, which should help you with old posts.

    Also use this link: http://wordpress.org/extend/plugins/revision-control/

    (esmi, yours is locked for registered users only?)

  14. esmi
    Forum Moderator
    Posted 3 years ago #

    Oops - hadn't realised that. I'll correct it for any future posts. Thanks for the heads-up.

  15. shoppinggems
    Member
    Posted 3 years ago #

    I am glad someone else is having this issue because it just started for me too. Maybe it is a glitch in WordPress?

    I open any old post, even one I wrote yesterday, make a change and hit Update. It wipes out my updates. I downloaded and installed that plug-in suggested above and it does nothing.

    Help!! I have thousands of posts on my site.

  16. cchell
    Member
    Posted 3 years ago #

    Agrr, I see I am not the only one... this thing is driving me nuts! I can't update my pages, I can't delete them I can't change their status from draft to published...

    I need to blow some steam now, this is horrible :(

  17. shoppinggems
    Member
    Posted 3 years ago #

    Yes, that is also happening to me with the Drafts. I have a person who puts the posts in Draft for me so I can then edit and publish. I make changes and it reverts to her original post. This must be a WP glitch then.

  18. shoppinggems
    Member
    Posted 3 years ago #

    Wow, just found something else. It won't let me Delete posts either. I have some in Draft and it just keeps them there after I hit Delete. Crazy

  19. cchell
    Member
    Posted 3 years ago #

    hehe, yeap I noticed that too.. thats why I started this thread:

    http://wordpress.org/support/topic/cant-update-page-status-cant-erase-page-cant-update-content-either?replies=2

    I simply can't update the content of the post, can't change its status and can't delete the post either...

    How screwed up is that?!!

  20. cchell
    Member
    Posted 3 years ago #

    @shoppinggems ... After spending about an hour or so with my hosting-support guys they were able to figure out what the deal was... the SQL Database was corrupted so you need to repair it w phpMyAdmin .. OR you could have your hosting support guys repair the DB for you.

    Things are now back to normal on my side of things (^_^)

    Cheers! :)

  21. shoppinggems
    Member
    Posted 3 years ago #

    thanks, saw your reply on the other post. I appreciate you keeping me in the loop. Shooting off an email to the "tech guy" now :-)

  22. ange012
    Member
    Posted 3 years ago #

    I have this same problem. If I go to my page to make changes and press update, I sometimes get auto save with a pink highlighted section at the top. This is very confusing, especially since I'm new at WP. I clicked on compare revisions, then I get something saying to wake up & Matrix. Why am I getting this? Is this something wrong I'm doing? How can I get rid of the revised posts? This is very annoying.

  23. kargaa
    Member
    Posted 3 years ago #

    Go to PhpMyAdmin.

    Check all tables then select repair tables.

    Problem will be fixed!

Topic Closed

This topic has been closed to new replies.

About this Topic