I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as I did that I recieved this error many times, mainly stating the file I am working on(customize.php and the other file it said was pluggable.php:
Warning: Cannot modify header information - headers already sent by customize.php
After I tried to login I am now receiving this error:
Parse error: syntax error, unexpected T_FUNCTION on line 1
Everytime I replace the file with a previous version it keeps messing up the format of the code and making it all one line of code as soon as I refresh the page and redownload the file.
I don't understand what is causing this. Why is it making the whole file 1 line? It makes it harder for me to find the original issue.
Edit: I ended up creating a an empty file and copy and pasted the code into it. After that my issue stopped. For some reason Notepad++ was adding way too much whitespace to the width of the file causing all of the code to form on 1 line. Therefore causing a plethora of problems. After pasting the code into a new file it works.