Title: Database Error for Duplicate Entry
Last modified: February 27, 2018

---

# Database Error for Duplicate Entry

 *  [howellsolutions](https://wordpress.org/support/users/sswsweb/)
 * (@sswsweb)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-duplicate-entry/)
 * When I enter any new page into a menu be going to “appearance” & “menus”, I get
   get 9 different errors that are just like this:
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_type’,‘
   post_type’)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_menu_item_parent’,‘
   0’)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_object_id’,‘
   3033’)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_object’,‘
   page’)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_target’,”)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_classes’,‘
   a:1:{i:0;s:0:\”\”;}’)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_xfn’,”)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_url’,”)
 * WordPress database error: [Duplicate entry ‘5531’ for key ‘PRIMARY’]
    INSERT 
   INTO `wp_postmeta` (`post_id`, `meta_key`, `meta_value`) VALUES (3035, ‘_menu_item_orphaned’,‘
   1519757827’)
 * Any help would be greatly appreciated!

Viewing 1 replies (of 1 total)

 *  [Rajan Vijayan](https://wordpress.org/support/users/rajanit2000/)
 * (@rajanit2000)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-duplicate-entry/#post-10021201)
 * This may be a plugin or theme conflict. Please attempt to disable all plugins,
   If the problem goes away, enable them one by one to identify the source of your
   troubles.
 * If you can install plugins, install “Health Check”: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
   On the troubleshooting tab, you can click the button to disable all plugins and
   change the theme for you, while you’re still logged in, **without affecting normal
   visitors to your site**.

Viewing 1 replies (of 1 total)

 The topic ‘Database Error for Duplicate Entry’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Rajan Vijayan](https://wordpress.org/support/users/rajanit2000/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-duplicate-entry/#post-10021201)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
