warning on admin login (5 posts)

  1. crazybainy
    Posted 3 years 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:


    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
    Posted 3 years ago #

    Go through:

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

  3. crazybainy
    Posted 3 years 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:



  4. crazybainy
    Posted 3 years 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
    Posted 3 years 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