egilarntzen
Member
Posted 1 year ago #
I can suddenly not access my admin??
I am getting an error:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/webstorage/M/myhreogd/www/wordpress/wp-content/themes/myhreogdahl/functions.php:1) in /mnt/webstorage/M/myhreogd/www/wordpress/wp-includes/pluggable.php on line 890
It worked fine a week ago! Have I done something wrong?
Please help!
http://www.myhreogdahlbygg.no/wordpress/wp-admin/
http://www.myhreogdahlbygg.no/wordpress/
Try renaming myhreogdahl to some thing else like myhreogdahl-bak using ftp or server and try to log in.
This will force wordpress to open in default twenty ten theme to rule out theme related problem.
let us know it opened.
egilarntzen
Member
Posted 1 year ago #
ah nice one!
That worked, and a renamed it back to myhreogdahl and it worked.
Thanks a lot, most appreciated!
You are welcome I just clicked on your admin url and looks you have problem in functions.php file myhreogdahl theme
egilarntzen
Member
Posted 1 year ago #
Yeah? I have this in my functions.php:
[Code moderated as per the Forum Rules. Please use the pastebin]
You have blank line after <?php take it out there shold be no blank line and same before ?>
egilarntzen
Member
Posted 1 year ago #
Ok done.
but i still get an error clicking "admin"...
did you just install this theme or was it working before if it was working before did you make any change to the file.
egilarntzen
Member
Posted 1 year ago #
I made this theme(just used parts from another theme). And it has worked fine the whole time. I must have done something (obviously), but don't know what... that is what's so frustrating.
But there is definitely something wrong in the functions.php.
I deleted the whole file, and then I didn't get the error any more on "admin".