0

While opening Wordpress portal, it is throwing this error every time. I am unable to find any error on line 1296 and 1299.

These messages display every time in the browser when trying to open the portal.

Warning: Cannot modify header information - headers already sent by (output started at /home3/mkjeduca/public_html/wp-content/themes/boxstyle/functions/theme-options.php:1) in /home3/mkjeduca/public_html/wp-includes/pluggable.php on line 1296

Below are the line codes in pluggable.php:

if ( is_string( $x_redirect_by ) ) {
        header( "X-Redirect-By: $x_redirect_by" );    // line 1296
    }

    header( "Location: $location", true, $status );   // line 1299

    return true;
1
  • 1
    The problem is that it's too late to output headers, because you've already output non-header content before these lines. Like it says, look at the first line of wp-content/themes/boxstyle/functions/theme-options.php which is where the output started in case it's accidentally outputting whitespace you didn't intend to. Or find a way to run these lines earlier in the page load, before it loads theme-options. – Rup Oct 15 '20 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.