Support » Fixing WordPress » Warning: Cannot modify header information

  • Resolved David Gard

    (@duck_boy)


    Hey all,

    I have the Custom Admin Branding plugin installed but when I have it activated it throws up errors, for example –

    Warning: Cannot modify header information – headers already sent by (output started at /home/g24dyne/public_html/wp-content/plugins/custom-admin-branding/custom_branding.php:14) in /home/g24dyne/public_html/wp-includes/pluggable.php on line 868

    Can anybody help me with some pointers on how to trouble shoot this problem at all?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter David Gard

    (@duck_boy)

    Just an update, problem still not solved –

    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    I have visited the link above and checked to ensure that both custom_branding.php and pluggable.php have no excess whitespace in the areas identified, but the problem persists.

    The strangest thing is that I also use this plugin on a backup site and it works fine, but no matter what I copy across to the main site it still fails there.

    Thanks.

    The error is in custom_branding.php so something must be altering that file as it gets uploaded. What method are you uploading with? Are you editing that file? If so, what with?

    Thread Starter David Gard

    (@duck_boy)

    I have use Total Edit, but I have checked the encoding at it is fine. The plugin was installed using the installer in the WordPress admin panel. The backup was then created from this site, yet the custom admin runs on the backup but will not on the live. I’m baffeled :/

    Thanks.

    Can you delete the plugin from live and then install it with the plugin installer directly ?

    Thread Starter David Gard

    (@duck_boy)

    Yeah, that’s what I have done, but as soon I edit any of the options the error comes up.

    It’s fine with the plugin running, providing I haven’t edited it at all…

    Thread Starter David Gard

    (@duck_boy)

    Ok, think I have cracked this…

    Having the code like this fails (On just one site, but works on another) –

    <? // Function description
    fuction nameHere() {
        Some code
    }
    ?>
    
    <style>
        Some Style
    </style>
    <div>
        Some Code
    </div>
    
    <? // Function description
    fuction nameHere() {
        Some code
    }
    ?>

    Yet having the code like this works –

    <? // Function description
    fuction nameHere() {
        Some code
    }
    
    // Function description
    fuction nameHere() {
        Some code
    }
    ?>
    <style>
        Some Style
    </style>
    <div>
        Some Code
    </div>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.