fireflysd
Member
Posted 8 months ago #
I'm not sure what happened, but I was playing around with my themes and now when I try to login to the back end of my blog, the wp-admin page, I don't even get the login screen and I get this warning:
Warning: Cannot modify header information - headers already sent by (output started at /home/firefly/public_html/wp-content/themes/tropicala/functions.php:15) in /home/firefly/public_html/wp-includes/pluggable.php on line 934
Help!
It seems your functions.php might have an error.
Maybe check functions.php and see the code at line 15
what the issue would be.
If you are not sure, you can post the code bit (line 15)
and we can check what the issue would be.
fireflysd
Member
Posted 8 months ago #
Thanks for the response.
I can't even login to the backend to see the code. I only get the error message when I try to go to the admin page.
My page is http://TheMindfulFirefly.com. I can view the source on the browser from the page, but there is no functions.php in it.
Is there any other way to get to the backend? Or can it be re-set somehow? I don't have any content on it so I'm not worried about losing anything.
You can download your wordpress files through the ftp.
When you login your server, go to
"wp-content/themes/tropicala"
and there should be the functions.php
Download it and open up in the preferred text editor like Dreamweaver or Notepad and see the code (line 15).
fireflysd
Member
Posted 8 months ago #
Thanks again for the response.
Sorry for my ignorance, but I don't know how to do that. How do I login my server and go to that file through the ftp? Do you mind giving me more detailed directions, please?
Thank you!
To access your server, you need a ftp software.
FileZilla is a good one and free.
http://filezilla-project.org/
Once you install FileZilla, you need to know your
- host address
- username
- password
Your host address would be
http://ftp.themindfulfirefly.com
and username and password would be same as your cpanel login details.
If you are not sure, you can ask your hosting company for the ftp login details.
Once you login, go to
www/wp-content/themes/tropicala
and you should be able to find the functions.php.
Let me know if you are not sure of anything :)
fireflysd
Member
Posted 8 months ago #
Thank you so much! I think I can handle that. I will try it and when I get to line 15 in functions.php I'll probably need help again.
fireflysd
Member
Posted 8 months ago #
Okay, I did the ftp thing and got a copy of the functions.php file, but I'm not sure what to do with it, and it doesn't look like there even is a line 15. What should I do next? Can I paste the code here for someone to look at for me?
Upload the new functions.php file to wp-content/themes/tropicala
fireflysd
Member
Posted 8 months ago #
I don't have a new functions.php file. I was just looking at the old one to see if there was an error (see original post about a warning) but I don't know what I'm looking at. Can I paste the code here for someone to look at who knows how to read it?
I don't have a new functions.php file.
Yet you previously said:
I did the ftp thing and got a copy of the functions.php file
fireflysd
Member
Posted 8 months ago #
It's a copy of the old one. I didn't get a new one. It's the same one that I've been having problems with. Are you saying to upload the exact same one that was being used before?
Download a fresh copy of the tropicala theme, unpack the archive, extract the orignal functions.php file and upload it to wp-content/themes/tropicala.
fireflysd
Member
Posted 8 months ago #
Oh, got it! Okay thanks. I'll try that.
fireflysd
Member
Posted 8 months ago #
It looks like functions.php is not the problem. The warning message is
Warning: Cannot modify header information - headers already sent by (output started at /home/firefly/public_html/wp-content/themes/tropicala/functions.php:15) in /home/firefly/public_html/wp-includes/pluggable.php on line 934
I think the problem is in pluggable.php. Any suggestions on what to do with that?
Hi fireflysd,
To narrow down the issue, first check with functions.php and see if there's any space or new line at the top.
If so, remove it.
If it doesn't help, can you tell us what's in functions.php?
Also if you have installed any plugins, go to plugins folder
and remove any plugins you have installed and see if it works.
(Please back up the plugins before removing).
fireflysd
Member
Posted 8 months ago #
Yay! Thank you SO MUCH everyone. I finally got it to work! There were two empty lines at the end of the functions.php file.