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

APPPATH/views/node/sidebar.php [ 20 ]

15         }
16         $found && HTTP::redirect($found->url());
17     }
18 
19     foreach (array_reverse($resolve_path) as $item) {
20         if (strlen($item->variable('photo')) > 1) {
21             printf('<img src="%s" alt="" class="img" />', Route::url('thmb', array(
22             'x' => 278,
23             'y' => 0,
24             'type' => 0,
25             'file' => $item->variable('photo') . ''
  1. {PHP internal call} » Kohana_Core::shutdown_handler()

Environment