{"id":23,"date":"2006-11-30T11:21:39","date_gmt":"2006-11-30T09:21:39","guid":{"rendered":"http:\/\/blog.ansuz.nl\/index.php\/2006\/11\/30\/cannot-modify-header-information\/"},"modified":"2006-11-30T11:24:21","modified_gmt":"2006-11-30T09:24:21","slug":"cannot-modify-header-information","status":"publish","type":"post","link":"http:\/\/blog.ansuz.nl\/index.php\/2006\/11\/30\/cannot-modify-header-information\/","title":{"rendered":"Cannot modify header information"},"content":{"rendered":"<p>This is one of the weirdest errors I ran into. The full error:<\/p>\n<blockquote><p>Warning: Cannot modify header information &#8211; headers already sent by (<strong>output started at \/home\/mysite\/public_html\/some.php:23<\/strong>) in \/home\/mysite\/public_html\/someother.php on line 69<\/p><\/blockquote>\n<p>In most cases the solution to this is removing any leading and trailing spaces of your php open and close tags in the some.php file. In other words,  remove all spaces before your <em>< ?php<\/em> tag and after your <em>?><\/em> tag<\/p>\n<p>A simple but very strange solution&#8230;<\/p>\n<p><em>Note:<\/em> remove the space between the &#8216;<' and '?php', this is merely done so it gets displayed on this page. ;)\n<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>This is one of the weirdest errors I ran into. The full error: Warning: Cannot modify header information &#8211; headers already sent by (output started at \/home\/mysite\/public_html\/some.php:23) in \/home\/mysite\/public_html\/someother.php on line 69 In most cases the solution to this is &hellip; <a href=\"http:\/\/blog.ansuz.nl\/index.php\/2006\/11\/30\/cannot-modify-header-information\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ansuz.nl\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}