title: Warning: Creating default object from empty value in ($this)
body: <p>I'm moving over a website with a custom CMS (which I didn't build) to a new server which runs 5.6.31 php.</p>
  
  <p>It seems to error with the "$this" creating the "Warning: Creating default object from empty value in error".</p>
  
  <p>Even when I turn off the errors in php.ini it still throws up a error print out.</p>
  
  <p>The site does work locally on 5.6 so I'm guessing it has something disabled in the php.ini.</p>
  
  <p>I know all this code would need to ideally be rewritten as it might not even work at all in php 7.</p>
  
  <p>I was just wondering if I had a quick fix option something that could be tweaked in the server.</p>
  
  <p>This is the code in question...</p>
  
  <pre><code>$this-&gt;view-&gt;css = 'THEME';
  $this-&gt;view-&gt;js = 'ALL';
  $this-&gt;view-&gt;font = 'ALL';
  </code></pre>
  
  <p>If anyone can help me on this, I would be very grateful.</p>