title: Message: Trying to get property of non-object
body: <p>I have huge delays on my project... I try to understand what is wrong and I can not find a solution. I get on my page these messages</p>
  
  <blockquote>
    <p>A PHP Error was encountered Severity: Notice Message: Trying to get
    property of non-object Filename: controllers/help.php Line Number: 243</p>
    
    <p>A PHP Error was encountered Severity: Notice Message: Trying to get
    property of non-object Filename: controllers/help.php Line Number: 244</p>
    
    <p>A PHP Error was encountered Severity: Notice Message: Trying to get
    property of non-object Filename: controllers/help.php Line Number: 245</p>
  </blockquote>
  
  <p>The lines 243, 244, 245 are as follows on my Controllers</p>
  
  <p>I have created a space between the lines 243, 244, 245 for the image posted here</p>
  
  <pre><code>$this-&gt;template-&gt;write('meta_title',$school_details-&gt;title.'-'.$data['site_setting']['site_name'].' School-'.$meta['title'], TRUE);
          $this-&gt;template-&gt;write('meta_description', $school_details-&gt;title.'-'.$data['site_setting']['site_name'].' School-'.$meta['meta_description'], TRUE);
          $this-&gt;template-&gt;write('meta_keyword', $school_details-&gt;title.'-'.$data['site_setting']['site_name'].' School-'.$meta['meta_keyword'], TRUE);
  </code></pre>
  
  <p>on my URL further down I get
  also another error which is </p>
  
  <p>A PHP Error was encountered</p>
  
  <blockquote>
    <p>Severity: Notice Message: Trying to get property of non-object
    Filename: default/school_detail.php Line Number: 11</p>
    
    <p>A PHP Error was encountered Severity: Notice Message: Trying to get
    property of non-object Filename: default/school_detail.php Line
    Number: 14</p>
  </blockquote>
  
  <p>Now pages 11 to 18 are as follows on my views</p>
  
  <pre><code>&lt;div class="faq_list_div"&gt;
  
  
              &lt;h3 class="faq_heading_title"&gt;&lt;?php echo $school_details-&gt;title; ?&gt;&lt;/h3&gt;
  
              &lt;div style="padding-top:13px;"&gt;
              &lt;?php $content=$school_details-&gt;description;
                  $content=str_replace('KSYDOU','"',$content);
                  $content=str_replace('KSYSING',"'",$content); 
  
                  echo $content; ?&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>What is happening? The parameters work well (in English) when i use Greek Language 
  is another story although is on UTF8 </p>