Viewing 9 replies - 1 through 9 (of 9 total)
  • What program are you using to write the code?

    Could your plugin have altered (added spaces or lines) to some of your WordPress files (I’ve had plugins that I installed do this).

    Thread Starter katocan

    (@katocan)

    The first time I wrote the code I used TextMate then because I was rewriting it I thought id use Coda incase it was TextMate causing the problem. Well the link I provided of my code is all there is because I’m just playing around with WP to get to grips with it.

    Thread Starter katocan

    (@katocan)

    Sorry to double post but can anyone help me out?

    Thanks.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Get rid of the ending ?> entirely. The final closing php tag is optional, and getting rid of it will prevent any ending whitespace from mucking up the site.

    Thread Starter katocan

    (@katocan)

    Ok I’ve just done that but I’m still getting the error

    Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/wordpress/wp-content/plugins/MUO_author_footer/MUO_author_footer.php:12) in /Applications/MAMP/htdocs/wordpress/wp-includes/pluggable.php on line 694

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Well, there you go. It tells you exactly where the output is coming from. Line 12.

    That line is doing an echo. You’ve got that function hooked in to “profile_update”, which happens when a user is updated, and that happens before the main bits where the headers are sent.

    Don’t do any output in a hook before the main output begins.

    Thread Starter katocan

    (@katocan)

    I don’t mean to sound dumb but I’ve been trying for a while and I still can’t figure this out. What do I need to modify to make this work.

    Thanks.

    Hello,

    I have a similar problem but i cant figure out what is loaded before my header is sent…

    My website: https://www.b2bintz.com

    I have the problem with the Galerie part. When i go to the galerie index its ok but when i want to select one… i get that error message. I already checked for spaces.

    Here is the code for that page:

    <?php
    
       if ($_GET['galerie'] == '') {
       echo '<div id=textegalerie align=left><a href="https://www.b2bintz.com/galerie/?galerie=urban"><p class="flag"><img src="https://farm4.static.flickr.com/3034/2681447153_50be4757fe_m.jpg" width="240" height="160" alt="20071128-IMG_1033" /></a><span>Urban: errances citadines</span>
    </div>';
    
       echo '<div  id=textegalerie align=left><a href="https://www.b2bintz.com/galerie/?galerie=landscape"><p class="flag"><img src="https://farm4.static.flickr.com/3096/2682221640_9d1b4ef8f4_m.jpg" width="240" height="160" alt="20080514-IMG_2296" /></a><span>Landscape: paysages d\'ici et d\'ailleurs</span>
    </div>';
    
        echo '<div  id=textegalerie align=left><a href="https://www.b2bintz.com/galerie/?galerie=beyond"><p class="flag"><img src="https://farm4.static.flickr.com/3141/2681396025_87b81fc17d_m.jpg" width="240" height="160" alt="20080509-IMG_2019" /></a><span>Beyond: au delà des conventions</span>
    </div>';
    
    }
    
    elseif ($_GET['galerie'] == 'urban') {
       echo '<div align=center><h1>Urban</h1></div>';
       echo '<simpleflickr set="72157606253771265" width="770" height="800" thumbnailColumns="7" imagesize="Original" maximagewidth="700" maximageheight="700"/>';
    
    }
    
    elseif ($_GET['galerie'] == 'landscape') {
       echo '<div align=center><h1>Landscape</h1></div>';
       echo '<simpleflickr set="72157606250570656" width="770" thumbnailColumns="7" imagesize="Original" maximagewidth="700" maximageheight="700"/>';
    
    }
    
    elseif ($_GET['galerie'] == 'beyond') {
       echo '<div align=center><h1>Beyond</h1></div>';
       echo '<simpleflickr set="72157606253617467" width="770" height="800" thumbnailColumns="7" imagesize="Original" maximagewidth="700" maximageheight="700"/>';
    
    }
    ?>

    Moreover, what i dont understand is that its working perfectly with an identical page i use for testing while its not published. When i publish that similar testing page, i also get the error. Could it have something to do with permalink? Im using the page name as URL but while its not published it uses the page ID…

    Any idea?

    Thanks in advance.

    Ok, in fact i turned off the plugin “Permalink Redirect” and there is no error anymore.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning: Cannot modify header information – headers already sent ?’ is closed to new replies.