title: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 77
body: <p>So I was working on my new project again, and suddently, I walk in to this error:</p>
  
  <pre><code>Trying to get property of non-object in C:\xampp\htdocs\index.php on line 77
  </code></pre>
  
  <p>So I went to line 77 of <code>index.php</code> and I saw this: (Line 76-77)</p>
  
  <pre><code>$page = 2;
  $pageTemplate = $page-&gt;template;
  </code></pre>
  
  <p>So I checkt a few things, but nothing seems to be wrong. And before you ask, there is a value assigned to <code>$page-&gt;template;</code></p>
  
  <p>Any help from you guys?</p>
  
  <p>Thanks,</p>
  
  <p>Wesley.</p>