Headers Already Sent – unable to log in
-
Hi everyone! I’ve been getting the following error on my site for days now, but I can’t figure out what to do. I’ve read the forums and it’s usually that there is a white space somewhere in the affected file.
Here is my error:
Warning: Cannot modify header information – headers already sent by (output started at /home/craftcorecode/craftcore.ca/wp-content/themes/craft3/functions.php:1) in /home/craftcorecode/craftcore.ca/wp-includes/pluggable.php on line 1196
I cannot for the life of me find this space that is causing the issue. It’s supposedly on line 1. I opened the functions.php file in Notepad++, but couldn’t find it. I also switched my encoding to UTF-8 without BOM in case there was a BOM character that I couldn’t see. No luck. ?? I also downloaded functions.php from a fresh download of WordPress and replaced it in my theme directory, but it had no affect.
Since I can’t login, I can’t change my theme.
The last thing that I did before this happened was adjust my widgets to remove a login box from the front end of my site and turn off user registration in settings. I replaced it with just a plain text widget. The only front end issue I’m seeing is that my widget area has different widgets than I had specified, and that users are still registering constantly. (I originally had my blog set for registered users could only comment, but I have since decided against this.)
Could someone please take a look at my pluggable.php and functions.php file and see if I’m missing something very obvious? It has been days since I’ve been able to login to my blog.
I’ve uploaded my two files in a ZIP here: [removed]
Thank you for any advice that you have!
- The topic ‘Headers Already Sent – unable to log in’ is closed to new replies.