Warning (2): mysql_query() [function.mysql-query]: MySQL server has gone away [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613]Code |
Context */
function _execute($sql) {
return mysql_query($sql, $this->connection);
$sql = "SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';"
mysql_query - [internal], line ??
DboMysql::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 254
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 411
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 288
DboMysql::getCharsetName() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 805
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 148
Model::schema() - CORE/cake/libs/model/model.php, line 938
Model::setSource() - CORE/cake/libs/model/model.php, line 789
Model::__construct() - CORE/cake/libs/model/model.php, line 483
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Warning (2): mysql_query() [function.mysql-query]: Error reading result set's header [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613]Code |
Context */
function _execute($sql) {
return mysql_query($sql, $this->connection);
$sql = "SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';"
mysql_query - [internal], line ??
DboMysql::_execute() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 254
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 411
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 288
DboMysql::getCharsetName() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 805
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 148
Model::schema() - CORE/cake/libs/model/model.php, line 938
Model::setSource() - CORE/cake/libs/model/model.php, line 789
Model::__construct() - CORE/cake/libs/model/model.php, line 483
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Warning (512): SQL Error: 2006: MySQL server has gone away [CORE/cake/libs/model/datasources/dbo_source.php, line 685]Code |
Context
if ($this->error) {
$this->showQuery($sql);
$sql = "SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';"
$error = "2006: MySQL server has gone away"
$out = null
DboSource::showQuery() - CORE/cake/libs/model/datasources/dbo_source.php, line 685
DboSource::execute() - CORE/cake/libs/model/datasources/dbo_source.php, line 267
DboSource::fetchAll() - CORE/cake/libs/model/datasources/dbo_source.php, line 411
DboSource::query() - CORE/cake/libs/model/datasources/dbo_source.php, line 288
DboMysql::getCharsetName() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 805
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 148
Model::schema() - CORE/cake/libs/model/model.php, line 938
Model::setSource() - CORE/cake/libs/model/model.php, line 789
Model::__construct() - CORE/cake/libs/model/model.php, line 483
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME= 'utf8_general_ci';
Query: SHOW FULL COLUMNS FROM `catproducts`
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 127]Code |
Context $db->cacheSources = ($this->cacheSources && $db->cacheSources);
if ($db->isInterfaceSupported('describe') && $this->useTable !== false) {
$this->_schema = $db->describe($this, $field);
$model = Catproduct
Catproduct::$name = "Catproduct"
Catproduct::$displayField = "name"
Catproduct::$actsAs = array
Catproduct::$belongsTo = array
Catproduct::$useDbConfig = "default"
Catproduct::$useTable = "catproducts"
Catproduct::$id = false
Catproduct::$data = array
Catproduct::$table = "catproducts"
Catproduct::$primaryKey = "id"
Catproduct::$_schema = NULL
Catproduct::$validate = array
Catproduct::$validationErrors = array
Catproduct::$tablePrefix = ""
Catproduct::$alias = "Catproduct"
Catproduct::$tableToModel = array
Catproduct::$logTransactions = false
Catproduct::$cacheQueries = false
Catproduct::$hasOne = array
Catproduct::$hasMany = array
Catproduct::$hasAndBelongsToMany = array
Catproduct::$Behaviors = BehaviorCollection object
Catproduct::$whitelist = array
Catproduct::$cacheSources = true
Catproduct::$findQueryType = NULL
Catproduct::$recursive = 1
Catproduct::$order = NULL
Catproduct::$virtualFields = array
Catproduct::$__associationKeys = array
Catproduct::$__associations = array
Catproduct::$__backAssociation = array
Catproduct::$__insertID = NULL
Catproduct::$__numRows = NULL
Catproduct::$__affectedRows = NULL
Catproduct::$__safeUpdateMode = false
Catproduct::$_findMethods = array
$cache = null
$fields = false
$cols = false
DboMysqlBase::describe() - CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 127
Model::schema() - CORE/cake/libs/model/model.php, line 938
Model::setSource() - CORE/cake/libs/model/model.php, line 789
Model::__construct() - CORE/cake/libs/model/model.php, line 483
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Model::__constructLinkedModel() - CORE/cake/libs/model/model.php, line 667
Model::__createLinks() - CORE/cake/libs/model/model.php, line 638
Model::__construct() - CORE/cake/libs/model/model.php, line 491
ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 142
Controller::loadModel() - CORE/cake/libs/controller/controller.php, line 637
Controller::constructClasses() - CORE/cake/libs/controller/controller.php, line 502
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Query: SHOW FULL COLUMNS FROM `catproducts`
Query: SELECT `Product`.`id` FROM `products` AS `Product` WHERE `Product`.`alias` = 'binh-bot-chua-chay-abc-mfzl8-8kg'
Notice (8): Undefined offset: 0 [APP/controllers/products_controller.php, line 424]Code |
Context )));
}
$output = call_user_func_array(array(&$controller, $params['action']), $params['pass']);
$id = array()
$name = "binh-bot-chua-chay-abc-mfzl8-8kg"
$cut = false
ProductsController::view() - APP/controllers/products_controller.php, line 424
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Query: SELECT COUNT(*) AS `count` FROM `products` AS `Product` WHERE `Product`.`status` = 1 AND `Product`.`catproduct_id` IS NULL AND `Product`.`id` IS NOT NULL
Query: SELECT `Product`.`id`, `Product`.`title`, `Product`.`title_en`, `Product`.`price`, `Product`.`price_cu`, `Product`.`introduction`, `Product`.`content`, `Product`.`content_en`, `Product`.`content_img`, `Product`.`images`, `Product`.`images1`, `Product`.`images2`, `Product`.`images3`, `Product`.`images_en`, `Product`.`catproduct_id`, `Product`.`manufacturer`, `Product`.`display`, `Product`.`sptieubieu`, `Product`.`spkhuyenmai`, `Product`.`alias`, `Product`.`code`, `Product`.`kieudang`, `Product`.`xuatxu`, `Product`.`tinhtrang`, `Product`.`baohanh`, `Product`.`donvi`, `Product`.`chatlieu`, `Product`.`vote`, `Product`.`numvote`, `Product`.`kichthuoc`, `Product`.`kichthuoc1`, `Product`.`kichthuoc2`, `Product`.`kichthuoc3`, `Product`.`kichthuoc4`, `Product`.`kichthuoc5`, `Product`.`khoanggia`, `Product`.`x1`, `Product`.`x2`, `Product`.`x3`, `Product`.`x4`, `Product`.`color`, `Product`.`color1`, `Product`.`color2`, `Product`.`color3`, `Product`.`color4`, `Product`.`color5`, `Product`.`tuychon`, `Product`.`tuychon1`, `Product`.`tuychon2`, `Product`.`tuychon3`, `Product`.`tuychon4`, `Product`.`tuychon5`, `Product`.`price1`, `Product`.`price2`, `Product`.`price3`, `Product`.`price4`, `Product`.`price5`, `Product`.`char`, `Product`.`meta_des`, `Product`.`modified`, `Product`.`title_seo`, `Product`.`status`, `Product`.`meta_key`, `Product`.`created`, `Product`.`checkprice`, `Product`.`brand` FROM `products` AS `Product` WHERE `Product`.`status` = 1 AND `Product`.`catproduct_id` IS NULL AND `Product`.`id` IS NOT NULL ORDER BY `Product`.`id` DESC LIMIT 10
Warning (2): mysqli::mysqli() [mysqli.mysqli]: (HY000/2002): No such file or directory [APP/config/routes.php, line 44]Code |
Context
// Kết nối cơ sở dữ liệu sử dụng thông số cấu hình ở trên
$connection = new mysqli($default['host'], $default['login'], $default['password'], $default['database']);
$fromUrl = "comment/catn/"
$params = array(
"form" => array()
)
$namedExpressions = array(
"Action" => "index|show|add|create|edit|update|remove|del|delete|view|item",
"Year" => "[12][0-9]{3}",
"Month" => "0[1-9]|1[012]",
"Day" => "0[1-9]|[12][0-9]|3[01]",
"ID" => "[0-9]+",
"UUID" => "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
)
$Action = "index|show|add|create|edit|update|remove|del|delete|view|item"
$Year = "[12][0-9]{3}"
$Month = "0[1-9]|1[012]"
$Day = "0[1-9]|[12][0-9]|3[01]"
$ID = "[0-9]+"
$UUID = "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"
$default = array(
"driver" => "mysql",
"persistent" => false,
"host" => "*****",
"login" => "*****",
"password" => "*****",
"database" => "*****",
"prefix" => "*****",
"encoding" => "utf8"
)mysqli::mysqli() - [internal], line ??
include - APP/config/routes.php, line 44
Dispatcher::parseParams() - CORE/cake/dispatcher.php, line 266
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 109
Object::requestAction() - CORE/cake/libs/object.php, line 95
include - APP/views/products/view.ctp, line 18
View::_render() - CORE/cake/libs/view/view.php, line 736
View::render() - CORE/cake/libs/view/view.php, line 431
Controller::render() - CORE/cake/libs/controller/controller.php, line 909
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 80
Kết nối cơ sở dữ liệu thất bại: No such file or directory