Cannot modify header information – headers already sent by… WordPress Issue in Plugins


Some times when we add function wp_redirect() in wordpress plugin it gives error notice that “cannot modify header information. headers already sent by… see in pluggable.php in 934 line“. Then First check if any extra space not remain in wordpress plugin code. If not then add ob_start(); in function call with init hook in wordpress.

//allow redirection, even if my theme starts to send output to the browser
add_action(‘init’, ‘do_output_buffer’);
function do_output_buffer() {
ob_start();
}

Advertisements

12 responses to “Cannot modify header information – headers already sent by… WordPress Issue in Plugins

    • thanks for your comments…:-) It is not paid subject matter. I am a php developer and sometime i got some issue during development so post those issue here with there solution so in future not only i but anyone can get help from here. main object behind the blog is just to share our issues and there solutions with other so it can helpful for everyone. anybody can post here there problems or the solutions …:-)

  1. I am not certain the place you are getting your info, but great topic. I must spend a while finding out more or working out more. Thank you for fantastic info I used to be looking for this information for my mission.

  2. Yay google is my queen helped me to find this outstanding site! . “I believe half the unhappiness in life comes from people being afraid to go straight at things.” by William J. Locke.

  3. Hi there, I discovered your blog by means of Google while searching for a similar matter, your web site got here up, it seems to be good. I’ve added to my favourites|added to my bookmarks.

  4. You really make it seem so easy along with your presentation but I in finding this topic to be really one thing which I feel I’d by no means understand. It kind of feels too complex and extremely large for me. I am looking ahead in your subsequent post, I will try to get the hold of it!

  5. This is a message to the webmaster. I discovered your “Cannot modify header information – headers already sent by… WordPress Issue in Plugins | coderhub” page via Google but it was difficult to find as you were not on the first page of search results. I see you could have more traffic because there are not many comments on your website yet. I have found a website which offers to dramatically increase your rankings and traffic to your site: http://www.linklegends.com/free-trial. I managed to get close to 1000 visitors/day using their services, you could also get lot more targeted visitors from search engines than you have now. Their free trial and brought significantly more visitors to my website. Hope this helps 🙂 Take care.

  6. I don’t even know how I ended up here, but I thought this post was good. I do not know who you are but definitely you’re going to a famous blogger if you are not already 😉 Cheers!

  7. My husband and i got very joyous Ervin could deal with his investigation from your ideas he acquired from your own web page. It’s not at all simplistic to simply find yourself releasing tips that a number of people may have been trying to sell. And we also fully grasp we have got the writer to give thanks to for that. The main explanations you have made, the straightforward website menu, the relationships you aid to instill – it’s everything fabulous, and it’s really making our son in addition to us consider that the matter is satisfying, which is particularly mandatory. Many thanks for everything!

  8. Great post and right to the point. I don’t know if this is really the best place to ask but do you folks have any thoughts on where to employ some professional writers? Thx 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s