{"id":6861598,"date":"2015-12-17T18:43:38","date_gmt":"2015-12-17T18:43:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/blank-page-error-3\/"},"modified":"2016-08-30T21:27:29","modified_gmt":"2016-08-30T21:27:29","slug":"blank-page-error-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/blank-page-error-3\/","title":{"rendered":"Blank page error"},"content":{"rendered":"<p>Hey,<\/p>\n<p>I have a problem.<br \/>\nI am doing unique template and I have encountered this error.<br \/>\nMy page is now blank, and I don&#8217;t understand why. I believe it&#8217;s the closing &lt;body&gt; and &lt;html&gt; tags problem.<\/p>\n<pre><code>&lt;!--Header.php file--&gt;\n&lt;!DOCTYPE html&gt;\n&lt;html &lt;?php language_attributes();?&gt;&gt;\n    &lt;head&gt;\n        &lt;meta charset=&quot;&lt;?php blog_info(&#039;charset&#039;);?&gt;&quot;&gt;\n        &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt;\n        &lt;title&gt;&lt;?php blog_info(&#039;name&#039;);?&gt;&lt;\/title&gt;\n        &lt;?php wp_head();?&gt;\n    &lt;\/head&gt;\n\n&lt;body &lt;?php body_class();?&gt;&gt;\n\n\t&lt;div class=&quot;container&quot;&gt;\n        &lt;header class=&quot;site-header&quot;&gt;\n            &lt;h1&gt;&lt;a href&quot;&lt;?php echo home_url();?&gt;&quot;&gt;&lt;?php bloginfo(&#039;name&#039;);?&gt;&lt;\/a&gt;&lt;\/h1&gt;\n            &lt;h5&gt;&lt;?php bloginfo(&#039;description&#039;);?&gt;&lt;\/h5&gt;\n        &lt;\/header&gt;<\/code><\/pre>\n<pre><code>&lt;!--Footer.php file--&gt;\n&lt;footer class=&quot;site-footer&quot;&gt;\n\t&lt;p&gt;&lt;?php bloginfo(&#039;name&#039;);?&gt; - &amp;copy; &lt;?php echo date(&#039;Y&#039;)?&gt;&lt;\/p&gt;\n&lt;\/footer&gt;\n\n&lt;?php wp_head();?&gt;\n&lt;\/div&gt; &lt;!-- closing div container --&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<pre><code>&lt;!--index.php file--&gt;\n&lt;h1&gt;Hello world!&lt;\/h1&gt;\n\n&lt;?php\n\nget_header();\n\nif (have_posts()):\n\twhile (have_posts()) : the_post();?&gt;\n\n    &lt;article class=&quot;post&quot;&gt;\n        &lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink();?&gt;&quot;&gt;&lt;?php the_title();?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n        &lt;?php the_content();?&gt;\n    &lt;\/article&gt;\n\n&lt;?php endwhile;\n\n\telse :\n\techo &#039;&lt;p&gt;No content found&lt;\/p&gt;&#039;;\n\nendif;\n\nget_footer();\n\n?&gt;<\/code><\/pre>\n<p>I tried deleting everything in header.php file and footer.php file, then suddenly it worked, but when I add something in these files I have blank page error. Can anyone provide me with solution? Would be thankful. &lt;3<\/p>\n","protected":false},"template":"","class_list":["post-6861598","topic","type-topic","status-publish","hentry","topic-tag-wordpress-theme-development"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6861598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6861598\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6861598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}