Notice (8): Undefined index: Town [APP/Lib/Globals.php, line 84]Code Context 'conditions' => array('sef_url' => $sef_url),
'cache' => '+1 hour'))) {
self::$currentTown = $data['Town'];
$sef_url = 'clare-county-mi'
$set_cookie = true
$Town = object(Town) {
primaryKey => '_id'
useDbConfig => 'mongo'
useTable => 'towns'
id => false
data => array()
schemaName => null
table => 'towns'
validate => array()
validationErrors => array()
validationDomain => null
plugin => null
name => 'Town'
alias => 'Town'
tableToModel => array(
'towns' => 'Town'
)
cacheQueries => false
belongsTo => array()
hasOne => array()
hasMany => array()
hasAndBelongsToMany => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) 1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
__safeUpdateMode => false
useConsistentAfterFind => true
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
[protected] _schema => null
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => false
[protected] _eventManager => null
[protected] _validator => null
}
$data = array(
'County' => array(
'_id' => '65554ec4c93854a8ac0bc781',
'name' => 'Clare County',
'city' => 'Clare County',
'state' => 'MI',
'full_state' => 'Michigan',
'geo' => array(
(int) 0 => (float) -84.86319732666,
(int) 1 => (float) 43.928199768066
),
'latitude' => (float) 43.928199768066,
'longitude' => (float) -84.86319732666,
'city_state' => 'Clare County, MI',
'term' => 'in Clare County, MI',
'title' => 'Clare County, MI',
'sef_url' => 'clare-county-mi',
'state_sef_url' => 'mi',
'americantowns_url' => 'https://www.americantowns.com/clare-county-mi/',
'towns' => array(
(int) 0 => array(
[maximum depth reached]
),
(int) 1 => array(
[maximum depth reached]
),
(int) 2 => array(
[maximum depth reached]
),
(int) 3 => array(
[maximum depth reached]
),
(int) 4 => array(
[maximum depth reached]
)
)
)
)Globals::setCurrentTown() - APP/Lib/Globals.php, line 84
RssController::events() - APP/Controller/RssController.php, line 28
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 81
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/devel1/project300/lib/Cake/Utility/Debugger.php:797) [APP/Lib/Globals.php, line 160]Code Context public static function setCookie () {
if (empty($_COOKIE['ct'])) setcookie('ct', self::$currentTownUrl, strtotime("+1 year"), '/');
else setcookie('bt', self::$currentTownUrl, 0, '/');
setcookie - [internal], line ??
Globals::setCookie() - APP/Lib/Globals.php, line 160
Globals::setCurrentTown() - APP/Lib/Globals.php, line 87
RssController::events() - APP/Controller/RssController.php, line 28
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 81