Support » Fixing WordPress » Warning: Cannot modify header information

  • When I want to update or preview the page I`m working on I get this warning:

    When Update:
    Warning: Cannot modify header information – headers already sent by (output started at /customers/6/c/b/olderkjaer.com/httpd.www/wp-content/themes/ifeature/functions.php:928) in /customers/6/c/b/olderkjaer.com/httpd.www/wp-admin/post.php on line 197 Warning: Cannot modify header information – headers already sent by (output started at /customers/6/c/b/olderkjaer.com/httpd.www/wp-content/themes/ifeature/functions.php:928) in /customers/6/c/b/olderkjaer.com/httpd.www/wp-includes/pluggable.php on line 1210

    928(I guess its line 928?):<?php

    197: setcookie( ‘wp-saving-post’, $post_id . ‘-saved’, time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() );

    1210: header(“Location: $location”, true, $status);

    In both lines 197 and 1210 there are white space before the line startes

    When Preview:
    Warning: Cannot modify header information – headers already sent by (output started at /customers/6/c/b/olderkjaer.com/httpd.www/wp-content/themes/ifeature/functions.php:928) in /customers/6/c/b/olderkjaer.com/httpd.www/wp-includes/pluggable.php on line 1210

    Can someone help me with my problem?

    There is no white space before or after <?php (I have checked the other topic about a similar problem)

    • This topic was modified 2 years, 2 months ago by Dinno.
Viewing 4 replies - 1 through 4 (of 4 total)
  • If I understand right, you already made some changes in the header.php? If yes, did you try to revert it and check the issue?
    What theme do you use?
    I faced similar issue, when inserted some php code in the wrong place of header code.

    If you revert like Serges says, and still get the same error, you should contact the authors of the theme you are using.

    I use iFeature. I took away some white space, some days ago. Then I got the same warnings. After that it went well, until today. Now I get more warnings, only the one in line 1210 is the same

    • This reply was modified 2 years, 2 months ago by Dinno.

    Now I also got a problem uploading pictures. And in my controllcenter I get this on top:
    ader information – headers already sent by (output started at /customers/6/c/b/olderkjaer.com/httpd.www/wp-content/themes/ifeature/functions.php:928) in /customers/6/c/b/olderkjaer.com/httpd.www/wp-includes/option.php on line 837 Warning: Cannot modify header information – headers already sent by (output started at /customers/6/c/b/olderkjaer.com/httpd.www/wp-content/themes/ifeature/functions.php:928) in /customers/6/c/b/olderkjaer.com/httpd.www/wp-includes/option.php on line 838

    At the moment I can not make new pages, because I can not preview them, or upload pictures. Really need help here!!

    I have also tried to contact the authors of the theme, but no reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.