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 = 'SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {}
$query = object(PDOStatement) {} PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 437
Mysql::describe() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 308
Model::schema() - CORE/Cake/Model/Model.php, line 1295
Model::__isset() - CORE/Cake/Model/Model.php, line 838
Model::__get() - CORE/Cake/Model/Model.php, line 863
Model::joinModel() - CORE/Cake/Model/Model.php, line 3510
DboSource::generateAssociationQuery() - CORE/Cake/Model/Datasource/DboSource.php, line 1556
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1049
Model::find() - CORE/Cake/Model/Model.php, line 2701
PlacesController::town_category_switch() - APP/Controller/PlacesController.php, line 462
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 = 'SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`'
$params = array()
$prepareOptions = array()
$this = object(Mysql) {}
$query = object(PDOStatement) {} PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 437
Mysql::describe() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 308
Model::schema() - CORE/Cake/Model/Model.php, line 1295
Model::__isset() - CORE/Cake/Model/Model.php, line 838
Model::__get() - CORE/Cake/Model/Model.php, line 863
Model::joinModel() - CORE/Cake/Model/Model.php, line 3510
DboSource::generateAssociationQuery() - CORE/Cake/Model/Datasource/DboSource.php, line 1556
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1049
Model::find() - CORE/Cake/Model/Model.php, line 2701
PlacesController::town_category_switch() - APP/Controller/PlacesController.php, line 462
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:
SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`
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/Database/Mysql.php line 308 → DboSource->_execute(string) $table = $this->fullTableName($model);
$fields = false;
$cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);
if (!$cols) { 'SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`'
CORE/Cake/Model/Model.php line 1295 → Mysql->describe(AppModel) $db = $this->getDataSource();
$db->cacheSources = ($this->cacheSources && $db->cacheSources);
if (method_exists($db, 'describe') && $this->useTable !== false) {
$this->_schema = $db->describe($this);
} elseif ($this->useTable === false) { object(AppModel) {
useDbConfig => 'default'
useTable => 'tagtypes_categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes_categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
name => 'TagtypesCategory'
alias => 'TagtypesCategory'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => 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]
)
}
CORE/Cake/Model/Model.php line 838 → Model->schema()
if (!empty($assocKey)) {
$this->hasAndBelongsToMany[$assocKey]['joinTable'] = $this->{$name}->table;
if (count($this->{$name}->schema()) <= 2 && $this->{$name}->primaryKey !== false) {
$this->{$name}->primaryKey = $this->hasAndBelongsToMany[$assocKey]['foreignKey'];
CORE/Cake/Model/Model.php line 863 → Model->__isset(string) }
return $this->tablePrefix = null;
}
if (isset($this->{$name})) {
return $this->{$name};
CORE/Cake/Model/Model.php line 3510 → Model->__get(string) public function joinModel($assoc, $keys = array()) {
if (is_string($assoc)) {
list(, $assoc) = pluginSplit($assoc);
return array($assoc, array_keys($this->{$assoc}->schema()));
} elseif (is_array($assoc)) {
CORE/Cake/Model/Datasource/DboSource.php line 1556 → Model->joinModel(string, array)
if (isset($assocData['with']) && !empty($assocData['with'])) {
$joinKeys = array($assocData['foreignKey'], $assocData['associationForeignKey']);
list($with, $joinFields) = $model->joinModel($assocData['with'], $joinKeys);
'TagtypesCategory'
array(
(int) 0 => 'category_id',
(int) 1 => 'tagtype_id'
)
CORE/Cake/Model/Datasource/DboSource.php line 1049 → DboSource->generateAssociationQuery(Category, Tagtype, string, string, array, array, boolean, null) if ($bypass) {
$assocData['fields'] = false;
}
if (true === $this->generateAssociationQuery($model, $linkModel, $type, $assoc, $assocData, $queryData, $external, $null)) {
$linkedModels[$type . '/' . $assoc] = true; object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
object(Tagtype) {
name => 'Tagtype'
displayField => 'name'
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'tagtypes'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Tagtype'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => 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'
'Tagtype'
array(
'className' => 'Tagtype',
'joinTable' => 'tagtypes_categories',
'foreignKey' => 'category_id',
'associationForeignKey' => 'tagtype_id',
'unique' => true,
'with' => 'TagtypesCategory',
'dynamicWith' => true,
'conditions' => '',
'fields' => false,
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => array(
(int) 0 => 'COUNT(*) AS `count`'
),
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
false
null
CORE/Cake/Model/Model.php line 2701 → DboSource->read(Category, array) return null;
}
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations(); object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => 'COUNT(*) AS `count`',
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
APP/Controller/PlacesController.php line 462 → Model->find(string, array) $this->town($value);
$this->render('town');
}
elseif($this->Place->Category->find('count', array('conditions' => array('Category.slug' => $value)))){
$this->category(null, $value); 'count'
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
)
)
[internal function] → PlacesController->town_category_switch(string)
CORE/Cake/Controller/Controller.php line 485 → ReflectionMethod->invokeArgs(PlacesController, array) 'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
array(
(int) 0 => 'sitemap.xml'
)
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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
CORE/Cake/Routing/Dispatcher.php line 85 → Dispatcher->_invoke(PlacesController, CakeRequest, CakeResponse) ));
}
return $this->_invoke($controller, $request, $response);
} object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
object(CakeResponse) {
}
(default) 2 queries took 207 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 1
2 SELECT COUNT(*) AS `count` 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 `Address`.`town` = 'sitemap.xml' 1 1 206
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' => '/sitemap.xml?url=sitemap.xml',
'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>
SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories` </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/Database/Mysql.php line 308</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $table = $this->fullTableName($model);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $fields = false;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);</span></code></span>
<code><span style="color: #000000"> if (!$cols) {</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 1295</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->describe(AppModel)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code>
<code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code>
<code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span>
<code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>object(AppModel) {
useDbConfig => 'default'
useTable => 'tagtypes_categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes_categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
name => 'TagtypesCategory'
alias => 'TagtypesCategory'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => 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]
)
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 838</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->schema()</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (!empty($assocKey)) {</span></code>
<code><span style="color: #000000"> $this->hasAndBelongsToMany[$assocKey]['joinTable'] = $this->{$name}->table;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (count($this->{$name}->schema()) <= 2 && $this->{$name}->primaryKey !== false) {</span></code></span>
<code><span style="color: #000000"> $this->{$name}->primaryKey = $this->hasAndBelongsToMany[$assocKey]['foreignKey'];</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 863</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->__isset(string)</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"> return $this->tablePrefix = null;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (isset($this->{$name})) {</span></code></span>
<code><span style="color: #000000"> return $this->{$name};</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'TagtypesCategory'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3510</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->__get(string)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function joinModel($assoc, $keys = array()) {</span></code>
<code><span style="color: #000000"> if (is_string($assoc)) {</span></code>
<code><span style="color: #000000"> list(, $assoc) = pluginSplit($assoc);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return array($assoc, array_keys($this->{$assoc}->schema()));</span></code></span>
<code><span style="color: #000000"> } elseif (is_array($assoc)) {</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>'TagtypesCategory'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Datasource/DboSource.php line 1556</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->joinModel(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (isset($assocData['with']) && !empty($assocData['with'])) {</span></code>
<code><span style="color: #000000"> $joinKeys = array($assocData['foreignKey'], $assocData['associationForeignKey']);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> list($with, $joinFields) = $model->joinModel($assocData['with'], $joinKeys);</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>'TagtypesCategory'
array(
(int) 0 => 'category_id',
(int) 1 => 'tagtype_id'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">CORE/Cake/Model/Datasource/DboSource.php line 1049</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">DboSource->generateAssociationQuery(Category, Tagtype, string, string, array, array, boolean, null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($bypass) {</span></code>
<code><span style="color: #000000"> $assocData['fields'] = false;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (true === $this->generateAssociationQuery($model, $linkModel, $type, $assoc, $assocData, $queryData, $external, $null)) {</span></code></span>
<code><span style="color: #000000"> $linkedModels[$type . '/' . $assoc] = true;</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
object(Tagtype) {
name => 'Tagtype'
displayField => 'name'
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'tagtypes'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Tagtype'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => 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'
'Tagtype'
array(
'className' => 'Tagtype',
'joinTable' => 'tagtypes_categories',
'foreignKey' => 'category_id',
'associationForeignKey' => 'tagtype_id',
'unique' => true,
'with' => 'TagtypesCategory',
'dynamicWith' => true,
'conditions' => '',
'fields' => false,
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => array(
(int) 0 => 'COUNT(*) AS `count`'
),
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
false
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/Model.php line 2701</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">DboSource->read(Category, array)</a> <div id="file-excerpt-8" 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-8" class="cake-code-dump" style="display: none;"><pre>object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => 'COUNT(*) AS `count`',
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/PlacesController.php line 462</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">Model->find(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->town($value);</span></code>
<code><span style="color: #000000"> $this->render('town');</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> elseif($this->Place->Category->find('count', array('conditions' => array('Category.slug' => $value)))){</span></code></span>
<code><span style="color: #000000"> $this->category(null, $value);</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'count'
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">PlacesController->town_category_switch(string)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'sitemap.xml'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 485</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">ReflectionMethod->invokeArgs(PlacesController, array)</a> <div id="file-excerpt-11" 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-11" class="cake-code-dump" style="display: none;"><pre>object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
array(
(int) 0 => 'sitemap.xml'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 103</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-12" 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-12" 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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 85</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(PlacesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" 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-13" class="cake-code-dump" style="display: none;"><pre>object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" 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-14" 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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
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 = '/sitemap.xml?url=sitemap.xml'
$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>
SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories` </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/Database/Mysql.php line 308</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $table = $this->fullTableName($model);</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> $fields = false;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);</span></code></span>
<code><span style="color: #000000"> if (!$cols) {</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SHOW FULL COLUMNS FROM `yozo_yxymedia`.`tagtypes_categories`'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 1295</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->describe(AppModel)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code>
<code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code>
<code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span>
<code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>object(AppModel) {
useDbConfig => 'default'
useTable => 'tagtypes_categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes_categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
name => 'TagtypesCategory'
alias => 'TagtypesCategory'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => array([maximum depth reached])
hasMany => array([maximum depth reached])
hasAndBelongsToMany => 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]
)
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 838</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->schema()</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (!empty($assocKey)) {</span></code>
<code><span style="color: #000000"> $this->hasAndBelongsToMany[$assocKey]['joinTable'] = $this->{$name}->table;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (count($this->{$name}->schema()) <= 2 && $this->{$name}->primaryKey !== false) {</span></code></span>
<code><span style="color: #000000"> $this->{$name}->primaryKey = $this->hasAndBelongsToMany[$assocKey]['foreignKey'];</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 863</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->__isset(string)</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"> return $this->tablePrefix = null;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (isset($this->{$name})) {</span></code></span>
<code><span style="color: #000000"> return $this->{$name};</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'TagtypesCategory'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 3510</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->__get(string)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function joinModel($assoc, $keys = array()) {</span></code>
<code><span style="color: #000000"> if (is_string($assoc)) {</span></code>
<code><span style="color: #000000"> list(, $assoc) = pluginSplit($assoc);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> return array($assoc, array_keys($this->{$assoc}->schema()));</span></code></span>
<code><span style="color: #000000"> } elseif (is_array($assoc)) {</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>'TagtypesCategory'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Datasource/DboSource.php line 1556</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->joinModel(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> if (isset($assocData['with']) && !empty($assocData['with'])) {</span></code>
<code><span style="color: #000000"> $joinKeys = array($assocData['foreignKey'], $assocData['associationForeignKey']);</span></code>
<span class="code-highlight"><code><span style="color: #000000"> list($with, $joinFields) = $model->joinModel($assocData['with'], $joinKeys);</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>'TagtypesCategory'
array(
(int) 0 => 'category_id',
(int) 1 => 'tagtype_id'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">CORE/Cake/Model/Datasource/DboSource.php line 1049</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">DboSource->generateAssociationQuery(Category, Tagtype, string, string, array, array, boolean, null)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($bypass) {</span></code>
<code><span style="color: #000000"> $assocData['fields'] = false;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> if (true === $this->generateAssociationQuery($model, $linkModel, $type, $assoc, $assocData, $queryData, $external, $null)) {</span></code></span>
<code><span style="color: #000000"> $linkedModels[$type . '/' . $assoc] = true;</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
object(Tagtype) {
name => 'Tagtype'
displayField => 'name'
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'tagtypes'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'tagtypes'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Tagtype'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
belongsTo => array([maximum depth reached])
hasOne => 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'
'Tagtype'
array(
'className' => 'Tagtype',
'joinTable' => 'tagtypes_categories',
'foreignKey' => 'category_id',
'associationForeignKey' => 'tagtype_id',
'unique' => true,
'with' => 'TagtypesCategory',
'dynamicWith' => true,
'conditions' => '',
'fields' => false,
'order' => '',
'limit' => '',
'offset' => '',
'finderQuery' => '',
'deleteQuery' => '',
'insertQuery' => ''
)
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => array(
(int) 0 => 'COUNT(*) AS `count`'
),
'joins' => array(
(int) 0 => array(
[maximum depth reached]
)
),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)
false
null</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Model/Model.php line 2701</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">DboSource->read(Category, array)</a> <div id="file-excerpt-8" 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-8" class="cake-code-dump" style="display: none;"><pre>object(Category) {
name => 'Category'
displayField => 'name'
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasAndBelongsToMany => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'categories'
id => false
data => array([maximum depth reached])
schemaName => 'yozo_yxymedia'
table => 'categories'
primaryKey => 'id'
validate => array([maximum depth reached])
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => ''
alias => 'Category'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasOne => array([maximum depth reached])
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'count'
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]
)
ParentCategory => object(Category) {}
ChildCategory => object(Category) {}
Place => object(Place) {}
Visit => object(Visit) {}
Tagtype => object(Tagtype) {}
TagtypesCategory => object(AppModel) {}
}
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
),
'fields' => 'COUNT(*) AS `count`',
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => false
),
'page' => (int) 1,
'group' => null,
'callbacks' => true
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Controller/PlacesController.php line 462</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">Model->find(string, array)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->town($value);</span></code>
<code><span style="color: #000000"> $this->render('town');</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> elseif($this->Place->Category->find('count', array('conditions' => array('Category.slug' => $value)))){</span></code></span>
<code><span style="color: #000000"> $this->category(null, $value);</span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>'count'
array(
'conditions' => array(
'Category.slug' => 'sitemap.xml'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">PlacesController->town_category_switch(string)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'sitemap.xml'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 485</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">ReflectionMethod->invokeArgs(PlacesController, array)</a> <div id="file-excerpt-11" 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-11" class="cake-code-dump" style="display: none;"><pre>object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
array(
(int) 0 => 'sitemap.xml'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 103</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-12" 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-12" 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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 85</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(PlacesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" 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-13" class="cake-code-dump" style="display: none;"><pre>object(PlacesController) {
name => 'Places'
helpers => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
user => null
uses => array(
[maximum depth reached]
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Places'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'town_category_switch'
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 => 'Place'
modelKey => 'place'
validationErrors => null
Session => object(SessionComponent) {}
Redirect => object(RedirectComponent) {}
Email => object(EmailComponent) {}
Connect => object(ConnectComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Seo => object(SeoComponent) {}
Auth => object(AuthComponent) {}
Yourls => object(YourlsComponent) {}
Group => object(Group) {}
Place => object(Place) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" 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-14" 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 => 'sitemap.xml'
base => ''
webroot => '/'
here => '/sitemap.xml'
}
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