WordPress.org

Ready to get started?Download WordPress

Forums

Permanently deleted page, can't re-use its permalink (12 posts)

  1. jordan@triplethreat.org
    Member
    Posted 2 years ago #

    So I created a page on my dashboard and gave it the permalink of "athletics"

    I needed a different page to have the permalink of "athletics" so I deleted the original page, went into the new page, and tried to change the permalink to "athletics"

    However, WP defaults it to "athletics-2" I went into the trash and permanently deleted the previous page that had "athletics".

    There's no other post or page using the permalink of "athletics."

    Any clue how I can change the "athletics-2" permalink to read just "athletics"?

    Thanks

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    empty trash for pages - it sounds like the old one is still in there

  3. jordan@triplethreat.org
    Member
    Posted 2 years ago #

    No. I already permanently deleted the page from the trash.

  4. cmegown
    Member
    Posted 2 years ago #

    If you have access to the database, you should dive in and see if you can find the post there. It shouldn't happen, but sometimes "trashing" a post doesn't delete it from the database, even "permanently trashing" one won't necessarily do it. If you find it in the database, delete it from there and your problem should be fixed.

    For future reference, I would just rework an existing page so that it fits the needs of your new page. Especially since it sounds like you just immediately trashed the original anyways - might as well avoid any potential issues like this :)

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    you should dive in and see if you can find the post there

    But not before you have backed up your database....

  6. cmegown
    Member
    Posted 2 years ago #

    TRUE TRUE TRUE. Forgive my bad advice, you need to always backup your database before you enter into it's terrifying depths - you will kick yourself bloody if you lose everything!

  7. Chip Bennett
    Theme Review Admin
    Posted 2 years ago #

    You may need to delete post revisions, too. I'm not sure how WordPress handles post revisions for deleted posts, but for some reason, they may still be in the DB.

    Bottom line: WordPress still thinks that there is a page with the slug "athletics".

  8. BonnieGK
    Member
    Posted 1 year ago #

    Had same issue with a home page. I created it and a comment box showed up on my static website home page. Went to help forums and found the only way I could get the comment box off a page was to delete the page and start over...created the replacement page and unclicked the allow comment box. The deleted "home" page is showing up on my website and gives an error message to anyone that goes to my site. Help! http://www.plantpurrfect.com

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @BonnieGK - per the forum guidelines, you should start a new thread if you need help rather than tacking on to an old one.

  10. JGrass
    Member
    Posted 1 year ago #

    I'm having the same problem. How do I find my post revisions?

  11. jussi.r
    Member
    Posted 1 year ago #

    I have the same problem but with posts. I have permanently deleted a post from trash but now I'm trying to use the same permalink with a new post. If I press "View post" I get 404 page of my theme.

    I looked into the database and here is listed all entries with the same post_title (the deleted and the new post has same title)

    +---------------------------------+------+------------------------------------+-------------+
    | post_title                      | id   | guid                               | post_status |
    +---------------------------------+------+------------------------------------+-------------+
    | Opettajille kiikarit ty▒el▒m▒▒n | 1431 | http://www.mysite.com/1425-revision-4/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1432 | http://www.mysite.com/1425-revision-5/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1433 | http://www.mysite.com/1425-revision-6/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1434 | http://www.mysite.com/1425-revision-7/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1407 | http://www.mysite.com/?page_id=1407    | trash       |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1408 | http://www.mysite.com/1407-revision/   | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1409 | http://www.mysite.com/1407-autosave/   | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1410 | http://www.mysite.com/1407-revision-2/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1415 | http://www.mysite.com/1407-revision-7/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1411 | http://www.mysite.com/1407-revision-3/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1412 | http://www.mysite.com/1407-revision-4/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1413 | http://www.mysite.com/1407-revision-5/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1414 | http://www.mysite.com/1407-revision-6/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1425 | http://www.mysite.com/?p=1425          | publish     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1426 | http://www.mysite.com/1425-revision/   | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1427 | http://www.mysite.com/1425-autosave/   | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1429 | http://www.mysite.com/1425-revision-2/ | inherit     |
    | Opettajille kiikarit ty▒el▒m▒▒n | 1430 | http://www.mysite.com/1425-revision-3/ | inherit     |
    +---------------------------------+------+------------------------------------+-------------+

    As you can see, there is one post with post_status "trash". I see no posts in my trashed posts in admin panel.

    EDIT: I deleted the post with "trash" status and now the permalink works with the new post.

  12. James1985
    Member
    Posted 1 year ago #

    Hello @cmegown

    "If you have access to the database, you should dive in and see if you can find the post there. It shouldn't happen, but sometimes "trashing" a post doesn't delete it from the database, even "permanently trashing" one won't necessarily do it. If you find it in the database, delete it from there and your problem should be fixed."

    How would I go into the Db to delelte the page that may be in there still?

Topic Closed

This topic has been closed to new replies.

About this Topic