Error

PHP Noticeyii\base\ErrorException

Trying to get property of non-object

$_GET = [
    'id' => '17795',
    'slug' => 'nikola-tesla-sbornik-statejj',
];