Hi there,

I created a basic website running off Wordpress. I then customized the theme. The website is up and running, fully functional. But now when I try to login to the Wordpress dashboard to edit the pages, I see a blank white page with this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/66/10888366/html/wp-content/themes/neuro/functions.php:358) in /home/content/66/10888366/html/wp-includes/pluggable.php on line 875

Any ideas??

Thanks in advance!

R u using free theme ? If not , than upload your theme again in wp-contentent -> themes

Hi guys,

Thanks for the fast response! :)

I did use a free theme then customized it. I am more of a designer than programmer (probably obvious!) so I'm not sure where to look in my code for the error - even after reading that helpful article, dom246.

This is what I have in my header.php code:

<?php 
/**
* Header template used by Neuro
*
* Authors: Tyler Cunningham, Trent Lapinski
* Copyright: © 2012
* {@link http://cyberchimps.com/ CyberChimps LLC}
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Neuro.
* @since 2.0
*/

    global $options, $ne_themeslug, $ne_themename; // call globals

?>
    <?php response_head_tag(); ?>
<!-- End @response head_tag hook content-->

<?php wp_head(); ?> <!-- wp_head();-->

</head><!-- closing head tag-->

<!-- Begin @response after_head_tag hook content-->
    <?php response_after_head_tag(); ?>
<!-- End @response after_head_tag hook content-->

<!-- Begin @response before_header hook  content-->
    <?php response_before_header(); ?> 
<!-- End @response before_header hook content -->

<!-- Adding wrapper class for sticky footer -->
<div class="wrapper">

<header>

<?php if ($options->get($ne_themeslug.'_subheader') == '1') { response_subheader();} ?>
<div class="container">
    <div class="row">
        <div id="header_wrap">
    <?php
        foreach(explode(",", $options->get('header_section_order')) as $fn) {
            if(function_exists($fn)) {
                call_user_func_array($fn, array());
            }
        }
    ?>
        </div>
    </div>   
</div>
<!-- Begin @response_navigation hook-->  
    <?php if ($options->get($ne_themeslug.'_full_menu') == '1') { response_navigation();} ?>
<!-- End @response_navigation hook-->    

</header>

<!-- Begin @response after_header hook -->
    <?php response_after_header(); ?> 
<!-- End @response after_header hook -->

check your code this error cuase extra white space between php tag remove all space from php tag and then check

To elaborate more line 20-29 is the error lines because the white spacing before those methods are what is causing the error. If you need whitespacing before the header function then place the html in a variable and display it after the all the header() functions have been called. Note that new lines can be stored as "\n" in double quoted strings if you plan to store them in variables too.

Thanks guys! I wish I understood this problem more but I'm just not grasping it. I made the changes per your suggestions (in the following code) that I thought I understood - but still get the same error. What do you recommend as next steps? I need this problem fixed. Thanks!!

<?php 
/**
* Header template used by Neuro
*
* Authors: Tyler Cunningham, Trent Lapinski
* Copyright: © 2012
* {@link http://cyberchimps.com/ CyberChimps LLC}
*
* Released under the terms of the GNU General Public License.
* You should have received a copy of the GNU General Public License,
* along with this software. In the main directory, see: /licensing/
* If not, see: {@link http://www.gnu.org/licenses/}.
*
* @package Neuro.
* @since 2.0
*/global $options, $ne_themeslug, $ne_themename; // call globals
?><?php response_head_tag(); ?>
<!-- End @response head_tag hook content-->
<?php wp_head(); ?> <!-- wp_head();-->
</head><!-- closing head tag-->
<!-- Begin @response after_head_tag hook content-->
<?php response_after_head_tag(); ?>
<!-- End @response after_head_tag hook content-->
<!-- Begin @response before_header hook  content-->
<?php response_before_header(); ?> 
<!-- End @response before_header hook content -->
<!-- Adding wrapper class for sticky footer -->
<div class="wrapper">
<header>
<?php if ($options->get($ne_themeslug.'_subheader') == '1') { response_subheader();} ?>
<div class="container">
    <div class="row">
        <div id="header_wrap">
<?php
        foreach(explode(",", $options->get('header_section_order')) as $fn) {
            if(function_exists($fn)) {
                call_user_func_array($fn, array());
            }
        }
    ?>
        </div>
    </div>   
</div>
<!-- Begin @response_navigation hook-->  
<?php if ($options->get($ne_themeslug.'_full_menu') == '1') { response_navigation();} ?>
<!-- End @response_navigation hook-->    

</header>

<!-- Begin @response after_header hook -->
<?php response_after_header(); ?> 
<!-- End @response after_header hook -->
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.