Notice!

Fuel\Core\PhpErrorException [ Notice ]:
Trying to get property of non-object

APPPATH/classes/controller/staff.php @ line 57

52              ->get_one();
53    endif;
54    
55    $this->data['staff_index'] = 1;
56    foreach($this->data['staffs'] as $staff) :
57      if($staff['id'] == $this->data['staff']->id) break;
58      $this->data['staff_index']++;
59    endforeach;
60    
61    if(file_exists(APPPATH.'views/'.$this->data['view_directory_name'].$this->data['device'])) :
62      if(file_exists(APPPATH.'views/'.$this->data['view_directory_name'].'/customize/'.$this->data['company']['id'].'/'.$this->data['device'].'/staff-personal.php')) :

Backtrace

  1. COREPATH/bootstrap.php @ line 109
    104        include COREPATH.'classes/error.php';
    105        class_alias('\Fuel\Core\Error''Error');
    106        class_alias('\Fuel\Core\PhpErrorException''PhpErrorException');
    107    }
    108
    109    return \Error::error_handler($severity$message$filepath$line);
    110});
    111
    112function setup_autoloader()
    113{
    114    \Autoloader::add_namespace('Fuel\\Core'COREPATH.'classes/');
    
  2. APPPATH/classes/controller/staff.php @ line 57
    52              ->get_one();
    53    endif;
    54    
    55    $this->data['staff_index'] = 1;
    56    foreach($this->data['staffs'] as $staff) :
    57      if($staff['id'] == $this->data['staff']->id) break;
    58      $this->data['staff_index']++;
    59    endforeach;
    60    
    61    if(file_exists(APPPATH.'views/'.$this->data['view_directory_name'].$this->data['device'])) :
    62      if(file_exists(APPPATH.'views/'.$this->data['view_directory_name'].'/customize/'.$this->data['company']['id'].'/'.$this->data['device'].'/staff-personal.php')) :
    
  3. COREPATH/classes/request.php @ line 443
    438                    // fire any controller started events
    439                    \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started''''none');
    440
    441                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    442
    443                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    444
    445                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    446
    447                    // fire any controller finished events
    448                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    
  4. DOCROOT/index.php @ line 71
    66            $response Response::forge($response);
    67        }
    68    }
    69    elseif ($e === false)
    70    {
    71        $response Request::forge()->execute()->response();
    72    }
    73    elseif ($route)
    74    {
    75        $response Request::forge($routefalse)->execute(array($e))->response();
    76    }
    
  5. DOCROOT/index.php @ line 92
    87{
    88    // Boot the app...
    89    require APPPATH.'bootstrap.php';
    90
    91    // ... and execute the main request
    92    $response $routerequest();
    93}
    94catch (HttpNoAccessException $e)
    95{
    96    $response $routerequest('_403_'$e);
    97}