WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help Me! [WordPress database error] (10 posts)

  1. sim_dawdler
    Member
    Posted 8 years ago #

    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!

  2. sim_dawdler
    Member
    Posted 8 years ago #

    I follow this instruction, but it doesn't help:
    http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

    HELP! :(

  3. Beel
    Member
    Posted 8 years ago #

    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?

  4. sim_dawdler
    Member
    Posted 8 years ago #

    Thanks for the reply.

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

    Yes. :(

  5. sim_dawdler
    Member
    Posted 8 years ago #

    Please, pleeeeeeeeease, pleeeeeeeeeeeeeeease HELP ME! :((

  6. sim_dawdler
    Member
    Posted 8 years ago #

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

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

  7. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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.

  8. sim_dawdler
    Member
    Posted 8 years ago #

    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...:(

  9. sim_dawdler
    Member
    Posted 8 years ago #

    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;
    }
    }

  10. sim_dawdler
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags