Title: Suddenly getting database error when posting and saving
Last modified: August 18, 2016

---

# Suddenly getting database error when posting and saving

 *  Resolved [antoniamar](https://wordpress.org/support/users/antoniamar/)
 * (@antoniamar)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/)
 * I was writing a new post. Although the post gets saved and published, when I 
   click the Save and…, Save or Publish button, I get the following error message:
 * WordPress database error: [Unknown column ‘none’ in ‘field list’]
    INSERT INTO
   wp_post2cat (post_id, category_id) VALUES (32, none)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/frigginw/public_html/blog/wp-includes/wp-db.php:121) in /home/frigginw/
   public_html/blog/wp-includes/pluggable.php on line 275
 * Not a programmer so, not sure what I should do. Your help is appreciated.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/#post-545000)
 * That error is usually a result of some extra white space in a script (php) file.
   Did you install a plugin or theme. Can you change themes?
 * Additional resource:
    [Hod do i solve the header already sent problem?](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/#post-545010)
 * The “real” error is:
 * > WordPress database error: [Unknown column ‘none’ in ‘field list’]
   >  INSERT INTO
   > wp_post2cat (post_id, category_id) VALUES (32, none)
 * What’s changed with the blog recently? (assuming it worked at some point). Any
   new plugins? Upgrades?
 *  Thread Starter [antoniamar](https://wordpress.org/support/users/antoniamar/)
 * (@antoniamar)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/#post-545295)
 * I did add several plugins although I don’t remember in exactly what order. I 
   tried deactivating them. I did edit some php files but did not notice problems
   before. I put back the original pluggable file (I hadn’t touched the wp-db.php
   file) but that didn’t change anything.
 * I don’t really understand what the database error is telling me — I’m just poking
   around with this.
 * One thing I did learn was that when it comes to adding a post–I only get the 
   error if I forget to select a category. Since I had not made that mistake previously,
   now I’m not sure how long I’ve had the problem. But I also discovered today that
   even though that clears the problem with the post, I still get that same error
   message when I upload a file (although it gets uploaded anyway and I can add 
   it once I reload the post.)
 * Not sure what to do next.
 *  Thread Starter [antoniamar](https://wordpress.org/support/users/antoniamar/)
 * (@antoniamar)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/#post-545296)
 * Ok, I guess I am being blessed by the WordPress Gods. The problem has disappeared.
 * Because of what happened with the unselected categories, I double-checked my 
   default post setting because nothing should have been showing up as Uncategorized.
   That’s not even on my list of categories. Somehow my chosen default category 
   setting had been “unselected.”
 * I change the default post setting back to the way I had it. That seem to have
   worked.

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

The topic ‘Suddenly getting database error when posting and saving’ is closed to
new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [antoniamar](https://wordpress.org/support/users/antoniamar/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/suddenly-getting-database-error-when-posting-and-saving/#post-545296)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
