WordPress.org

Ready to get started?Download WordPress

Forums

Can't post Comments (5 posts)

  1. afursnail
    Member
    Posted 6 years ago #

    When an unregistered user tries to post comments, they get this:

    WordPress database error: [Duplicate entry '467' 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, comment_parent, user_id) VALUES ('31', 'Andrea', 'jaszlics@colorado.edu', '', '198.11.27.99', '2007-07-28 14:02:49', '2007-07-28 21:02:49', 'poo?', '0', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)', '', '0', '0')

    Warning: Cannot modify header information - headers already sent by (output started at /home/greajas7/public_html/blog/wp-includes/wp-db.php:121) in /home/greajas7/public_html/blog/wp-comments-post.php on line 55

    Warning: Cannot modify header information - headers already sent by (output started at /home/greajas7/public_html/blog/wp-includes/wp-db.php:121) in /home/greajas7/public_html/blog/wp-comments-post.php on line 56

    Warning: Cannot modify header information - headers already sent by (output started at /home/greajas7/public_html/blog/wp-includes/wp-db.php:121) in /home/greajas7/public_html/blog/wp-comments-post.php on line 57

    Warning: Cannot modify header information - headers already sent by (output started at /home/greajas7/public_html/blog/wp-includes/wp-db.php:121) in /home/greajas7/public_html/blog/wp-includes/pluggable.php on line 275

    When a registered user tries to post comments, they get this:

    WordPress database error: [Duplicate entry '467' 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, comment_parent, user_id) VALUES ('31', 'admin', 'andrea.jaszlics@gmail.com', 'http://www.greaterfursnail.net', '198.11.27.99', '2007-07-28 14:05:02', '2007-07-28 21:05:02', 'what?', '1', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)', '', '0', '1')

    Warning: Cannot modify header information - headers already sent by (output started at /home/greajas7/public_html/blog/wp-includes/wp-db.php:121) in /home/greajas7/public_html/blog/wp-includes/pluggable.php on line 275

    Help?

  2. garryconn
    Member
    Posted 6 years ago #

    Did you get this fixed? I don't know too much about things like this, but ususally when something like this happens it could be a permissions issue?

    Did you make any modifications to your WordPress install? Did you attempt to install any plugins? How long has your blog been running? Back track your steps if you have been hacking away at it.

  3. afursnail
    Member
    Posted 6 years ago #

    Unfortunately, no. This is a fairly new development -- as far as I can tell it cropped up when I went ahead and purged 200+ spam messages (just using dashboard). Before then, everything worked OK and every comment got through. All of my modifications took place before this cropped up.

    I just really have no idea of where to go and I'm reluctant to go into the code blindly groping to try to fix this.

    But thanks. :)

  4. Gershom
    Member
    Posted 6 years ago #

    I'm getting a 404 error code when someone tries to add a comment to my blog posts grrr...

  5. garryconn
    Member
    Posted 6 years ago #

    afursnail,

    I went to your blog to try to post a comment and I got this error:

    Warning: Cannot modify header information - headers already sent by...

    I then did a Google search for that same error and I found a post that is about a Mambo install where someone was having a similar problem. Again this isn't related to wordpress, but it your problem could be related to PHP.

    Check out this response:

    http://forum.mamboserver.com/showpost.php?s=8967f9887f80e3acd87bb38f4149e4de&p=238897&postcount=5

    Where the person asks, "The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).

    Have you recently edited any files?"

    So, have you modified any files on your WordPress install? Perhaps the comments.php file or the wp-comments-post.php file?

    If so, then you might be missing a closing <?php ?> tag? Deleting spam comments from your admin dashboard I don't think will cause this error. I am pretty sure that this error is caused my some kind of modification made to your WordPress install.

    Additionally, you can carry out the Google search I did... I just investigated the first option. Here is the search string:

    http://www.google.com/search?sourceid=navclient&ie=UTF-8&rlz=1T4GGLJ_enUS217US217&q=Warning%3a+Cannot+modify+header+information+%2d+headers+already+sent+by

    Good luck and let me know if there is anything else I can do to try to help. More info you can give the better.

    @Gershom,

    You may want to start your own thread requesting support.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags