Title: Headers Already Sent errors upon submitting comments
Last modified: August 24, 2016

---

# Headers Already Sent errors upon submitting comments

 *  [DavidB722](https://wordpress.org/support/users/davidb722/)
 * (@davidb722)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/headers-already-sent-errors-upon-submitting-comments/)
 * Upon submitting comments, the following notices and and warnings are produced
   with Crayon Syntax Highlighter activated:
 * > Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/wp-
   > content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 702
   > Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/wp-
   > content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 712
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /Applications/MAMP/htdocs/wp-content/plugins/crayon-syntax-highlighter/
   > crayon_wp.class.php:702) in/Applications/MAMP/htdocs/wp-includes/comment.php
   > on line 1224
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /Applications/MAMP/htdocs/wp-content/plugins/crayon-syntax-highlighter/
   > crayon_wp.class.php:702) in/Applications/MAMP/htdocs/wp-includes/comment.php
   > on line 1225
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /Applications/MAMP/htdocs/wp-content/plugins/crayon-syntax-highlighter/
   > crayon_wp.class.php:702) in/Applications/MAMP/htdocs/wp-includes/comment.php
   > on line 1226
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /Applications/MAMP/htdocs/wp-content/plugins/crayon-syntax-highlighter/
   > crayon_wp.class.php:702) in/Applications/MAMP/htdocs/wp-includes/pluggable.
   > php on line 1196
 * Noteworthy is that the comment still submits and is stored in the database appropriately.
   These errors are throwing when `wp_debug` is set to true. No end user issues 
   are experienced on a production site with debug mode off. Still, it would be 
   nice to resolve these in a future update. Thanks!
 * [https://wordpress.org/plugins/crayon-syntax-highlighter/](https://wordpress.org/plugins/crayon-syntax-highlighter/)

The topic ‘Headers Already Sent errors upon submitting comments’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/crayon-syntax-highlighter_b0c4c0.
   svg)
 * [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crayon-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crayon-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crayon-syntax-highlighter/reviews/)

## Tags

 * [crayon](https://wordpress.org/support/topic-tag/crayon/)
 * [headers already sent](https://wordpress.org/support/topic-tag/headers-already-sent/)
 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 0 replies
 * 1 participant
 * Last reply from: [DavidB722](https://wordpress.org/support/users/davidb722/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/headers-already-sent-errors-upon-submitting-comments/)
 * Status: not resolved