Monday 26 December 2016

function - Cannot modify header information - headers already sent by… Wordpress Issue

I'm encountering this error. and I have no idea dealing with this.




Cannot modify header information - headers already sent by (output
started at
/home/ben213/public_html/wp-content/themes/Bendaggers/functions.php:9)
in /home/ben213/public_html/wp-includes/pluggable.php on line 934




my Functions.php file line # 9 is:







while my pluggable.php # 934 is



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 && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups


header("Location: $location", true, $status);}
endif;


I'm having a hard time figuring this out since im not a programmer. what seems to be wrong? kindly help me please...

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...