HTTP Error 500

/var/www/html/ravencosplay/Application/Controllers/BlogController.php:40:Trying to get property of non-object:8