Warning (2) : PDOStatement::execute(): MySQL server has gone away [CORE/Cake/Model/Datasource/DboSource.php , line 437 ]Code Context $query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) { $sql = 'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`)'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {}
$query = object(PDOStatement) {} PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 437
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 403
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 647
DboSource::queryAssociation() - CORE/Cake/Model/Datasource/DboSource.php, line 1219
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1087
Model::find() - CORE/Cake/Model/Model.php, line 2701
PaginatorComponent::paginate() - CORE/Cake/Controller/Component/PaginatorComponent.php, line 172
Controller::paginate() - CORE/Cake/Controller/Controller.php, line 1084
TagsController::view() - APP/Controller/TagsController.php, line 20
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 103
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85
[main] - APP/webroot/index.php, line 92 Warning (2) : PDOStatement::execute() [pdostatement.execute ]: Error reading result set's header [CORE/Cake/Model/Datasource/DboSource.php , line 437 ]Code Context $query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) { $sql = 'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`)'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {}
$query = object(PDOStatement) {} PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 437
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 403
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 647
DboSource::queryAssociation() - CORE/Cake/Model/Datasource/DboSource.php, line 1219
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1087
Model::find() - CORE/Cake/Model/Model.php, line 2701
PaginatorComponent::paginate() - CORE/Cake/Controller/Component/PaginatorComponent.php, line 172
Controller::paginate() - CORE/Cake/Controller/Controller.php, line 1084
TagsController::view() - APP/Controller/TagsController.php, line 20
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 103
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85
[main] - APP/webroot/index.php, line 92
CakePHP: the rapid development php framework: Errors
Database Error
Error:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SQL Query:
SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`)
Notice:
If you want to customize this error message, create app/View/Errors/pdo_error.ctp
Stack Trace
CORE/Cake/Model/Datasource/DboSource.php line 437 → PDOStatement->execute(array) try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
CORE/Cake/Model/Datasource/DboSource.php line 403 → DboSource->_execute(string, array) $options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()
CORE/Cake/Model/Datasource/DboSource.php line 647 → DboSource->execute(string, array, array) if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
if ($result = $this->execute($sql, array(), $params)) {
$out = array(); 'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()
array()
CORE/Cake/Model/Datasource/DboSource.php line 1219 → DboSource->fetchAll(string, boolean) $q = $this->insertQueryData($query, null, $association, $assocData, $model, $linkModel, $stack);
if ($q !== false) {
$fetch = $this->fetchAll($q, $model->cacheQueries);
} else { 'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
false
CORE/Cake/Model/Datasource/DboSource.php line 1087 → DboSource->queryAssociation(Place, Hour, string, string, array, array, boolean, array, integer, array)
if (isset($db) && method_exists($db, 'queryAssociation')) {
$stack = array($assoc);
$db->queryAssociation($model, $linkModel, $type, $assoc, $assocData, $array, true, $resultSet, $model->recursive - 1, $stack);
unset($db); object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
object(Hour) {
name => 'Hour'
weekdays => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'hours'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'hours'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Hour'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
}
'hasAndBelongsToMany'
'Hour'
array(
'className' => 'Hour',
'joinTable' => 'places_hours',
'foreignKey' => 'place_id',
'associationForeignKey' => 'hour_id',
'unique' => true,
'with' => 'PlacesHour',
'dynamicWith' => true,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'callbacks' => true,
'conditions' => array(),
'fields' => array(
(int) 0 => '`Place`.`id`',
(int) 1 => '`Place`.`name`',
(int) 2 => '`Place`.`phone`',
(int) 3 => '`Place`.`fax`',
(int) 4 => '`Place`.`email`',
(int) 5 => '`Place`.`website`',
(int) 6 => '`Place`.`address_id`',
(int) 7 => '`Place`.`user_id`',
(int) 8 => '`Place`.`description`',
(int) 9 => '`Place`.`category_id`',
(int) 10 => '`Place`.`slug`',
(int) 11 => '`Place`.`moderated`',
(int) 12 => '`Place`.`quick_moderated`',
(int) 13 => '`Place`.`created`',
(int) 14 => '`Place`.`review_count`',
(int) 15 => '`Place`.`visit_count`',
(int) 16 => '`Place`.`id`',
(int) 17 => '`Place`.`id`',
(int) 18 => '`Place`.`id`',
(int) 19 => '`Place`.`id`'
),
'joins' => array(),
'order' => array(),
'limit' => array(),
'offset' => array(),
'group' => array()
)
true
array(
(int) 0 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 1 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 2 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array(
[maximum depth reached]
),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 3 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 4 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 5 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 6 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 7 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 8 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 9 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array([maximum depth reached]),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
)
)
(int) 0
array(
(int) 0 => 'Hour'
)
CORE/Cake/Model/Model.php line 2701 → DboSource->read(Place, array) return null;
}
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations(); object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'joins' => array(),
'limit' => (int) 10,
'offset' => (int) 120,
'order' => array(
(int) 0 => null
),
'page' => (int) 13,
'group' => null,
'callbacks' => true,
'maxLimit' => (int) 100,
'paramType' => 'named'
)
CORE/Cake/Controller/Component/PaginatorComponent.php line 172 → Model->find(string, array) if ($recursive != $object->recursive) {
$parameters['recursive'] = $recursive;
}
$results = $object->find($type, array_merge($parameters, $extra));
} 'all'
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'order' => null,
'limit' => (int) 10,
'page' => (int) 13,
'maxLimit' => (int) 100,
'paramType' => 'named'
)
CORE/Cake/Controller/Controller.php line 1084 → PaginatorComponent->paginate(string, array, array) * @deprecated Use PaginatorComponent instead
*/
public function paginate($object = null, $scope = array(), $whitelist = array()) {
return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);
}
APP/Controller/TagsController.php line 20 → Controller->paginate(string) $placeIds = $this->Tag->findPlaceIds($slug, $slug);
# Get all places with this tag
$this->paginate = array('limit' => 10, 'conditions' => array('Place.id' => $placeIds, 'Place.moderated' => true));
$places = $this->__addPrimaryPhoto($this->paginate('Place'));
[internal function] → TagsController->view(string)
CORE/Cake/Controller/Controller.php line 485 → ReflectionMethod->invokeArgs(TagsController, array) 'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
array(
(int) 0 => 'cash'
)
CORE/Cake/Routing/Dispatcher.php line 103 → Controller->invokeAction(CakeRequest) $controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) { object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
CORE/Cake/Routing/Dispatcher.php line 85 → Dispatcher->_invoke(TagsController, CakeRequest, CakeResponse) ));
}
return $this->_invoke($controller, $request, $response);
} object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}
APP/webroot/index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse) App::uses('Dispatcher', 'Routing');
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding')))); object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}
(default) 11 queries took 19 ms
Nr Query Error Affected Num. rows Took (ms)
1 SELECT `Group`.`id`, `Group`.`name`, `Group`.`parent_id` FROM `yozo_yxymedia`.`groups` AS `Group` WHERE `Group`.`id` = '' LIMIT 1 0 0 0
2 SELECT `Tag`.`id`, `Tag`.`name`, `Tag`.`slug`, `Tag`.`tagtype_id`, `Tag`.`moderated`, `Tag`.`created`, `Tagtype`.`id`, `Tagtype`.`name`, `Tagtype`.`slug` FROM `yozo_yxymedia`.`tags` AS `Tag` LEFT JOIN `yozo_yxymedia`.`tagtypes` AS `Tagtype` ON (`Tag`.`tagtype_id` = `Tagtype`.`id`) WHERE ((`Tag`.`slug` = 'cash') OR (((`Tagtype`.`slug` = 'cash') AND (`Tag`.`name` = 'ja')))) LIMIT 1 1 1 1
3 SELECT `PlacesTag`.`id`, `PlacesTag`.`place_id`, `PlacesTag`.`tag_id` FROM `yozo_yxymedia`.`places_tags` AS `PlacesTag` WHERE `PlacesTag`.`tag_id` = (72) 269 269 1
4 SELECT `Place`.`id`, `Place`.`name`, `Place`.`phone`, `Place`.`fax`, `Place`.`email`, `Place`.`website`, `Place`.`address_id`, `Place`.`user_id`, `Place`.`description`, `Place`.`category_id`, `Place`.`slug`, `Place`.`moderated`, `Place`.`quick_moderated`, `Place`.`created`, `Place`.`review_count`, `Place`.`visit_count`, `User`.`id`, `User`.`active`, `User`.`ticket_id`, `User`.`group_id`, `User`.`name`, `User`.`surname`, `User`.`nickname`, `User`.`gender`, `User`.`country`, `User`.`email`, `User`.`password`, `User`.`dateofbirth`, `User`.`defaultlocation`, `User`.`created`, `User`.`last_visit`, `User`.`facebook_id`, `User`.`picture`, (CONCAT(`User`.`name`, " ", `User`.`surname`)) AS `User__full_name`, `Category`.`id`, `Category`.`name`, `Category`.`slug`, `Category`.`keyword`, `Category`.`top`, `Category`.`parent_id`, `Address`.`id`, `Address`.`street`, `Address`.`nr`, `Address`.`zip`, `Address`.`town`, `Address`.`country`, `Address`.`lat`, `Address`.`lng`, (CONCAT(`Address`.`street`, " ", `Address`.`nr`, ", ", `Address`.`zip`, " ", `Address`.`town`)) AS `Address__full_address` FROM `yozo_yxymedia`.`places` AS `Place` LEFT JOIN `yozo_yxymedia`.`users` AS `User` ON (`Place`.`user_id` = `User`.`id`) LEFT JOIN `yozo_yxymedia`.`categories` AS `Category` ON (`Place`.`category_id` = `Category`.`id`) LEFT JOIN `yozo_yxymedia`.`addresses` AS `Address` ON (`Place`.`address_id` = `Address`.`id`) WHERE `Place`.`id` IN (1, 91, 2, 106, 4, 92, 93, 95, 96, 97, 9, 98, 10, 99, 100, 12, 101, 102, 13, 103, 14, 15, 16, 204, 18, 206, 19, 21, 203, 23, 209, 210, 354, 211, 224, 264, 26, 216, 60, 28, 29, 289, 147, 353, 467, 32, 33, 416, 34, 468, 470, 472, 473, 36, 37, 38, 39, 476, 40, 45, 477, 355, 42, 358, 478, 479, 56, 465, 462, 460, 461, 481, 166, 515, 516, 514, 208, 517, 519, 43, 44, 520, 521, 48, 523, 522, 524, 53, 602, 62, 63, 1975, 2548, 2780, 2782, 2783, 2785, 2786, 114, 2788, 866, 2684, 2793, 1246, 2794, 2795, 720, 2799, 2800, 2801, 1096, 2803, 2804, 2805, 2806, 59, 76, 2282, 2810, 2809, 356, 357, 1198, 796, 2812, 2813, 2814, 2185, 1187, 1108, 2816, 2818, 590, 2821, 2822, 2826, 2827, 2183, 409, 2838, 2839, 2840, 74, 1720, 1721, 1722, 1723, 1724, 1725, 1726, 2848, 2849, 1727, 1728, 1729, 1730, 1731, 1732, 2852, 897, 2856, 2857, 2858, 2859, 2860, 412, 382, 2861, 686, 2876, 2880, 2881, 104, 105, 109, 2884, 2885, 2886, 111, 110, 87, 528, 530, 542, 546, 548, 549, 550, 551, 553, 559, 563, 564, 565, 567, 569, 570, 571, 574, 575, 576, 577, 2891, 2896, 2920, 2919, 2921, 1919, 2926, 2927, 2928, 2930, 2931, 2932, 2933, 2935, 2936, 2937, 2938, 2939, 2940, 2941, 2942, 2943, 2944, 4319, 2946, 2947, 2949, 2950, 3570, 6553, 10456, 6504, 3563, 6502, 6506, 6501, 5548, 13632, 5529, 5531, 5012, 4764, 3927, 6353, 13636, 3468, 4597, 4072, 4655, 3655, 845, 10353, 3278, 3272, 13641, 13642, 13646, 13647, 13650, 13663, 3776, 3838, 13670, 13671, 13679, 13685, 13723) AND `Place`.`moderated` = '1' LIMIT 120, 10 10 10 14
5 SELECT `Photo`.`id`, `Photo`.`place_id`, `Photo`.`user_id`, `Photo`.`path`, `Photo`.`title`, `Photo`.`primary`, `Photo`.`moderated`, `Photo`.`created` FROM `yozo_yxymedia`.`photos` AS `Photo` WHERE `Photo`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) 14 14 3
6 SELECT `Review`.`id`, `Review`.`title`, `Review`.`text`, `Review`.`rating`, `Review`.`thumbs_up`, `Review`.`thumbs_down`, `Review`.`user_id`, `Review`.`place_id`, `Review`.`created`, (`Review`.`thumbs_up` - `Review`.`thumbs_down`) AS `Review__thumbs_sum` FROM `yozo_yxymedia`.`reviews` AS `Review` WHERE `Review`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) 1 1 0
7 SELECT `User`.`nickname` FROM `yozo_yxymedia`.`users` AS `User` WHERE `User`.`id` = 712 LIMIT 1 1 1 0
8 SELECT `User`.`picture` FROM `yozo_yxymedia`.`users` AS `User` WHERE `User`.`id` = 712 LIMIT 1 1 1 0
9 SELECT `User`.`defaultlocation` FROM `yozo_yxymedia`.`users` AS `User` WHERE `User`.`id` = 712 LIMIT 1 1 1 0
10 SELECT `Claim`.`id`, `Claim`.`place_id`, `Claim`.`user_id`, `Claim`.`name`, `Claim`.`phone`, `Claim`.`message`, `Claim`.`email`, `Claim`.`document`, `Claim`.`moderated` FROM `yozo_yxymedia`.`claims` AS `Claim` WHERE `Claim`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) 0 0 0
11 SELECT `Visit`.`id`, `Visit`.`place_id`, `Visit`.`category_id`, `Visit`.`user_id`, `Visit`.`created` FROM `yozo_yxymedia`.`visits` AS `Visit` WHERE `Visit`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) 0 0 0
Notice (8) : Undefined variable: facebook [APP/View/Layouts/default.ctp , line 71 ]Code Context ob_start();
include $___viewFn; $___viewFn = '/home/yozo/public_html/app/View/Layouts/default.ctp'
$___dataForView = array(
'code' => (int) 500,
'url' => '/tags/cash/page:13/?url=tags%2Fcash%2Fpage%3A25%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F',
'name' => 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away',
'error' => object(PDOException) {},
'_serialize' => array(
[maximum depth reached]
),
'content_for_layout' => '<h2>Database Error</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away</p>
<p class="notice">
<strong>SQL Query: </strong>
SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) </p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 437</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code>
<code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code>
<code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span>
<code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 403</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $options += array('log' => $this->fullDebug);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $t = microtime(true);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->_result = $this->_execute($sql, $params);</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 647</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {</span></code>
<code><span style="color: #000000"> return $cached;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if ($result = $this->execute($sql, array(), $params)) {</span></code></span>
<code><span style="color: #000000"> $out = array();</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 1219</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string, boolean)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $q = $this->insertQueryData($query, null, $association, $assocData, $model, $linkModel, $stack);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if ($q !== false) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $fetch = $this->fetchAll($q, $model->cacheQueries);</span></code></span>
<code><span style="color: #000000"> } else {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
false</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 1087</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->queryAssociation(Place, Hour, string, string, array, array, boolean, array, integer, array)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (isset($db) && method_exists($db, 'queryAssociation')) {</span></code>
<code><span style="color: #000000"> $stack = array($assoc);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db->queryAssociation($model, $linkModel, $type, $assoc, $assocData, $array, true, $resultSet, $model->recursive - 1, $stack);</span></code></span>
<code><span style="color: #000000"> unset($db);</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
object(Hour) {
name => 'Hour'
weekdays => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'hours'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'hours'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Hour'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
}
'hasAndBelongsToMany'
'Hour'
array(
'className' => 'Hour',
'joinTable' => 'places_hours',
'foreignKey' => 'place_id',
'associationForeignKey' => 'hour_id',
'unique' => true,
'with' => 'PlacesHour',
'dynamicWith' => true,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'callbacks' => true,
'conditions' => array(),
'fields' => array(
(int) 0 => '`Place`.`id`',
(int) 1 => '`Place`.`name`',
(int) 2 => '`Place`.`phone`',
(int) 3 => '`Place`.`fax`',
(int) 4 => '`Place`.`email`',
(int) 5 => '`Place`.`website`',
(int) 6 => '`Place`.`address_id`',
(int) 7 => '`Place`.`user_id`',
(int) 8 => '`Place`.`description`',
(int) 9 => '`Place`.`category_id`',
(int) 10 => '`Place`.`slug`',
(int) 11 => '`Place`.`moderated`',
(int) 12 => '`Place`.`quick_moderated`',
(int) 13 => '`Place`.`created`',
(int) 14 => '`Place`.`review_count`',
(int) 15 => '`Place`.`visit_count`',
(int) 16 => '`Place`.`id`',
(int) 17 => '`Place`.`id`',
(int) 18 => '`Place`.`id`',
(int) 19 => '`Place`.`id`'
),
'joins' => array(),
'order' => array(),
'limit' => array(),
'offset' => array(),
'group' => array()
)
true
array(
(int) 0 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 1 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 2 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array(
[maximum depth reached]
),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 3 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 4 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 5 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 6 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 7 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 8 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 9 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array([maximum depth reached]),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
)
)
(int) 0
array(
(int) 0 => 'Hour'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2701</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->read(Place, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'joins' => array(),
'limit' => (int) 10,
'offset' => (int) 120,
'order' => array(
(int) 0 => null
),
'page' => (int) 13,
'group' => null,
'callbacks' => true,
'maxLimit' => (int) 100,
'paramType' => 'named'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Controller/Component/PaginatorComponent.php line 172</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($recursive != $object->recursive) {</span></code>
<code><span style="color: #000000"> $parameters['recursive'] = $recursive;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $object->find($type, array_merge($parameters, $extra));</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'order' => null,
'limit' => (int) 10,
'page' => (int) 13,
'maxLimit' => (int) 100,
'paramType' => 'named'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">CORE/Cake/Controller/Controller.php line 1084</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">PaginatorComponent->paginate(string, array, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @deprecated Use PaginatorComponent instead</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function paginate($object = null, $scope = array(), $whitelist = array()) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'Place'
array()
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/TagsController.php line 20</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">Controller->paginate(string)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $placeIds = $this->Tag->findPlaceIds($slug, $slug); </span></code>
<code><span style="color: #000000"> # Get all places with this tag</span></code>
<code><span style="color: #000000"> $this->paginate = array('limit' => 10, 'conditions' => array('Place.id' => $placeIds, 'Place.moderated' => true));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $places = $this->__addPrimaryPhoto($this->paginate('Place'));</span></code></span>
<code><span style="color: #000000"> </span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'Place'</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">TagsController->view(string)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'cash'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 485</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ReflectionMethod->invokeArgs(TagsController, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'action' => $request->params['action']</span></code>
<code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $method->invokeArgs($this, $request->params['pass']);</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
array(
(int) 0 => 'cash'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 103</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $controller->startupProcess();</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $render = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = $controller->invokeAction($request);</span></code></span>
<code><span style="color: #000000"> if ($result instanceof CakeResponse) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 85</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(TagsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Errors'
)
$code = (int) 500
$url = '/tags/cash/page:13/?url=tags%2Fcash%2Fpage%3A25%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F'
$name = 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away'
$error = object(PDOException) {}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name',
(int) 3 => 'error'
)
$content_for_layout = '<h2>Database Error</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away</p>
<p class="notice">
<strong>SQL Query: </strong>
SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) </p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p>
<h3>Stack Trace</h3>
<ul class="cake-stack-trace">
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 437</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code>
<code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code>
<code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span>
<code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 403</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $options += array('log' => $this->fullDebug);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $t = microtime(true);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->_result = $this->_execute($sql, $params);</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 647</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {</span></code>
<code><span style="color: #000000"> return $cached;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if ($result = $this->execute($sql, array(), $params)) {</span></code></span>
<code><span style="color: #000000"> $out = array();</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
array()
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 1219</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string, boolean)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $q = $this->insertQueryData($query, null, $association, $assocData, $model, $linkModel, $stack);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if ($q !== false) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $fetch = $this->fetchAll($q, $model->cacheQueries);</span></code></span>
<code><span style="color: #000000"> } else {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'SELECT `Hour`.`id`, `Hour`.`weekday`, `Hour`.`starthour`, `Hour`.`endhour`, `PlacesHour`.`id`, `PlacesHour`.`place_id`, `PlacesHour`.`hour_id` FROM `yozo_yxymedia`.`hours` AS `Hour` JOIN `yozo_yxymedia`.`places_hours` AS `PlacesHour` ON (`PlacesHour`.`place_id` IN (570, 571, 574, 575, 576, 577, 590, 602, 686, 720) AND `PlacesHour`.`hour_id` = `Hour`.`id`) '
false</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 1087</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->queryAssociation(Place, Hour, string, string, array, array, boolean, array, integer, array)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (isset($db) && method_exists($db, 'queryAssociation')) {</span></code>
<code><span style="color: #000000"> $stack = array($assoc);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db->queryAssociation($model, $linkModel, $type, $assoc, $assocData, $array, true, $resultSet, $model->recursive - 1, $stack);</span></code></span>
<code><span style="color: #000000"> unset($db);</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
object(Hour) {
name => 'Hour'
weekdays => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'hours'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'hours'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Hour'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
}
'hasAndBelongsToMany'
'Hour'
array(
'className' => 'Hour',
'joinTable' => 'places_hours',
'foreignKey' => 'place_id',
'associationForeignKey' => 'hour_id',
'unique' => true,
'with' => 'PlacesHour',
'dynamicWith' => true,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'callbacks' => true,
'conditions' => array(),
'fields' => array(
(int) 0 => '`Place`.`id`',
(int) 1 => '`Place`.`name`',
(int) 2 => '`Place`.`phone`',
(int) 3 => '`Place`.`fax`',
(int) 4 => '`Place`.`email`',
(int) 5 => '`Place`.`website`',
(int) 6 => '`Place`.`address_id`',
(int) 7 => '`Place`.`user_id`',
(int) 8 => '`Place`.`description`',
(int) 9 => '`Place`.`category_id`',
(int) 10 => '`Place`.`slug`',
(int) 11 => '`Place`.`moderated`',
(int) 12 => '`Place`.`quick_moderated`',
(int) 13 => '`Place`.`created`',
(int) 14 => '`Place`.`review_count`',
(int) 15 => '`Place`.`visit_count`',
(int) 16 => '`Place`.`id`',
(int) 17 => '`Place`.`id`',
(int) 18 => '`Place`.`id`',
(int) 19 => '`Place`.`id`'
),
'joins' => array(),
'order' => array(),
'limit' => array(),
'offset' => array(),
'group' => array()
)
true
array(
(int) 0 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 1 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 2 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array(
[maximum depth reached]
),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 3 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 4 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 5 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 6 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 7 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 8 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array(
[maximum depth reached]
),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
),
(int) 9 => array(
'Place' => array(
[maximum depth reached]
),
'User' => array(
[maximum depth reached]
),
'Category' => array(
[maximum depth reached]
),
'Address' => array(
[maximum depth reached]
),
'Photo' => array([maximum depth reached]),
'Review' => array([maximum depth reached]),
'Claim' => array([maximum depth reached]),
'Visit' => array([maximum depth reached])
)
)
(int) 0
array(
(int) 0 => 'Hour'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2701</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->read(Place, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span>
<code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(Place) {
name => 'Place'
actsAs => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
loop => false
useDbConfig => 'default'
useTable => 'places'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'places'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Place'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'all'
recursive => (int) 1
order => null
virtualFields => array([maximum depth reached])
__backAssociation => array([maximum depth reached])
__backInnerAssociation => array([maximum depth reached])
__backOriginalAssociation => array([maximum depth reached])
__backContainableAssociation => array([maximum depth reached])
findMethods => array(
[maximum depth reached]
)
User => object(User) {}
Category => object(Category) {}
Address => object(Address) {}
Photo => object(Photo) {}
Review => object(Review) {}
Claim => object(Claim) {}
Visit => object(Visit) {}
Hour => object(Hour) {}
PlacesHour => object(AppModel) {}
Tag => object(Tag) {}
PlacesTag => object(PlacesTag) {}
}
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'joins' => array(),
'limit' => (int) 10,
'offset' => (int) 120,
'order' => array(
(int) 0 => null
),
'page' => (int) 13,
'group' => null,
'callbacks' => true,
'maxLimit' => (int) 100,
'paramType' => 'named'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Controller/Component/PaginatorComponent.php line 172</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($recursive != $object->recursive) {</span></code>
<code><span style="color: #000000"> $parameters['recursive'] = $recursive;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $results = $object->find($type, array_merge($parameters, $extra));</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all'
array(
'conditions' => array(
'Place.id' => array(
[maximum depth reached]
),
'Place.moderated' => true
),
'fields' => null,
'order' => null,
'limit' => (int) 10,
'page' => (int) 13,
'maxLimit' => (int) 100,
'paramType' => 'named'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">CORE/Cake/Controller/Controller.php line 1084</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">PaginatorComponent->paginate(string, array, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @deprecated Use PaginatorComponent instead</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function paginate($object = null, $scope = array(), $whitelist = array()) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $this->Components->load('Paginator', $this->paginate)->paginate($object, $scope, $whitelist);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'Place'
array()
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/TagsController.php line 20</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">Controller->paginate(string)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $placeIds = $this->Tag->findPlaceIds($slug, $slug); </span></code>
<code><span style="color: #000000"> # Get all places with this tag</span></code>
<code><span style="color: #000000"> $this->paginate = array('limit' => 10, 'conditions' => array('Place.id' => $placeIds, 'Place.moderated' => true));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $places = $this->__addPrimaryPhoto($this->paginate('Place'));</span></code></span>
<code><span style="color: #000000"> </span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'Place'</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">TagsController->view(string)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'cash'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Controller/Controller.php line 485</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ReflectionMethod->invokeArgs(TagsController, array)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'action' => $request->params['action']</span></code>
<code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $method->invokeArgs($this, $request->params['pass']);</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
array(
(int) 0 => 'cash'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Routing/Dispatcher.php line 103</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $controller->startupProcess();</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $render = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = $controller->invokeAction($request);</span></code></span>
<code><span style="color: #000000"> if ($result instanceof CakeResponse) {</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 85</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Dispatcher->_invoke(TagsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> return $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre>object(TagsController) {
name => 'Tags'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Tags'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'view'
layout => 'yozo'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Tag'
modelKey => 'tag'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Group => object(Group) {}
Tag => object(Tag) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'tags/cash/page:13/'
base => ''
webroot => '/'
here => '/tags/cash/page:13/'
}
object(CakeResponse) {
}</pre></div></li>
</ul>
<script type="text/javascript">
function traceToggle(event, id) {
var el = document.getElementById(id);
el.style.display = (el.style.display == 'block') ? 'none' : 'block';
event.preventDefault();
return false;
}
</script>
'
$scripts_for_layout = ''
$title_for_layout = 'Errors' include - APP/View/Layouts/default.ctp, line 71
View::_evaluate() - CORE/Cake/View/View.php, line 915
View::_render() - CORE/Cake/View/View.php, line 879
View::renderLayout() - CORE/Cake/View/View.php, line 534
View::render() - CORE/Cake/View/View.php, line 478
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 263
ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 252
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 165
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ??
Fatal error : Call to a member function init() on null in /home/yozo/public_html/app/View/Layouts/default.ctp on line 71