ErrorException [ Notice ]: Undefined property: Blocks_Default_Image::$_file

APPPATH/classes/Controller/Articles.php [ 24 ]

19     $this->template->article = $article;
20 
21     $image = $article->get_image();
22 
23     if($image) {
24       Head::instance()->set('preload', 'link', array('rel' => 'preload', 'as' => 'image', 'imagesizes' => '(min-width: 1170px) 1025px, (min-width: 1023px) calc(100vw - 230px), calc(100vw - 40px)', 'href' => $image->_file->cms_file->get_thumb('1025', '577'), 'imagesrcset' => $this->_getImageSrcSet($image)));
25     }
26 
27     if (!$preview) {
28       $readed = Session::instance()->get('readed_article_' . $article->pk(), false);
29       if (!$readed) {
  1. APPPATH/classes/Controller/Articles.php [ 24 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Articles->action_read()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  7. MODPATH/breezy/classes/Breezy/Request.php [ 73 ] » Kohana_Request->execute()

  8. DOCROOT/index.php [ 155 ] » Breezy_Request->execute()

Environment