Warning!

Fuel\Core\PhpErrorException [ Warning ]:
Undefined array key 0

APPPATH/classes/controller/redirect.php @ line 17

12                    $query->where('id','='Input::get('detail'));
13                }else{
14                    $query->where('old_id','='Input::get('detail'));
15                }
16                $res $query->execute()->as_array();
17                $res $res[0];
18                
19                Response::redirect('/'.$res['category'].'/'.$res['key'].'_/''location'301);
20                exit();
21            }
22            if(Input::get('movie')){

Backtrace

  1. COREPATH/bootstrap.php @ line 103
    98        include COREPATH.'classes/errorhandler.php';
    99        class_alias('\Fuel\Core\Errorhandler''Errorhandler');
    100        class_alias('\Fuel\Core\PhpErrorException''PhpErrorException');
    101    }
    102
    103    return \Errorhandler::error_handler($severity$message$filepath$line);
    104});
    105
    106function setup_autoloader()
    107{
    108    \Autoloader::add_namespace('Fuel\\Core'COREPATH.'classes/');
    
  2. APPPATH/classes/controller/redirect.php @ line 17
    12                    $query->where('id','='Input::get('detail'));
    13                }else{
    14                    $query->where('old_id','='Input::get('detail'));
    15                }
    16                $res $query->execute()->as_array();
    17                $res $res[0];
    18                
    19                Response::redirect('/'.$res['category'].'/'.$res['key'].'_/''location'301);
    20                exit();
    21            }
    22            if(Input::get('movie')){
    
  3. COREPATH/classes/request.php @ line 454
    449                    // fire any controller started events
    450                    \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started''''none');
    451
    452                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    453
    454                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    455
    456                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    457
    458                    // fire any controller finished events
    459                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    
  4. DOCROOT/fuel_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/fuel_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 (HttpBadRequestException $e)
    95{
    96    $response $routerequest('_400_'$e);
    97}
    
  6. DOCROOT/index.php @ line 117
    112    
    113    
    114    
    115    
    116    
    117    include('fuel_index.php');    
    118}
    119
    120
    121
    122/*if(preg_match("/^\/articles\//",$_SERVER['REQUEST_URI'])){