another "Warning: Cannot modify header information – headers already sent by"
-
Hi, i have looked at the other posts on this but not enough php experience to understand fully what they are saying or to do … hence this post for help.
I used the “woo tabs” widget for the first time yesterday and everything was working ok when in the wp admin. i modified the file widget-woo-tabs file to remove the date from ‘popular posts’ and it seemed to work.
today i have tried to log back in and got the infamous message.
Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/xxx/wp-content/themes/xxx/includes/widgets/widget-woo-tabs.php:463) in /home/xxx/public_html/xxx/wp-includes/pluggable.php on line 881
i did save the original widget-woo-tabs and tried uploading that by ftp but it does not work as the error is with the pluggable file? i do not have a saved version of that.
Below is code around line 881 from pluggable.php
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*line 881* header(“Location: $location”, true, $status);
}
endif;first question is help with resolving the issue so i can login. secondly i guess i have to remove the woo tabs widget or not adjust it etc? thirdly is to learn that i shouldnt touch stuff i dont understand.
thanks for any help
- The topic ‘another "Warning: Cannot modify header information – headers already sent by"’ is closed to new replies.