Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'slug' => 'bachelors-biotexnologiya-funkcionalnyx-produktov-pitaniya-i-biologicheski-aktivnyx-veshhestv',
];

$_SESSION = [
    '__flash' => [],
];