a few words about web development

Warning: Creating default object from empty value

Common error after migrating to a newer PHP
This PHP error usually means you are assigning values to an object which was not created yet.
Earlier versions of PHP allowed this:
$myObj->hello = 'test';
but now you should initialize the object first:
$myObj = new stdClass;
$myObj->hello = 'test';

Comments