1

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.

It seems to error with the "$this" creating the "Warning: Creating default object from empty value in error".

Even when I turn off the errors in php.ini it still throws up a error print out.

The site does work locally on 5.6 so I'm guessing it has something disabled in the php.ini.

I know all this code would need to ideally be rewritten as it might not even work at all in php 7.

I was just wondering if I had a quick fix option something that could be tweaked in the server.

This is the code in question...

$this->view->css = 'THEME';
$this->view->js = 'ALL';
$this->view->font = 'ALL';

If anyone can help me on this, I would be very grateful.

Script47
  • 14,230
  • 4
  • 45
  • 66
Tom Noble
  • 11
  • 2

1 Answers1

1

It means that $this->view is not a value yet, and it's creating a default empty object from it. More information here

Community
  • 1
  • 1
Gareth Parker
  • 5,012
  • 2
  • 18
  • 42