There is an error whenever I try to update a post and have WP_DEBUG set to true in config.php. I am running wordpress 4.5 with and underscores based theme i'm developing. It appears to come from the core files but I don't see how that's possible. Any ideas what might be causing the problem? I was editing without debug on for awhile so I cannot tell at which point the problem started showing up.
Warning: Cannot modify header information - headers already sent by (output started at /Users/Blake_Eric/Projects/wp-test-site/wp-content/plugins/wordpress-importer/wordpress-importer.php:38) in /Users/Blake_Eric/Projects/wp-test-site/wp-admin/post.php on line 197
Here is the code this refers to
// Session cookie flag that the post was saved
if ( isset( $_COOKIE['wp-saving-post'] ) && $_COOKIE['wp-saving-post'] === $post_id . '-check' ) {
setcookie( 'wp-saving-post', $post_id . '-saved', time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() );
}
Warning: Cannot modify header information - headers already sent by (output started at /Users/Blake_Eric/Projects/wp-test-site/wp-content/plugins/wordpress-importer/wordpress-importer.php:38) in /Users/Blake_Eric/Projects/wp-test-site/wp-includes/pluggable.php on line 1171
refers to
$location = apply_filters( 'wp_redirect', $location, $status );
/**
* Filter the redirect status code.
*
* @since 2.3.0
*
* @param int $status Status code to use.
* @param string $location The path to redirect to.
*/
$status = apply_filters( 'wp_redirect_status', $status, $location );
if ( ! $location )
return false;
$location = wp_sanitize_redirect($location);
if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location", true, $status);
return true;
I deleted the referenced plugin and the error still occurs
Any advice would be much appreciated.