WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] is there a bug with trash function?? (22 posts)

  1. andymellie
    Member
    Posted 4 years ago #

    Hi

    http://www.thegasfitter.co.uk/central-heating-services-2

    I trashed the post central heating services but then created another one of the same name.

    I have tried going in and editing the permalink by removing the number 2 but once the page is published it reverts back to the 2 again.

    A wootheme ninja in the support forum suggest there is a bug with the trash function. Who do I report it to or what can I do??

  2. Roy
    Member
    Posted 4 years ago #

    I suppose that when a post is in the thrash, it is still in the database. Try clearing trash before creating a new post or changing the permalink.

  3. andymellie
    Member
    Posted 4 years ago #

    Thanks Gangleri

    But how do you clear trash in wordpress 2.9.1 ?

  4. mrmist
    Forum Janitor
    Posted 4 years ago #

    Go to the edit posts view, then click the link for "trash" then click the Empty Trash button

  5. andymellie
    Member
    Posted 4 years ago #

    Hi Mr Mist

    Thanks for help.
    I deleted the page central-heating-services2 and then emptied it from the trash permanently.

    I then created the page central heating services again BUT I still have a permalink thats central-heating-services2.

    Any other suggestion?

  6. mrmist
    Forum Janitor
    Posted 4 years ago #

    It suggests that you have a page or post that is using the http://www.thegasfitter.co.uk/central-heating-services/ address, as otherwise WordPress would re-use it. (I know it does re-use it as I just tested trash+delete in 2.9.1)

    Check all your posts and pages.

  7. andymellie
    Member
    Posted 4 years ago #

    I have checked and double checked my pages and posts.
    There are 6 pages (which you can see on the website) and 0 posts.

    There is no reference anywhere to central-heating-services only central-heating-services2

  8. Roy
    Member
    Posted 4 years ago #

    Just a thought, WP makes post revisions since 2.6, maybe the definate version of the post is now flushed, but not the revisions. See:
    http://www.mydigitallife.info/2008/07/22/how-to-delete-existing-wordpress-post-revisions-storedsaved/

    http://wordpress.org/extend/plugins/delete-revision/

    Otherwise it must be some kind of cache or maybe existing permalinks are stored separate from the post itself. I don't really know.

  9. andymellie
    Member
    Posted 4 years ago #

    Hi Gangleri

    Tried the delete revision tool and it works (although it hadn't been tested with 2.9.1 yet).

    Alas, it hasn't solved the problem. The number 2 is still there on the page permalink.

    Guess I'm stuck with it now. .

  10. andymellie
    Member
    Posted 4 years ago #

    Would it make any difference if I deleted everything from the server and started again?

    I haven't done that much to the site so it wouldn't take long to get back to where I was. Just don't want to do that if it wouldn't make a blind bit of difference?

    Thanks everyone for your help

  11. Roy
    Member
    Posted 4 years ago #

    When the revisions are gone, can you change the permalink or still not?
    It sounds a bit like overkill to delete the whole thing. If WP thinks the permalink is already in use, it has to be somewhere, but where?!?

  12. andymellie
    Member
    Posted 4 years ago #

    When I edit the permalink it does change. However, when I publish the page it reverts back to the link with the number.

    I did the above only after deleting all revisions as you suggested.

  13. Roy
    Member
    Posted 4 years ago #

    I'm afraid I'm out of options, but I'm convinced that WP stores permalinks somewhere separate from the post itself...

  14. andymellie
    Member
    Posted 4 years ago #

    Thanks anyway

  15. jimtron
    Member
    Posted 4 years ago #

    I've got this problem as well. I've tried the suggestions above, as well as the WPSuperCache plugin. An example: my about page URL is /about-4. I edit the page (via Dashboard), click on edit permalink, and remove the "-4". Which seems to work, until I update the page--then it reverts back to the -4 URL. I'm running WP 2.9.2.

    I'd love to find a solution for this.

  16. jaybee226
    Member
    Posted 4 years ago #

    Did you ever find a solution? I am having the same problem. Thanks.

  17. heavym
    Member
    Posted 4 years ago #

    This happens in WordPress 3.0 with a custom post type as well exactly as others have noted. Tried emptying the trash and their are no revisions enabled for this custom post type. Hopefully someone solves this one, other than starting from scratch. I did a search in all tables in the database and it only fiends "name2" rather than "name".

  18. heavym
    Member
    Posted 4 years ago #

    [Resolved] 1 ) Make sure you delete the original article first and when in your post or custom post type at the top where it says Trash(1) empty your trash. This has been mentioned before.

    What was not mentioned was after changing the url from "name2" to "name" do not click "update" you must first click "ok" to commit the permalink change, then click "update". Problem solved and tested in WordPress 3.0b2.

    Cheers,
    Christopher Beckwith

  19. rlihm
    Member
    Posted 4 years ago #

    Hi all,

    I had the same problem (in my case it was impressum vs. impressum-2) and solved it this way:

    1. Took a look with phpmyadmin on the DB my WordPress (2.9.2) is using
    2. Open the wp_posts table
    3. Delete all entries of my buggy page. Look out for the post/page title in the post_title row.

    That's it.

    Cheers,
    Robert

  20. Mike
    Member
    Posted 3 years ago #

    where is the empty trash button in wordpress 3.0?? I dont see it anywhere

  21. Go to the Posts or Pages section of your admin panel, select "Trash" near the top (will only appear if posts or pages are in the trash) and click the "Empty Trash" button.

  22. Mike
    Member
    Posted 3 years ago #

    found it, my bad

Topic Closed

This topic has been closed to new replies.

About this Topic