Title: Cannot save &#8211; strange database error message &#8211; please help.
Last modified: August 19, 2016

---

# Cannot save – strange database error message – please help.

 *  [cyrillsneer](https://wordpress.org/support/users/cyrillsneer/)
 * (@cyrillsneer)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/)
 * This is happening 75% of the time now as opposed to a much much less frequently
   a month ago.
 * When trying to save edits or publish a new story I sometimes get the following
   error.
 * When going back to the story after seeing this message sometimes the edits are
   saved sometimes they are not.
 * Any ideas would be greatly appreciated.
 *     ```
       WordPress database error: [Duplicate entry " for Key 2]
       INSERT INTO wp_terms (name, slug, term_group) VALUES ('', '', '0')
   
       Wordpress database error: [Duplicate entry '0-post_tag' for key 2]
       INSERT INTO wp_term_taxonomy (term_id, taxonomy, description, parent, count) VALUES ('0', 'post_tag', '', '0', '0')
   
       Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxxx/xxxx/xxxxx/domains/domainname/html/wp-includes/wp-db.php:160) in
       /xxx/xxxx/xxxx/xxxxx/domains/domainname/html/wp-includes/pluggable.php on line 391
       ```
   

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/#post-669689)
 * Wonder if something hasn’t happened to the indexes on you tables.
 * See if your tables have the correct indexes using [phpMyAmdin](http://codex.wordpress.org/phpMyAmdin).
 * Here’s what my 2.3.1 indexes look like for the 3 terms related tables.
    [http://i162.photobucket.com/albums/t249/wpphotobucket/term_indexes.png](http://i162.photobucket.com/albums/t249/wpphotobucket/term_indexes.png)
   [http://i162.photobucket.com/albums/t249/wpphotobucket/term_taxonony_indexes.png](http://i162.photobucket.com/albums/t249/wpphotobucket/term_taxonony_indexes.png)
   [http://i162.photobucket.com/albums/t249/wpphotobucket/term_relationships_indexes.png](http://i162.photobucket.com/albums/t249/wpphotobucket/term_relationships_indexes.png)
 *  Thread Starter [cyrillsneer](https://wordpress.org/support/users/cyrillsneer/)
 * (@cyrillsneer)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/#post-669796)
 * Thanks for the reply but to be honest I am not really sure what I am looking 
   for or how to correct it, any chance of a link that could explain it, it is getting
   to the point where people cannot post new stories.
 * Sorry.
 *  Thread Starter [cyrillsneer](https://wordpress.org/support/users/cyrillsneer/)
 * (@cyrillsneer)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/#post-669810)
 * I was looking around some forums and some suggested I “drop ” all the plugin 
   tables.
 * I am thinking about backing up and repopulating the database but I have no idea
   if this will help.
 * I would say 85% of new posts now get this error.
 * ——————————————————–
    WordPress database error: [Duplicate entry ” for key 2] 
   INSERT INTO wp_terms (name, slug, term_group) VALUES (”, ”, ‘0’)
 * WordPress database error: [Duplicate entry ‘0-post_tag’ for key 2]
 * INSERT INTO wp_term_taxonomy (term_id, taxonomy, description, parent, count) 
   VALUES (‘0’, ‘post_tag’, ”, ‘0’, ‘0’)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /xxx/xxxx/xxxxxx/xxxxx/domains/xxxxxxx.com/html/wp-includes/wp-db.php:160)
   in/xxx/xxxx/xxxxxx/xxxxx/domains/xxxxxxx.com//html/wp-includes/pluggable.php 
   on line 391
 *  Thread Starter [cyrillsneer](https://wordpress.org/support/users/cyrillsneer/)
 * (@cyrillsneer)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/#post-669824)
 * bump.
 * Is there are any other resources someone could point me in the direction of, 
   our blog is basically crippled until I fix this.

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

The topic ‘Cannot save – strange database error message – please help.’ is closed
to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [editing](https://wordpress.org/support/topic-tag/editing/)
 * [Saving](https://wordpress.org/support/topic-tag/saving/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [cyrillsneer](https://wordpress.org/support/users/cyrillsneer/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/cannot-save-strange-database-error-message-please-help/#post-669824)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
