• Resolved antoniamar

    (@antoniamar)


    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

    (@michaelh)

    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?

    Chris_K

    (@handysolo)

    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

    (@antoniamar)

    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

    (@antoniamar)

    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.