Query: SELECT `Node`.`id`, `Node`.`parent_id`, `Node`.`type`, `Node`.`node_order`, `Node`.`component_link`, `Node`.`admin_link`, `Node`.`created`, `Node`.`modified`, `I18nNode`.`id`, `I18nNode`.`node_id`, `I18nNode`.`language_id`, `I18nNode`.`title`, `I18nNode`.`is_active`, `I18nNode`.`is_translated`, `I18nNode`.`created`, `I18nNode`.`modified` FROM `nodes` AS `Node` LEFT JOIN `i18n_nodes` AS `I18nNode` ON (`I18nNode`.`is_active` = 1 AND `I18nNode`.`node_id` = `Node`.`id`) WHERE `I18nNode`.`language_id` = AND `Node`.`parent_id` = 0 ORDER BY `Node`.`node_order` ASC
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `Node`.`parent_id` = 0 ORDER BY `Node`.`node_order` ASC' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 463]
$sql = "SELECT `Node`.`id`, `Node`.`parent_id`, `Node`.`type`, `Node`.`node_order`, `Node`.`component_link`, `Node`.`admin_link`, `Node`.`created`, `Node`.`modified`, `I18nNode`.`id`, `I18nNode`.`node_id`, `I18nNode`.`language_id`, `I18nNode`.`title`, `I18nNode`.`is_active`, `I18nNode`.`is_translated`, `I18nNode`.`created`, `I18nNode`.`modified` FROM `nodes` AS `Node` LEFT JOIN `i18n_nodes` AS `I18nNode` ON (`I18nNode`.`is_active` = 1 AND `I18nNode`.`node_id` = `Node`.`id`) WHERE `I18nNode`.`language_id` = AND `Node`.`parent_id` = 0 ORDER BY `Node`.`node_order` ASC "
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `Node`.`parent_id` = 0 ORDER BY `Node`.`node_order` ASC' at line 1"
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 463
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 289
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 331
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 593
Model::findAll() - CORE/cake/libs/model/model.php, line 1379
Node::get_nodes() - CORE/app/models/node.php, line 26
AppController::beforeRender() - CORE/app/app_controller.php, line 74
Controller::render() - CORE/cake/libs/controller/controller.php, line 618
ErrorHandler::missingController() - CORE/cake/libs/error.php, line 157
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 91
Object::cakeError() - CORE/cake/libs/object.php, line 172
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 186
[main] - CORE/app/webroot/index.php, line 84
Query: SELECT `Project`.`id`, `Project`.`project_type_id`, `Project`.`upcoming_event`, `Project`.`unknown_date`, `Project`.`event_date`, `Project`.`active_until`, `Project`.`created`, `Project`.`modified`, `I18nProject`.`id`, `I18nProject`.`project_id`, `I18nProject`.`language_id`, `I18nProject`.`name`, `I18nProject`.`sef_name`, `I18nProject`.`location`, `I18nProject`.`short_description`, `I18nProject`.`full_description`, `I18nProject`.`is_active`, `I18nProject`.`is_translated`, `I18nProject`.`created`, `I18nProject`.`modified` FROM `projects` AS `Project` LEFT JOIN `i18n_projects` AS `I18nProject` ON (`I18nProject`.`is_active` = 1 AND `I18nProject`.`project_id` = `Project`.`id`) WHERE `I18nProject`.`language_id` = AND `Project`.`upcoming_event` = 1 ORDER BY `Project`.`id` DESC LIMIT 5
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `Project`.`upcoming_event` = 1 ORDER BY `Project`.`id` DESC LIMIT 5' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 463]
$sql = "SELECT `Project`.`id`, `Project`.`project_type_id`, `Project`.`upcoming_event`, `Project`.`unknown_date`, `Project`.`event_date`, `Project`.`active_until`, `Project`.`created`, `Project`.`modified`, `I18nProject`.`id`, `I18nProject`.`project_id`, `I18nProject`.`language_id`, `I18nProject`.`name`, `I18nProject`.`sef_name`, `I18nProject`.`location`, `I18nProject`.`short_description`, `I18nProject`.`full_description`, `I18nProject`.`is_active`, `I18nProject`.`is_translated`, `I18nProject`.`created`, `I18nProject`.`modified` FROM `projects` AS `Project` LEFT JOIN `i18n_projects` AS `I18nProject` ON (`I18nProject`.`is_active` = 1 AND `I18nProject`.`project_id` = `Project`.`id`) WHERE `I18nProject`.`language_id` = AND `Project`.`upcoming_event` = 1 ORDER BY `Project`.`id` DESC LIMIT 5"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `Project`.`upcoming_event` = 1 ORDER BY `Project`.`id` DESC LIMIT 5' at line 1"
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 463
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 289
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 331
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 593
Model::findAll() - CORE/cake/libs/model/model.php, line 1379
AppController::beforeRender() - CORE/app/app_controller.php, line 80
Controller::render() - CORE/cake/libs/controller/controller.php, line 618
ErrorHandler::missingController() - CORE/cake/libs/error.php, line 157
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 91
Object::cakeError() - CORE/cake/libs/object.php, line 172
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 186
[main] - CORE/app/webroot/index.php, line 84
include - CORE/app/views/elements/main_navigation.ctp, line 6
View::_render() - CORE/cake/libs/view/view.php, line 772
View::renderElement() - CORE/cake/libs/view/view.php, line 400
include - CORE/app/views/layouts/index.ctp, line 29
View::_render() - CORE/cake/libs/view/view.php, line 772
View::renderLayout() - CORE/cake/libs/view/view.php, line 485
View::render() - CORE/cake/libs/view/view.php, line 344
Controller::render() - CORE/cake/libs/controller/controller.php, line 663
ErrorHandler::missingController() - CORE/cake/libs/error.php, line 157
ErrorHandler::__construct() - CORE/cake/libs/error.php, line 91
Object::cakeError() - CORE/cake/libs/object.php, line 172
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 186
[main] - CORE/app/webroot/index.php, line 84
Missing controller
You are seeing this error because controller EnController could not be found.
Notice:
If you want to customize this error message, create app/views/errors/missing_controller.ctp
Fatal:
Create the class below in file: app/controllers/en_controller.php
<?php
class EnController extends AppController {
var $name = 'En';
}
?>