• Warning: Cannot modify header information – headers already sent by (output started at /home/content/51/5126851/html/wp-includes/post-template.php:54) in /home/content/51/5126851/html/wp-includes/pluggable.php on line 890

    I know I need to do something to my post-template.php file, but I’m not sure what. Here’s what the last few lines of code looks like:

    </tbody>
    </table>

    </form>

    <?php
    else :
    echo “<ul class=’post-revisions’>\n”;
    echo $rows;
    echo “”;
    endif;

    }

    Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have had the same error for ages. Time and time again I have read the “headers already sent” instructions to no avail (there’s definitely no extra space in wp-config.php!). Those instructions would also suggest that the problem lies in line #54 of post-template.php. On my install, that line is in the body of the file (not the last line) and says:

    echo $title;

    and the full context is:

    function the_title($before = ”, $after = ”, $echo = true) {
    $title = get_the_title();

    if ( strlen($title) == 0 )
    return;

    $title = $before . $title . $after;

    if ( $echo )
    echo $title;
    else
    return $title;
    }

    Need a bit more information before we can bug fix this.

    One thing I can tell you though, is that the problem is with a plugin or theme, not the core file itself. The error message itself is not particularly helpful IMO.

    I am using Thesis 1.8 as my theme. The problem only arises when I initially publish a post or update a published post. Saving changes to a draft doesn’t cause any problems, not does publishing a page rather than a post.

    Anything else I should be telling you?

    You will need to track down what code change you made first. A theme running in a standard WP install shouldn’t create serve an error like that. If you were modifying Thesis itself, then you may have more luck asking for assistance in the official Thesis support forum as they’ll be more familiar with the code.

    Found this little piece of trickery worked to resolve the problem for me. I had done all the steps of looking for white space etc. and nothing was fixing the problem.

    Finally, I disabled the plug-ins and wham bam problem went away. The apparent offender was Lucia’sLinkLove.

    Hope this helps someone

    In Him,
    JMb <><

    [sig moderated as per the Forum Rules]

    Woo-hoo! Thanks, this problem has been bugging me for months and Lucia’s Link Love was certainly the culprit.

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