smra9 Posted February 20, 2011 Share Posted February 20, 2011 Hi, i am learning WordPress and have just started, but i have a problem....when i try to access my site i get this: Warning: Cannot modify header information - headers already sent by (output started at /home/smra9/public_html/wp-content/themes/evanescence/functions.php:6) in /home/smra9/public_html/wp-includes/pluggable.php on line 890 when i open pluggable.php and i go to the line 890 it says: header("Location: $location", true, $status); i will also copy a text from line 885 to 890 so maybe you will understand better: if ( $is_IIS ) { header("Refresh: 0;url=$location"); } else { if ( php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status); } Can anyone help me, i don't know what to do Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/ Share on other sites More sharing options...
Jessica Posted February 20, 2011 Share Posted February 20, 2011 http://www.phpfreaks.com/forums/php-coding-help/header-errors-read-here-before-posting-them/ Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177136 Share on other sites More sharing options...
smra9 Posted February 20, 2011 Author Share Posted February 20, 2011 I have seen this and have also red few similar problems on this forum but still i don't get it.. Check that there's no characters (output) before a starting PHP tag <?PHP I have check it and it's ok Check that there's no characters (output) after an ending PHP tag ?> I don't even have ?> in my php file can anyone help me or will i have to make a new instalation of wordpress to my site? Thanks for any help Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177144 Share on other sites More sharing options...
Jessica Posted February 20, 2011 Share Posted February 20, 2011 It's probably in a file that's being included then. Are any files included before that section of code? Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177146 Share on other sites More sharing options...
QuickOldCar Posted February 20, 2011 Share Posted February 20, 2011 You can try deleting that theme folder and use the default , then try a different theme. Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177154 Share on other sites More sharing options...
kenrbnsn Posted February 20, 2011 Share Posted February 20, 2011 The error message tells you exactly where the output is done: output started at /home/smra9/public_html/wp-content/themes/evanescence/functions.php:6. That's the file you have to check. Ken Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177157 Share on other sites More sharing options...
Jessica Posted February 20, 2011 Share Posted February 20, 2011 The error message tells you exactly where the output is done: output started at /home/smra9/public_html/wp-content/themes/evanescence/functions.php:6. That's the file you have to check. Ken Wow I am so exhausted right now I didn't even see that. Good job :-P Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177158 Share on other sites More sharing options...
KevinM1 Posted February 20, 2011 Share Posted February 20, 2011 Output also means any PHP print or echo statements executing before the header call. Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177162 Share on other sites More sharing options...
smra9 Posted February 20, 2011 Author Share Posted February 20, 2011 The error message tells you exactly where the output is done: output started at /home/smra9/public_html/wp-content/themes/evanescence/functions.php:6. That's the file you have to check. Ken Thanks Ken, I have checked a file and there were some spaces which i deleted and it works now.. Sorry for my noob questions Problem solved! Link to comment https://forums.phpfreaks.com/topic/228279-cant-access-my-site/#findComment-1177180 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.