Title: Header already sent by post-template.php
Last modified: August 19, 2016

---

# Header already sent by post-template.php

 *  Resolved [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * (@merlinsilk)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/)
 * After upgrading to 3.0 and trying to do a new post I get this error:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/merlinsilk/domains/merlinsilk.com/public_html/wp-includes/post-template.
   php:54) in /home/merlinsilk/domains/merlinsilk.com/public_html/wp-includes/pluggable.
   php on line 890
 * I checked the usual suspects – spaces before or after <?php ?> but non of that.
   Checked if it was my older template, but it does the same thing with the new 
   default template.
 * Then looking into the file where the error occurs I find
 * 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; }
 * and the error occurs on the echo $title. If I replace the echo with a return 
   the error disappears, but I don’t want to leave it at that as this will probably
   cause problems elsewhere.
 * A brand new installation on the same server does not display that error.
 * Any idea – I am puzzled.
 * Cheers,
    Merlin

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547177)
 * Try [downloading WordPress](http://wordpress.org/download/) again and replace
   your copy of the `/wp-includes/post-template.php` file with a fresh one from 
   the download.
 *  Thread Starter [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * (@merlinsilk)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547462)
 * thanks for the answer. Yeah, that was one of my first thoughts as well, but they
   are identical, and, as a bit of further info, the same files used for a new installation
   are working just fine.
 * Any further thoughts?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547465)
 * Try decativating all plugins. If that resolves the issue, reactivate each one
   individually until you find the cause.
 *  Thread Starter [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * (@merlinsilk)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547484)
 * Thanks, macmanx!
    It was caused by the plugin
 *  Lucia’s LinkLove
 * Now I’m a happy camper 😉
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547487)
 * You’re welcome!
 *  [timmyjohnboy](https://wordpress.org/support/users/timmyjohnboy/)
 * (@timmyjohnboy)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547728)
 * Wow, thanks for this! Same plugin was giving me the error.
 *  [ifeelgod](https://wordpress.org/support/users/ifeelgod/)
 * (@ifeelgod)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547777)
 * 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 <><
 * _[Very large sig moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome)]_

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

The topic ‘Header already sent by post-template.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [ifeelgod](https://wordpress.org/support/users/ifeelgod/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/header-already-sent-by-post-templatephp/#post-1547777)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
