• Resolved mareszke

    (@mareszke)


    Hello,

    Please, help me, I can not log-in to my admin page. I recieve this error message:

    Warning: Cannot modify header information – headers already sent by (output started at /web/nyaklancraf/bofoxdesign.com/wp-content/themes/bofoxdesign/functions.php:116) in /web/nyaklancraf/bofoxdesign.com/wp-includes/pluggable.php on line 1281 (and 1284)

    In pluggable.php file is:

    /**
    * Filters the X-Redirect-By header.
    * Allows applications to identify themselves when they’re doing a redirect.
    * @since 5.1.0
    * @param string $x_redirect_by The application doing the redirect.
    * @param int $status Status code to use.
    * @param string $location The path to redirect to.
    */

    $x_redirect_by = apply_filters( ‘x_redirect_by’, $x_redirect_by, $status, $location );
    if ( is_string( $x_redirect_by ) ) {
    header( “X-Redirect-By: $x_redirect_by” ); – IS LINE 1281
    }
    header( “Location: $location”, true, $status ); – IS LINE 1284
    return true;
    }
    endif;

    Could you help me, please? Thanks in advance, Maria

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    You have unexpected whitespace (either a space or an entire line) on line 116 of the /wp-content/themes/bofoxdesign/functions.php file. See this guide for more info.

    Alternatively, replacing the file with one from a fresh download may resolve the issue.

    Thread Starter mareszke

    (@mareszke)

    you are genius, thank you very-very much (and for the quiq reply ??
    Have a nice day. Maria

    Thread Starter mareszke

    (@mareszke)

    In functions.php was only 115 lines… So, I deleted and uploaded once again the file. That was the solution. – I was so happy, that I forgot to write the solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot modify header information – headers already sent by’ is closed to new replies.