Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Noticeyii\base\ErrorException

Trying to get property 'id' of non-object

$_GET = [
    'slug' => 'surrogacy-regulation-bill-2016-all-you-need-know',
    'r' => 'theprsblog/surrogacy-regulation-bill-2016-all-you-need-know',
    'page' => '1',
];