title: How to fix "id=error-page" default on index.php in a WordPress theme
body: <p>I am creating a custom WordPress theme and I want to have multiple pages that I create myself. After creating a second page, the home page now displays in a strange center alignment with <code>id=error-page</code> in the body tag after I changed the other page's template to the new page I created. None of this should of had an affect on the index page.</p>
  
  <p>I have tried copying my index.php into home.php, but the index page still loads with the weird center alignment and contains the same <code>id=error-page</code> in the body tag. The page displayed fine originally, but after adding a page template for a new page I was trying to create, the index has changed.</p>
  
  <p>Here is the first few sections in my <strong>index.php</strong> to show my code should be correct:</p>
  
  <pre><code>    &lt;?php get_footer(); &gt;
  
      &lt;!-- Background Video --&gt;
      &lt;div class="video"&gt;
        &lt;div class="overlay"&gt;&lt;/div&gt;
          &lt;video playsinline="playsinline" autoplay="autoplay" muted="muted" loop="loop"&gt;
            &lt;source src="&lt;?php echo get_template_directory_uri(); ?&gt;/videos/FFHPainVideo.mp4" type="video/mp4"/&gt;
          &lt;/video&gt;
      &lt;/div&gt;
  
      &lt;!-- Hero Video Text --&gt;
      &lt;div class="container h-100"&gt;
        &lt;div class="d-flex h-100 text-center align-items-center"&gt;
          &lt;div class="w-100 text-black"&gt;
            &lt;button type="button" class="btn btn-danger btn-circle btn-xl open"&gt;&lt;i class="fa fa-play text-white" aria-hidden="true"&gt;&lt;/i&gt;&lt;/button&gt;
            &lt;h1 class="display-3"&gt;Family First Healthcare&lt;/h1&gt;
            &lt;h1 class="display-3"&gt;Pain Management&lt;/h1&gt;
            &lt;p class="lead mb-0"&gt;An Athens Heart Center &amp; Specialty Clinics Affiliate&lt;/p&gt;
            &lt;button onclick="window.location.href = '#'; " type="button" class="btn btn-danger mt-3 px-4"&gt;Get Started Here &gt;&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I expect the page to be normal when I load it, but I get a <code>Failed to load resource: the server responded with a status of 500. (index):1</code> error as well.</p>
  
  <p>Here are the most recent server logs:</p>
  
  <pre><code>PHP Fatal error:  Uncaught Error: Call to &gt;undefined function 
  get_ssite_url() in /srv/htdocs/wp-content/themes/No
  Phun/footer.php:18
  
  Stack trace:
  #0 /wordpress/core/5.2.3/wp-includes/template.php(722): require_once()
  #1 /wordpress/core/5.2.3/wp-includes/template.php(671): 
  load_template('/srv/htdocs/wp-...', true)
  #2 /wordpress/core/5.2.3/wp-includes/general-template.php(76): locate_template(Array, true)
  #3 /srv/htdocs/wp-content/themes/No Phun/index.php(218): get_footer()
  #4 /wordpress/core/5.2.3/wp-includes/template-loader.php(78): include('/srv/htdocs/wp-...')
  #5 /wordpress/core/5.2.3/wp-blog-header.php(19): require_once('/wordpress/core...')
  #6 /wordpress/core/5.2.3/index.php(17): require('/wordpress/core...')
  #7 {main} thrown in /srv/htdocs/wp-content/themes/No Phun/footer.php on line 18
  
  [05-Oct-2019 01:03:02 UTC] PHP Warning:  session_start(): Cannot start session when headers already sent in /srv/htdocs/wp-content/plugins/wp-clone-template/main.php on line 119
  [05-Oct-2019 01:06:19 UTC] PHP Warning:  session_start(): Cannot start session when headers already sent in /srv/htdocs/wp-content/plugins/wp-clone-template/main.php on line 119
  </code></pre>