• skittery

    (@skittery)


    When a user Is not logged in and leaves a comment, I get these errors:

    Notice: Trying to get property of non-object in C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php on line 717
    
    Notice: Trying to get property of non-object in C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php on line 727
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php:717) in C:\xampp\htdocs\scanwp-blog\wp-includes\comment.php on line 515
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php:717) in C:\xampp\htdocs\scanwp-blog\wp-includes\comment.php on line 516
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php:717) in C:\xampp\htdocs\scanwp-blog\wp-includes\comment.php on line 517
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\scanwp-blog\wp-content\plugins\crayon-syntax-highlighter\crayon_wp.class.php:717) in C:\xampp\htdocs\scanwp-blog\wp-includes\pluggable.php on line 1174

    However, when logged in everything is fine.
    How can I fix this?
    Thanks!

Viewing 1 replies (of 1 total)
  • For the Cannot modify header information – headers already sent warning, commenting out lines 218 and 220 (in version 2.8.4) seems to solve it:

    if ($output_text) {
        //header('Content-Type: text/plain');
    } else {
        //header('Content-Type: text/html');
    }
    • This reply was modified 7 years, 6 months ago by Stefano.
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot modify header information – headers already sent’ is closed to new replies.