Warning: Cannot modify header information – headers already sent by

By | July 18, 2015

Cannot modify header information, headers already sent by, ,

Why does it happen?

To understand why headers must be sent before output it’s necessary to look at a typical HTTPresponse. PHP scripts mainly generate HTML content, but also pass a set of HTTP/CGI headers to the webserver:

and when this issue come in your wordpress website .  just upon your theme folder where you find

Functions.php   and put the code and check now.

add_action(‘init’, ‘do_output_buffer’);
function do_output_buffer() {
        ob_start();
}

Leave a Reply

Your email address will not be published. Required fields are marked *