Warning (2): PDOStatement::execute(): MySQL server has gone away [CORE/Cake/Model/Datasource/DboSource.php, line 502]Code Context $query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$sql = 'SELECT `Tag`.*, COUNT(`Video`.`id`) AS video_count FROM `admin_giaitrihay`.`gth_tags` AS `Tag` LEFT JOIN `admin_giaitrihay`.`gth_tags_taxonomies` AS `TagsTaxonomy` ON ((`Tag`.`id` = `TagsTaxonomy`.`tag_id` AND `TagsTaxonomy`.`taxonomy` = 'Video')) LEFT JOIN `admin_giaitrihay`.`gth_videos` AS `Video` ON ((`Video`.`id` = `TagsTaxonomy`.`taxonomy_id`)) WHERE `Tag`.`publish` = 1 GROUP BY `Tag`.`id` HAVING COUNT(`Video`.`id`) >= 3 ORDER BY `Tag`.`created` DESC LIMIT 80'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
),
'unsigned' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'enum' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'smallinteger' => array(
[maximum depth reached]
),
'tinyinteger' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'decimal' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => null
numRows => null
took => null
configKeyName => 'default'
virtualFieldSeparator => '__'
map => array()
connected => true
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql',
'prefix' => 'gth_',
'encoding' => 'utf8mb4'
)
cacheSources => true
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array([maximum depth reached])
)
[protected] _connection => object(PDO) {}
[protected] _useAlias => true
[protected] _charsets => array(
'utf8_general_ci' => 'utf8'
)
[protected] _result => null
[protected] _queriesCnt => (int) 0
[protected] _queriesTime => null
[protected] _queriesLog => array()
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array()
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'rlike',
(int) 3 => 'or',
(int) 4 => 'not',
(int) 5 => 'in',
(int) 6 => 'between',
(int) 7 => 'regexp',
(int) 8 => 'similar to'
)
[protected] _sqlBoolOps => array(
(int) 0 => 'and',
(int) 1 => 'or',
(int) 2 => 'not',
(int) 3 => 'and not',
(int) 4 => 'or not',
(int) 5 => 'xor',
(int) 6 => '||',
(int) 7 => '&&'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null,
'having' => null,
'lock' => null
)
[protected] _methodCacheChange => true
[protected] _descriptions => array(
'admin_giaitrihay.gth_tags' => array(
[maximum depth reached]
)
)
[protected] _sources => array(
(int) 0 => 'gth_acos',
(int) 1 => 'gth_aros',
(int) 2 => 'gth_aros_acos',
(int) 3 => 'gth_categories',
(int) 4 => 'gth_comments',
(int) 5 => 'gth_feeds',
(int) 6 => 'gth_feeds_categories',
(int) 7 => 'gth_groups',
(int) 8 => 'gth_posts',
(int) 9 => 'gth_posts_categories',
(int) 10 => 'gth_posts_posts',
(int) 11 => 'gth_posts_posts_categories',
(int) 12 => 'gth_tags',
(int) 13 => 'gth_tags_taxonomies',
(int) 14 => 'gth_users',
(int) 15 => 'gth_users_groups',
(int) 16 => 'gth_videos',
(int) 17 => 'gth_videos_categories',
(int) 18 => 'gth_videos_feeds'
)
[protected] _transactionStarted => false
}
$query = object(PDOStatement) {
queryString => 'SELECT `Tag`.*, COUNT(`Video`.`id`) AS video_count FROM `admin_giaitrihay`.`gth_tags` AS `Tag` LEFT JOIN `admin_giaitrihay`.`gth_tags_taxonomies` AS `TagsTaxonomy` ON ((`Tag`.`id` = `TagsTaxonomy`.`tag_id` AND `TagsTaxonomy`.`taxonomy` = 'Video')) LEFT JOIN `admin_giaitrihay`.`gth_videos` AS `Video` ON ((`Video`.`id` = `TagsTaxonomy`.`taxonomy_id`)) WHERE `Tag`.`publish` = 1 GROUP BY `Tag`.`id` HAVING COUNT(`Video`.`id`) >= 3 ORDER BY `Tag`.`created` DESC LIMIT 80'
}
PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 502
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 468
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 715
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1226
Model::_readDataSource() - CORE/Cake/Model/Model.php, line 3053
Model::find() - CORE/Cake/Model/Model.php, line 3025
Tag::get_list() - APP/Model/Tag.php, line 136
AppController::_get_common_data() - APP/Controller/AppController.php, line 132
AppController::beforeFilter() - APP/Controller/AppController.php, line 92
VideosController::beforeFilter() - APP/Controller/VideosController.php, line 11
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Warning (2): PDOStatement::execute() [<a href='http://php.net/pdostatement.execute'>pdostatement.execute</a>]: Error reading result set's header [CORE/Cake/Model/Datasource/DboSource.php, line 502]Code Context $query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$sql = 'SELECT `Tag`.*, COUNT(`Video`.`id`) AS video_count FROM `admin_giaitrihay`.`gth_tags` AS `Tag` LEFT JOIN `admin_giaitrihay`.`gth_tags_taxonomies` AS `TagsTaxonomy` ON ((`Tag`.`id` = `TagsTaxonomy`.`tag_id` AND `TagsTaxonomy`.`taxonomy` = 'Video')) LEFT JOIN `admin_giaitrihay`.`gth_videos` AS `Video` ON ((`Video`.`id` = `TagsTaxonomy`.`taxonomy_id`)) WHERE `Tag`.`publish` = 1 GROUP BY `Tag`.`id` HAVING COUNT(`Video`.`id`) >= 3 ORDER BY `Tag`.`created` DESC LIMIT 80'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {
description => 'MySQL DBO Driver'
startQuote => '`'
endQuote => '`'
fieldParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
),
'unsigned' => array(
[maximum depth reached]
)
)
tableParameters => array(
'charset' => array(
[maximum depth reached]
),
'collate' => array(
[maximum depth reached]
),
'engine' => array(
[maximum depth reached]
),
'comment' => array(
[maximum depth reached]
)
)
columns => array(
'primary_key' => array(
[maximum depth reached]
),
'string' => array(
[maximum depth reached]
),
'text' => array(
[maximum depth reached]
),
'enum' => array(
[maximum depth reached]
),
'biginteger' => array(
[maximum depth reached]
),
'integer' => array(
[maximum depth reached]
),
'smallinteger' => array(
[maximum depth reached]
),
'tinyinteger' => array(
[maximum depth reached]
),
'float' => array(
[maximum depth reached]
),
'decimal' => array(
[maximum depth reached]
),
'datetime' => array(
[maximum depth reached]
),
'timestamp' => array(
[maximum depth reached]
),
'time' => array(
[maximum depth reached]
),
'date' => array(
[maximum depth reached]
),
'binary' => array(
[maximum depth reached]
),
'boolean' => array(
[maximum depth reached]
)
)
index => array(
'PRI' => 'primary',
'MUL' => 'index',
'UNI' => 'unique'
)
alias => 'AS '
cacheMethods => true
useNestedTransactions => false
fullDebug => true
affected => null
numRows => null
took => null
configKeyName => 'default'
virtualFieldSeparator => '__'
map => array()
connected => true
config => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => false,
'flags' => array([maximum depth reached]),
'datasource' => 'Database/Mysql',
'prefix' => 'gth_',
'encoding' => 'utf8mb4'
)
cacheSources => true
[protected] _baseConfig => array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'port' => '*****',
'persistent' => true,
'flags' => array([maximum depth reached])
)
[protected] _connection => object(PDO) {}
[protected] _useAlias => true
[protected] _charsets => array(
'utf8_general_ci' => 'utf8'
)
[protected] _result => null
[protected] _queriesCnt => (int) 0
[protected] _queriesTime => null
[protected] _queriesLog => array()
[protected] _queriesLogMax => (int) 200
[protected] _queryCache => array()
[protected] _sqlOps => array(
(int) 0 => 'like',
(int) 1 => 'ilike',
(int) 2 => 'rlike',
(int) 3 => 'or',
(int) 4 => 'not',
(int) 5 => 'in',
(int) 6 => 'between',
(int) 7 => 'regexp',
(int) 8 => 'similar to'
)
[protected] _sqlBoolOps => array(
(int) 0 => 'and',
(int) 1 => 'or',
(int) 2 => 'not',
(int) 3 => 'and not',
(int) 4 => 'or not',
(int) 5 => 'xor',
(int) 6 => '||',
(int) 7 => '&&'
)
[protected] _transactionNesting => (int) 0
[protected] _queryDefaults => array(
'conditions' => array([maximum depth reached]),
'fields' => null,
'table' => null,
'alias' => null,
'order' => null,
'limit' => null,
'joins' => array([maximum depth reached]),
'group' => null,
'offset' => null,
'having' => null,
'lock' => null
)
[protected] _methodCacheChange => true
[protected] _descriptions => array(
'admin_giaitrihay.gth_tags' => array(
[maximum depth reached]
)
)
[protected] _sources => array(
(int) 0 => 'gth_acos',
(int) 1 => 'gth_aros',
(int) 2 => 'gth_aros_acos',
(int) 3 => 'gth_categories',
(int) 4 => 'gth_comments',
(int) 5 => 'gth_feeds',
(int) 6 => 'gth_feeds_categories',
(int) 7 => 'gth_groups',
(int) 8 => 'gth_posts',
(int) 9 => 'gth_posts_categories',
(int) 10 => 'gth_posts_posts',
(int) 11 => 'gth_posts_posts_categories',
(int) 12 => 'gth_tags',
(int) 13 => 'gth_tags_taxonomies',
(int) 14 => 'gth_users',
(int) 15 => 'gth_users_groups',
(int) 16 => 'gth_videos',
(int) 17 => 'gth_videos_categories',
(int) 18 => 'gth_videos_feeds'
)
[protected] _transactionStarted => false
}
$query = object(PDOStatement) {
queryString => 'SELECT `Tag`.*, COUNT(`Video`.`id`) AS video_count FROM `admin_giaitrihay`.`gth_tags` AS `Tag` LEFT JOIN `admin_giaitrihay`.`gth_tags_taxonomies` AS `TagsTaxonomy` ON ((`Tag`.`id` = `TagsTaxonomy`.`tag_id` AND `TagsTaxonomy`.`taxonomy` = 'Video')) LEFT JOIN `admin_giaitrihay`.`gth_videos` AS `Video` ON ((`Video`.`id` = `TagsTaxonomy`.`taxonomy_id`)) WHERE `Tag`.`publish` = 1 GROUP BY `Tag`.`id` HAVING COUNT(`Video`.`id`) >= 3 ORDER BY `Tag`.`created` DESC LIMIT 80'
}
PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 502
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 468
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 715
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1226
Model::_readDataSource() - CORE/Cake/Model/Model.php, line 3053
Model::find() - CORE/Cake/Model/Model.php, line 3025
Tag::get_list() - APP/Model/Tag.php, line 136
AppController::_get_common_data() - APP/Controller/AppController.php, line 132
AppController::beforeFilter() - APP/Controller/AppController.php, line 92
VideosController::beforeFilter() - APP/Controller/VideosController.php, line 11
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118