Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'url ''' at line 5 [CORE/cake/libs/model/datasources/dbo_source.php, line 688]Code |
Context
if ($this->error) {
$this->showQuery($sql);
$sql = "
SELECT * from pagina_textos as PaginaTexto
LEFT JOIN paginas as Pagina
ON PaginaTexto.pagina_id = Pagina.id
WHERE
PaginaTexto.slug ='' url ''"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'url ''' at line 5"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 688
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 287
Model::query() - CORE/cake/libs/model/model.php, line 2489
Pagina::get_registro() - APP/models/pagina.php, line 45
AppController::index() - APP/controllers/app_controller.php, line 66
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Query:
SELECT * from pagina_textos as PaginaTexto
LEFT JOIN paginas as Pagina
ON PaginaTexto.pagina_id = Pagina.id
WHERE
PaginaTexto.slug ='' url ''
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'url '%') LIMIT 1' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 688]Code |
Context
if ($this->error) {
$this->showQuery($sql);
$sql = "SELECT `Pagina`.`id`, `Pagina`.`visible`, `Pagina`.`tipo`, `Pagina`.`referencia`, `Pagina`.`categoria_menu`, `Pagina`.`imagen`, `Pagina`.`layout`, `Pagina`.`mapa`, `Pagina`.`tiene_mapa`, `Pagina`.`tiene_formulario`, `Pagina`.`cantidad_textos_blog`, `Pagina`.`foto-portada-blog`, `Pagina`.`nota`, `Pagina`.`mini_nota`, `Pagina`.`orden`, `Pagina`.`created`, `Pagina`.`modified`, `Pagina`.`titulo` FROM `paginas` AS `Pagina` WHERE `Pagina`.`referencia` like ('%' url '%') LIMIT 1"
$error = "1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'url '%') LIMIT 1' at line 1"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 688
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 266
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 410
DboSource::read() - CORE/cake/libs/model/datasources/dbo_source.php, line 825
Model::find() - CORE/cake/libs/model/model.php, line 2153
Pagina::get_registro() - APP/models/pagina.php, line 59
AppController::index() - APP/controllers/app_controller.php, line 66
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Query: SELECT `Pagina`.`id`, `Pagina`.`visible`, `Pagina`.`tipo`, `Pagina`.`referencia`, `Pagina`.`categoria_menu`, `Pagina`.`imagen`, `Pagina`.`layout`, `Pagina`.`mapa`, `Pagina`.`tiene_mapa`, `Pagina`.`tiene_formulario`, `Pagina`.`cantidad_textos_blog`, `Pagina`.`foto-portada-blog`, `Pagina`.`nota`, `Pagina`.`mini_nota`, `Pagina`.`orden`, `Pagina`.`created`, `Pagina`.`modified`, `Pagina`.`titulo` FROM `paginas` AS `Pagina` WHERE `Pagina`.`referencia` like ('%' url '%') LIMIT 1
no se encuentra la páginaWarning (2): key() expects parameter 1 to be array, null given [APP/models/texto.php, line 31]Code |
Context function get_textos($pagina=""){
$model_name = key($pagina);
$pagina = null
key - [internal], line ??
Texto::get_textos() - APP/models/texto.php, line 31
AppController::index() - APP/controllers/app_controller.php, line 69
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 86
Missing View
Error:
The view for PaginasController::/views_server/paginas/() was not found.
Error:
Confirm you have created the file: /var/www/vhosts/fastbikesbcn.es/httpdocs/app/views/views_server/paginas.ctp
Notice:
If you want to customize this error message, create app/views/errors/missing_view.ctp