Support » Requests and Feedback » Help Me! [WordPress database error]

  • Resolved sim_dawdler

    (@sim_dawdler)


    Hi! This is my blog: http://www.zeteti.com/blog

    When posting comment, there’s this error:

    WordPress database error: [Duplicate entry ‘934’ for key 1]
    INSERT INTO wp_comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, user_id)

    and

    Warning: Cannot modify header information – headers already sent by (output started at /home/mhd-03/www.zeteti.com/htdocs/blog/wp-includes/wp-db.php:98) in /home/mhd-03/www.zeteti.com/htdocs/blog/wp-comments-post.php on line 51

    […]

    I’m a WordPress PHP, Mysql and so on newbie. Please, help me!

Viewing 9 replies - 1 through 9 (of 9 total)
  • I follow this instruction, but it doesn’t help:
    http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

    HELP! 🙁

    While you still can, edit out all the redundant crap in your first post. Did you check wp-dp.php and remove any extra whitespace?

    Thanks for the reply.

    > Did you check wp-dp.php and remove any extra whitespace?

    Yes. 🙁

    Please, pleeeeeeeeease, pleeeeeeeeeeeeeeease HELP ME! :((

    <i>WordPress database error: [Duplicate entry ‘934’ for key </i>/

    934 is the number of last comment posted. Now this comment is disappeared. 🙁

    Mark (podz)

    (@podz)

    Support Maven

    What were you doing before all this ?
    Any plugins ?
    Any other code added ?
    Anything edited ?
    When did it last work well and what happened in between – something did.

    There are many plugins (but only two activated) and I edited original theme, but three hours ago everything was OK. In my last post there are three comments, posted without any problems. The fourth comment (number 934) generate (?) the error.

    Is it possible? ARGH! I don’t understand, I don’t understand…:(

    The line with error in wp-dp.php file is 98. This: </div>”;

    What I must do? 🙁

    // Is error output turned on or not..
    if ( $this->show_errors ) {
    // If there is an error then take note of it
    print “<div id=’error’>
    <p class=’wpdberror’>WordPress database error: [$str]
    $this->last_query
    </div>”;
    } else {
    return false;
    }
    }

    Problem automatically solved itself! :O It’s a mystery!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Help Me! [WordPress database error]’ is closed to new replies.