ErrorException [ Notice ]: Trying to get property 'resource' of non-object

APPPATH/classes/Controller/Base.php [ 322 ]

317             $orderBy = 'ac.order, '.$orderBy;
318         }
319 
320         # use the current article to determine if this is a resource page
321         # or not.
322         $this->vars->resource = (int) $this->vars->current->resource;
323         
324         $this->vars->articles = $this->model_article->get_by(
325             array('module' => $this->current_module->id,
326                   'resource' => $this->vars->resource,
327                   'pure' => TRUE,
  1. APPPATH/classes/Controller/Base.php [ 322 ] » Kohana_Core::error_handler()

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

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

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

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

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

  7. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment