briannyc Posted December 3, 2011 Share Posted December 3, 2011 So last night I was changing the amount of posts I wanted on my Thesis Themed Wordpress blog. I went to click the Save button within wordpress and got this message on the next page. "Warning: Cannot modify header information - headers already sent by (output started at /home/content/50/8403650/html/wp-content/themes/thesis_18/custom/custom_functions.php:2) in /home/content/50/8403650/html/wp-includes/pluggable.php on line 934" Now my nav menu doesn't show up and when I go to archives, it gives me the same warning. Can someone please help me with this? Any help would be appreciated. I've added both custom_functions.php and pluggable.php as an attachment, I don't think it has anything to do with pluggable but added just in case. Thanks for your help. Briannyc [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/ Share on other sites More sharing options...
Pikachu2000 Posted December 3, 2011 Share Posted December 3, 2011 Did you overlook the sticky topic titled HEADER ERRORS - READ HERE BEFORE POSTING THEM? Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-1294013 Share on other sites More sharing options...
briannyc Posted December 3, 2011 Author Share Posted December 3, 2011 I did read it. And that topic did not pertain to the problem. Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-1294020 Share on other sites More sharing options...
scootstah Posted December 3, 2011 Share Posted December 3, 2011 I did read it. And that topic did not pertain to the problem. Yes it does. Somewhere you have output before a header is sent. If whatever you changed made this happen, then I would first look there. What is being sent for headers before that function call? Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-1294023 Share on other sites More sharing options...
btellez Posted December 3, 2011 Share Posted December 3, 2011 Simply put something is outputing (echo() -ing) before the wp_redirect() function in pluggable.php is called. Did you edit any other files when this happened? Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-1294025 Share on other sites More sharing options...
QuickOldCar Posted December 3, 2011 Share Posted December 3, 2011 line 934 of your included pluggable.php is a header() call, before this your theme is already outputting data to the browser. you could just use a meta rtedirect versus the header and call it done <meta http-equiv="refresh" content="0;url=URL TO GO TO" /> Quote Link to comment https://forums.phpfreaks.com/topic/252393-warning-cannot-modify-header-information-headers-already-sent-by/#findComment-1294031 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.