WordPress.org

Ready to get started?Download WordPress

Forums

Warning: Cannot modify header information... (3 posts)

  1. ridgelyschantz
    Member
    Posted 5 years ago #

    So what do you call it when you are just trying to change your blog tagline and you hit SAVE and get:

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/r/i/d/ridgelyschantz/html/zoo/radixaster/wp-includes/pluggable.php:1) in /home/content/r/i/d/ridgelyschantz/html/zoo/radixaster/wp-includes/pluggable.php on line 740

    Here's the thing: I looked this issue up earlier and common wisdom said "check for unintentional spaces before <?php and after ?>. Even though I have gone through pluggable.php with a finetooth comb on notepad and removed ALL spaces, I still got that error. Here are lines 719-741 as shown in an EditPlus text editor:

    if ( !function_exists('wp_redirect') ) :
    /**
    * Redirects to another page, with a workaround for the IIS Set-Cookie bug.
    *
    * @link http://support.microsoft.com/kb/q176113/
    * @since 1.5.1
    * @uses apply_filters() Calls 'wp_redirect' hook on $location and $status.
    *
    * @param string $location The path to redirect to
    * @param int $status Status code to use
    * @return bool False if $location is not set
    */
    function wp_redirect($location, $status = 302) {global $is_IIS;
    $location = apply_filters('wp_redirect', $location, $status);
    $status = apply_filters('wp_redirect_status', $status, $location);
    if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    return false;
    $location = wp_sanitize_redirect($location);
    if ($is_IIS ){header("Refresh:0;url=$location");} else {
    if (php_sapi_name()!='cgi-fcgi') status_header($status);//This causes problems on IIS and some FastCGI setups
    header("Location: $location");}} endif;
    if ( !function_exists('wp_sanitize_redirect')) :`

  2. Samuel B
    moderator
    Posted 5 years ago #

    you have a plugin conflict
    deactivate one by one until you find the offender

  3. ridgelyschantz
    Member
    Posted 5 years ago #

    I deactivated them all, including Hello Dolly, and still got the same error.

Topic Closed

This topic has been closed to new replies.

About this Topic