Title: Previous commenter gets &#8220;Cannot modify header information&#8221; error
Last modified: August 18, 2016

---

# Previous commenter gets “Cannot modify header information” error

 *  Resolved [badrad](https://wordpress.org/support/users/badrad/)
 * (@badrad)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/)
 * Hi, I am working on setting up my first WordPress site (using 2.0 RC1).
 * When submitting a comment, if the user has a previous comment and is not an administrator,
   they get the following errors:
 * ———————————–
    Warning: strpos() [function.strpos]: Empty delimiter. in /home/
   c0dy10/public_html/wp-includes/comment-functions.php on line 867
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/c0dy10/public_html/wp-includes/comment-functions.php:867) in /home/c0dy10/
   public_html/wp-comments-post.php on line 54
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/c0dy10/public_html/wp-includes/comment-functions.php:867) in /home/c0dy10/
   public_html/wp-comments-post.php on line 55
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/c0dy10/public_html/wp-includes/comment-functions.php:867) in /home/c0dy10/
   public_html/wp-comments-post.php on line 56
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/c0dy10/public_html/wp-includes/comment-functions.php:867) in /home/c0dy10/
   public_html/wp-includes/pluggable-functions.php on line 178
    ———————————–
 * The comment is entered correctly, the redirect breaks.
 * I have not modified the three files referenced. To be absolutely sure, I redownloaded
   them and uploaded them – same problem.
 * In fact, I have only modified one file outside of templates, and that is kses.
   php, and just to be sure, I tried replacing that with a stock one and the problem
   still occurs.
 * Any help would be awesome.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [badrad](https://wordpress.org/support/users/badrad/)
 * (@badrad)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/#post-291184)
 * And I meant this to be in the troubleshooting forum, a moderator can feel free
   to move this.
 *  Thread Starter [badrad](https://wordpress.org/support/users/badrad/)
 * (@badrad)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/#post-291192)
 * Solved it.
 * strpos on line 867 of comment-functions.php was failing because get_settings(‘
   moderation_keys’) was blank.
 * I had to go into Options->Discussion and add at least one word to the comment
   moderation word list.
 *  [Dalton Rooney](https://wordpress.org/support/users/daltonrooney/)
 * (@daltonrooney)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/#post-291642)
 * Whoa, that was a weird one. Thanks for the heads up, that fixed it for me too.
 *  Thread Starter [badrad](https://wordpress.org/support/users/badrad/)
 * (@badrad)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/#post-291668)
 * Cool, glad it helped you.
 * I filed it as a bug:
    [http://trac.wordpress.org/ticket/2021](http://trac.wordpress.org/ticket/2021)
 * But it so far seems to have been completely ignored.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Previous commenter gets “Cannot modify header information” error’ is 
closed to new replies.

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 4 replies
 * 2 participants
 * Last reply from: [badrad](https://wordpress.org/support/users/badrad/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/previous-commenter-gets-cannot-modify-header-information-error/#post-291668)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
