Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: create subnav not working with child theme


warut
Participant

@warut

I found this solution from web and it fix “Warning: Cannot modify header information” error.

Is this a right solution ? because it hack wp file

if this a best solution, if will update to v1.3 with upper code.


for all those that have the error that says: bla bla bla on line 3 on header.php…. here is the solution:

edit the file wp-includes/pluggable.php

in line 863 replace:

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”, true, $status);

}

with this:

if( !headers_sent() ).

{

if ( $is_IIS ) {

header(“Refresh: 0;url=$location”);

} else {

if ( php_sapi_name() != ‘cgi-fcgi’ )

tatus_header($status); // This causes problems on IIS and some FastCGI setups

header(“Location: $location”, true, $status);

}


Skip to toolbar