• Few Errors with this with WordPress 3.1.

    I know 3.1 is a beta but just wanted to let you know before it gets released to possibly fix them.

    When WP Autosaves:

    Warning: Cannot modify header information - headers already sent by (output started at mysite.com\wp-content\themes\gamingassault\functions.php:1) in mysite.com\wp-includes\class-wp-ajax-response.php on line 129

    When Clicking “Publish or Update”:
    Warning: Cannot modify header information - headers already sent by (output started at mysite.com\wp-content\themes\gamingassault\functions.php:1) in mysite.com\wp-includes\pluggable.php on line 889

    It executes what it is supposed to do but still shows the errors.

    Cheers.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter RandyCram

    (@randycram)

    Did some digging, turns out that this is what caused it:

    <?php add_theme_support('post-thumbnails'); ?>

    from my functions.php.. I need that for my theme but its causing issues, whats the best fix.

    It’s probably too late now, but for anyone else who gets this problem here is what worked for me.

    I simply made sure there was no hite spaces before or after the PHP start “<?php” or end “?>” tags e.g. dont have

    <?php

    function

    It should be:

    <?php
    function

    Plugin Author jeff_

    (@jeff_)

    @randycram : what is the relationship with the plugin? It’s related to WordPress core.

    @karlua_88 inside <?php ?>, you can have as many as blank line as you want, but outside, all blank lines or chars are sent… si you only need to clean outside <?php ?> blocks

    SandyMe

    (@sandyme)

    You just saved me countless of hours searching! Thank you! Thank you! Thank you!

    I am having the same problem. I tried the blank line solution, but it doesn’t seem to be working.

    The problem lies with a mod I made to the default template file. I can use the old template file fine, but when I try to switch to the new template file I get the following:

    Warning: Cannot modify header information – headers already sent by (output started at /home/zachary/public_html/slowcarbtraderjoes.com/wp-content/plugins/frontpage-slideshow/templates/slowcarb/template.php:1) in /home/zachary/public_html/slowcarbtraderjoes.com/wp-includes/pluggable.php on line 934

    All I did was add one line in the template – I added a way for the entire image to be clickable by adding this:

    function fsChangeSlide2() {
    	jQuery('#fs-picture').css({backgroundImage : "url("+jQuery("#fs-entry-img-"+fsid).attr("src")+")"});
    	jQuery('#fs-picture').click(function(){window.location=jQuery('#fs-entry-link-'+fsid).text();return false;});

    Any ideas?

    Plugin Author jeff_

    (@jeff_)

    Wich editor do you use ? Wich ftp transfert mode do you use ? (ascii or binary ? try to always use binary)

    Using binary transfer mode. I’m using notepad or wordpad on Windows Vista right now, I am about to try plugging my eclipse IDE into it and editing it with that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Frontpage-Slideshow] Headers Already Sent Out’ is closed to new replies.