• ok, so i got my widgetized footer to work partially.

    my only problem is that whenever i update a file in the editor, i get this msg:

    Warning: Cannot modify header information – headers already sent by (output started at /home3/popmaxno/public_html/wp-content/themes/threattocreativity/functions.php:6) in /home3/popmaxno/public_html/wp-admin/theme-editor.php on line 69

    what did i do wrong?

    the changes ive made are apparently saved because when i refresh my site, everything i did is there. it’s just that whenever i update my files, i get this msg and i have to hit the “back” button to go back to my dashboard. :S

Viewing 1 replies (of 1 total)
  • Dependant on your browser your using in the editor it can sometimes add ” ” spaces and lines that get interpreted as output. So when that happens browsers fuzzy logic makes header information up for that.

    Just make sure there’s no echo’ing or blank lines outside of functions in the functions.php file that get executed while *in* the functions.php file.
    For example:

    [blankline]
    <?php 
    
    function my_functions(){
    }
    
    ?>

    ^ that blank line is interpreted as text being sent and browsers will create a header for it so when the functions.php file is read and another header is sent after that it will say header is already sent.

    Another example:

    <?php
    
    function my_functions() {
    }
    
    echo "Dude!";
    ?>

    In this example, notice there’s echo’ing of text out while not being called within a function (that is called in your regular .php files.

    This too will cause browsers to say there’s a header already sent.

    Your functions.php file can only have functions in it and not write anything out to the user unless it’s *in* the function and called from your normal templates(index.php single.php etc.)

Viewing 1 replies (of 1 total)

The topic ‘footer slightly fixed. still need help.’ is closed to new replies.