Warning!

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

APPPATH/classes/controller/blog.php @ line 139

134                            ->where(\Model_Pages::get_field('permalink'), '='$permalink)
135                            ->where(\Model_Pages::get_field('language'), '='\Model_i18n::$language)
136                            ->where(\Model_Pages::get_field('type'), '='\Model_Pages::TYPE_BLOG)
137                            ->limit(1)
138                        );
139                });
140//            var_dump($permalink, \Model_i18n::$language, $this->template->page);
141//            die();
142
143//            if (empty($this->template->page)) {
144//                @list($page) = \Model_Pages::find(function ($query) use ($permalink) {

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/blog.php @ line 139
    134                            ->where(\Model_Pages::get_field('permalink'), '='$permalink)
    135                            ->where(\Model_Pages::get_field('language'), '='\Model_i18n::$language)
    136                            ->where(\Model_Pages::get_field('type'), '='\Model_Pages::TYPE_BLOG)
    137                            ->limit(1)
    138                        );
    139                });
    140//            var_dump($permalink, \Model_i18n::$language, $this->template->page);
    141//            die();
    142
    143//            if (empty($this->template->page)) {
    144//                @list($page) = \Model_Pages::find(function ($query) use ($permalink) {
    
  3. COREPATH/classes/request.php @ line 473
    468                    // fire any controller started events
    469                    \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started''''none');
    470
    471                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    472
    473                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    474
    475                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    476
    477                    // fire any controller finished events
    478                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    
  4. DOCROOT/index.php @ line 88
    83// Boot the app
    84require APPPATH 'bootstrap.php';
    85
    86// Generate the request, execute it and send the output.
    87try {
    88    $response Request::forge()->execute()->response();
    89} catch (HttpNotFoundException $e) {
    90    $route array_key_exists('_404_'Router::$routes) ? Router::$routes['_404_']->translation Config::get('routes._404_');
    91
    92    if ($route instanceof Closure) {
    93        $response $route();