Forums

Frontpage-Slideshow
Headers Already Sent Out (8 posts)

  1. RandyCram
    Member
    Posted 1 year ago #

    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.

  2. RandyCram
    Member
    Posted 1 year ago #

    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.

  3. karlua_88
    Member
    Posted 1 year ago #

    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

  4. jeff_
    Member
    Posted 1 year ago #

    @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

  5. SandyMe
    Member
    Posted 1 year ago #

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

  6. tjcrowley
    Member
    Posted 9 months ago #

    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?

  7. jeff_
    Member
    Posted 9 months ago #

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

  8. tjcrowley
    Member
    Posted 9 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic