WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Header Warning pluggable.php (6 posts)

  1. nadine00
    Member
    Posted 4 years ago #

    I am getting a strange header warning:

    Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h02/mnt/88696/domains/dw-wp.com/html/wp-content/themes/dwwp/functions.php:19) in /nfs/c06/h02/mnt/88696/domains/dw-wp.com/html/wp-includes/pluggable.php on line 868

    I've followed the FAQ on here, I've gone through my functions file. I have deactivated my plugins, and re-uploaded my themes.

    I am still getting this randomly on the wp-admin side.

    Anyone out there have a similar incident and be willing to share what you did?

    Thanks

    Nadine.

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    It is usually due to spaces, new lines, or other garbage at opening/closing PHP file <?php tag or after a closing ?> tag in wp-config.php. It can be other file too so need to check error message as it may list file name where the error occurred.

    One can either upload error file from the backup or edit erroneous file. To edit the file one need to check below mentioned points:

    1. Download the file mentioned in the error message.

    2. Open that file in a plain text editor

    3. Check that the very first characters are <?php

    4. Check that the very last characters are ?>

    5. Place the cursor between the ? and >

    6. Now press the DELETE key on your computer and keep that key pressed for at least 15 seconds.

    7. Now type > and

    8. Save without pressing any other key at all.

    That’s it!

    Thanks,

    Shane G.

  3. nadine00
    Member
    Posted 4 years ago #

    Ok, I did that, but I'm still getting the same error. Any other suggestions?

  4. Mark / t31os
    Moderator
    Posted 4 years ago #

    Please test the following, open up functions.php, remove all the code minus the opening PHP tags, ie. <?php, and paste it in a txt doc if you need it, so you can copy it back later.

    Save, and test your site.

    Alternatively, rename it, create a new empty one, and test the site.

  5. nadine00
    Member
    Posted 4 years ago #

    Works as an empty file, no errors.

    Slowly adding functions back in to see where the issue is.

    Thank you.

  6. Mark / t31os
    Moderator
    Posted 4 years ago #

    You're welcome, let me know if you get stuck finding the problem area or fixing the bug.

Topic Closed

This topic has been closed to new replies.

About this Topic