WordPress.org

Ready to get started?Download WordPress

Forums

warning on admin login (5 posts)

  1. crazybainy
    Member
    Posted 1 year ago #

    I am having an issue logging into my site, and when I try to go to the admin page, I am getting this message:

    Warning: Cannot modify header information - headers already sent by (output started at folders\wp-content\themes\canvas\functions.php:1) in functions\wp-includes\pluggable.php on line 881

    I have seen on some forums that it can be the spave before or after the coding in the .php files, and I have tried to do this, but it is still not working.

    I have put the coding of this pluggable file into pastebin:

    http://pastebin.com/M67LAALh

    the coding on the 881 line that is apparently causing the problem is:

    header("Location: $location", true, $status);

    Does anyone have any ideas? This is driving me crazy!

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

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

    The problem should be in functions.php, not in the second file mentioned.

  3. crazybainy
    Member
    Posted 1 year ago #

    Thank you. I have had a read of this, and I can see it is saying the problem is line 1 of the functions.php, but I have looked and tried to delete if there is anything before it, and it is still not working. I have pasted the code from this file here:

    http://pastebin.com/Umn5GhEm

    Thanks!

  4. crazybainy
    Member
    Posted 1 year ago #

    As I am using a destop server and have made no coding changes, I have created another website, and copied both the uncorrupted functions.php file and the pluggable.php file to my other website and it is still not working!

  5. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Can you post your site URL or setup a test site that can be viewed?

Topic Closed

This topic has been closed to new replies.

About this Topic