Title: Duplicate entry error
Last modified: August 18, 2016

---

# Duplicate entry error

 *  [JG](https://wordpress.org/support/users/gmgartner/)
 * (@gmgartner)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/)
 * Recently upgraded 4 sites with the same single download. A few minor problems
   that were worked out. One site, I am stuck on this:
 *     ```
       WordPress database error: [Duplicate entry '144-0' for key 1]
       INSERT INTO wp_term_relationships (object_id, term_taxonomy_id) VALUES ('144', '')
       ```
   
 * The database structure looks identical on one that is working properly. This 
   error occurs when you try to save, publish, or save and continue editing recently
   created posts. To clarify: a post must be saved or published and then opened 
   for edit before we get the error (thus the duplicate entry). I have a draft from
   before the upgrade that does not error, nor do existing published posts – only
   posts/drafts since the upgrade. The three other sites do not throw this error,
   new or old. I’ve disabled all plugins and used a default theme to no avail. Advice
   is appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640689)
 * The error is one that you can ignore.
 * Please see [Trac Ticket 5223](http://trac.wordpress.org/ticket/5223) for more
   details. Please note, you don’t have to install the patch there.
 *  Thread Starter [JG](https://wordpress.org/support/users/gmgartner/)
 * (@gmgartner)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640723)
 * Is this something that will go away with the next updates? It’s kind of a nuisance.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640731)
 * There’s a fix that’s been committed so that should go away in a future update.
 *  Thread Starter [JG](https://wordpress.org/support/users/gmgartner/)
 * (@gmgartner)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640739)
 * Any info on how to fix it manually? I saw in the bug report an edit for upgrade.
   php. I’ve already ran the upgrade so that won’t do anything.
 *  Thread Starter [JG](https://wordpress.org/support/users/gmgartner/)
 * (@gmgartner)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640807)
 * This issue is still around after the recent patch. Any idea when it will go away?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Duplicate entry error’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [JG](https://wordpress.org/support/users/gmgartner/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/duplicate-entry-error/#post-640807)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
