Support » Fixing WordPress » Strange issue – possible duplicate slug?

  • Resolved bookletgeo


    I have run across the problem before that wordpress will not prevent the creation of duplicate slugs on our site. My business partner recently wrote a blog post with the same name as a page on our site and wordpress did not prevent the slugs from being the same which caused a little bit of confusion. This week something similar is happening, but I can’t find the source of the problem.

    My business partner once again has written a blog post that is scheduled to post on this Thursday (1/10/13.) The slug showing on her blog post is: But, as you can see if you go to that link, this slug is already showing on our system. It looks like it is a media file, because instead of “Edit Post” as an option up on the menu bar, I am given the option to “Edit Media.” But, I have searched every nook and cranny of our media files and can’t find this slug. Where could this be hiding? I’m hoping to find the problem before Thursday so that her blog post will post correctly.

    I’d rather not have to change the slug of her post as this is an ongoing series on our blog and I need users to be able to look up these Trim Tips easily based on the slug.

    UPDATE: After a little bit of looking at the source code for this slug, I can see what post id# it is tied to on our site, but can’t find that post id anywhere. There is no trash link showing for our posts, so I can’t search there. I did search through trash for pages and there is one item there, but it is not related to this post or picture. Still confused…hopefully on the right track?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p


    have you tried:

    -deactivating ALL plugins (yes, all) temporarily to narrow down the problem. If the problem goes away, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive). If applicible, also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old
    – To rule out any theme-specific issue, try switching to the unedited default twenty eleven theme for a moment using the WP dashboard. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes via FTP or SFTP or whatever file management application your host provides.

    Perhaps it’s because I don’t understand the nature of WordPress enough, but I don’t entirely understand how to use this answer. Which problem exactly would this help solve? The fact that we can create duplicate slugs? Or somehow actually helping me find this particular ‘phantom’ post?

    Okay, I have tracked this down in the database, but I am scared of modifying the database. The post id is in the database with a post_status of “inherit” and a post_type of “attachment.” But, when I look at the actual photo in my media files it says it is unattached. Perhaps it accidentally got attached at some point and then that got left in the database? Can I safely just delete this post from the database?

    UPDATE: Getting closer to the answer! This post seems to describe the problem with the slugs, but I’m still not sure how to fix? I don’t know what he means by “insert the buggy attachement into the page (any page or post), save, and then you may remove it from the content.”

    Just backed up the database and then went ahead and deleted the offending post on the database. All seems to be working. Crossing my fingers I didn’t break anything by deleting that line from the database!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strange issue – possible duplicate slug?’ is closed to new replies.