Forums

Not your ordinary 'headers already sent' problem (5 posts)

  1. mercertom
    Member
    Posted 4 months ago #

    Getting this error:

    Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/themes/thesis_18/custom/custom_functions.php:62) in .../wp-includes/pluggable.php on line 866

    :62 is just the end of custom functions, and no, it's not a whitespace issue. After deleting and remaking the <?php and ?> over and over, I copied a fresh functions.php into this erring custom_functions.php. While the custom functions disappeared, the error remained the same.

    The fresh functions.php is running live on another thesis wordpress site which doesn't have headers already sent error.

    Line 62 is echo "$data";
    the end of the normal functions.php lines.

    Line 866 in pluggable.php is
    header("Location: $location", true, $status);

    I'm using thesis 1.8 and totally updated wordpress/plugins.

    Please help!

  2. Not your ordinary 'headers already sent' problem

    Yes, it is.

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

    Can you make a backup and just delete custom_functions.php and check your wp-config.php file?

  3. mercertom
    Member
    Posted 4 months ago #

    When I delete custom_functions.php the error goes away, but so does custom header/footer.

    The error is still there if custom_functions.php is filled with a functions.php from a functioning (error-free) website.

    I've tried everything in that guide, including the windows 'hold down Delete' which on mac means do function + delete...
    that's why I say not the ordinary headers already sent problem.
    Those are the steps that fix the ordinary versions of this problem; I'm familiar with them, and tried all of them again, even read that exact page for the steps for Windows people, but the steps don't work on it this time.

  4. mercertom
    Member
    Posted 4 months ago #

    Now I saved the copy as a custom_functions.php and reloaded it.

    I notice that now only the homepage gets the header problem, every normally navigated-to page is fine.

    I'm doing a redirect to a category page for the homepage.

    xyz.com points to xyz.com/category/abc/

    After this delete/re-upload same file, the error disappeared from most of the site, just not the xyz.com.

    -Tom

  5. That's weird but it might be something with that theme.

    That's a commercial theme you are using, if you haven't already post your problem on their support forum. Their might be some special sauce needed to get that working.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.