WordPress.org

Ready to get started?Download WordPress

Forums

wordpress database error (6 posts)

  1. betchay
    Member
    Posted 8 years ago #

    WP was working fine until i upgraded to wp 2.0.2 and i'm sure i followed the instructions on upgrading... however, after posting a test page, i got this error...

    WordPress database error: [Duplicate entry '0' for key
    1]
    INSERT INTO wp_postmeta (post_id,meta_key,meta_value)
    VALUES ('0','_pingme','1')

    WordPress database error: [Duplicate entry '0' for key
    1]
    INSERT INTO wp_postmeta (post_id,meta_key,meta_value)
    VALUES ('0','_encloseme','1')

    Warning: Cannot modify header information - headers
    already sent by (output started at
    /home/account/domains/domain.name/public_html/wp-includes/wp-db.php:102)
    in
    /home/account/domains/domain.name/public_html/wp-admin/post.php
    on line 59

    any idea?

  2. betchay
    Member
    Posted 8 years ago #

    ooops... got it... the ID's just wouldn't increment...

  3. bpolhemus
    Member
    Posted 8 years ago #

    Okay, so how did you fix it? (I hate it when someone posts a problem, then says "oh, never mind, I fixed it!" without telling what you did. You DO realize the reason for this forum, don't you?)

  4. jasonrhouse
    Member
    Posted 8 years ago #

    Please tell us how you fixed it...I have the same problem and I thought that maybe it was the ID's not incrementing but I don't know how to fix it...thanks!
    Jason

  5. grandOPUS
    Member
    Posted 8 years ago #

    I was able to fix this problem by going into my database manually and setting the ID fields to auto-increment.

  6. misslisa
    Member
    Posted 8 years ago #

    could you please post exactly what to put in and where? I'm having the exact same problem and I can't make a new post without having to go in and manually edit it right after.

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags