ErrorException [ Fatal Error ]: Call to a member function getPresenter() on a non-object

FCPATH/system/cms/modules/blog/controllers/blog.php [ 222 ]

217 
218         // Get the latest blog posts
219         $post = BlogEntryModel::where('slug', '=', $slug)
220             ->first();
221 
222         $postPresenter = $post->getPresenter();
223 
224         if (! is_object(ci()->current_user) or ! ci()->current_user->isSuperUser()) {
225             if (! $post or $post['status'] !== 'live') {
226                 redirect('blog');
227             }
  1. {PHP internal call} » MY_Exceptions::shutdown_handler()

Environment