Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/SearchesTable.php, line 495]Code Context // 取得した$listから沿線を取得して並び替え処理
$routeNames = [];
foreach ($list as $routeId => $routeContents) {
$Rooms = object(App\Model\Table\RoomsTable) {
'registryAlias' => 'rooms',
'table' => 'rooms',
'alias' => 'rooms',
'entityClass' => 'App\Model\Entity\Room',
'associations' => [
(int) 0 => 'roomimages',
(int) 1 => 'articles',
(int) 2 => 'facilities',
(int) 3 => 'shops'
],
'behaviors' => [
(int) 0 => 'Timestamp'
],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$cache_key = 'search_stations_list'
$list = false
$stations = object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT stations.id AS `stations__id`, stations.routes_id AS `stations__routes_id`, (SELECT title FROM routes WHERE id = stations.routes_id LIMIT 1) AS `route`, stations.stations_id AS `stations__stations_id`, title AS `station` FROM stations stations WHERE stations.flag = :c0',
'params' => [
':c0' => [
[maximum depth reached]
]
],
'defaultTypes' => [
'stations__id' => 'biginteger',
'stations.id' => 'biginteger',
'id' => 'biginteger',
'stations__flag' => 'integer',
'stations.flag' => 'integer',
'flag' => 'integer',
'stations__routes_id' => 'biginteger',
'stations.routes_id' => 'biginteger',
'routes_id' => 'biginteger',
'stations__stations_id' => 'biginteger',
'stations.stations_id' => 'biginteger',
'stations_id' => 'biginteger',
'stations__title' => 'string',
'stations.title' => 'string',
'title' => 'string',
'stations__display_order' => 'integer',
'stations.display_order' => 'integer',
'display_order' => 'integer',
'stations__lat' => 'float',
'stations.lat' => 'float',
'lat' => 'float',
'stations__lng' => 'float',
'stations.lng' => 'float',
'lng' => 'float',
'stations__admins_id' => 'biginteger',
'stations.admins_id' => 'biginteger',
'admins_id' => 'biginteger',
'stations__created' => 'datetime',
'stations.created' => 'datetime',
'created' => 'datetime',
'stations__modified' => 'datetime',
'stations.modified' => 'datetime',
'modified' => 'datetime'
],
'decorators' => (int) 1,
'executed' => true,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 0,
'mapReducers' => (int) 0,
'contain' => [],
'matching' => [],
'extraOptions' => [],
'repository' => object(App\Model\Table\StationsTable) {}
}
$routeNames = []
App\Model\Table\SearchesTable::getExistStations() - APP/Model/Table/SearchesTable.php, line 495
App\Controller\FrontController::initialize() - APP/Controller/FrontController.php, line 97
App\Controller\SearchesController::initialize() - APP/Controller/SearchesController.php, line 29
Cake\Controller\Controller::__construct() - CORE/src/Controller/Controller.php, line 262
ReflectionClass::newInstance() - [internal], line ??
Cake\Http\ControllerFactory::create() - CORE/src/Http/ControllerFactory.php, line 77
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 90
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Warning (512): Unable to emit headers. Headers sent in file=/usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php line=822 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context $message = "Unable to emit headers. Headers sent in file=$file line=$line";
if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
],
'X-DEBUGKIT-ID' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 822
$message = 'Unable to emit headers. Headers sent in file=/usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php line=822'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - /usr/share/nginx/html/chintaibank_shiojiri/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $response->getProtocolVersion(),
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
],
'X-DEBUGKIT-ID' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'Moved Permanently'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - /usr/share/nginx/html/chintaibank_shiojiri/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
],
'X-DEBUGKIT-ID' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - /usr/share/nginx/html/chintaibank_shiojiri/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
],
'X-DEBUGKIT-ID' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'https://www.shiojiri-minimini.jp/search/CTY20215/TWN20215399712/'
]
$name = 'Location'
$first = true
$value = 'https://www.shiojiri-minimini.jp/search/CTY20215/TWN20215399712/'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - /usr/share/nginx/html/chintaibank_shiojiri/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /usr/share/nginx/html/chintaibank_shiojiri/project/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
],
'X-DEBUGKIT-ID' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => '5475b70f-c6c2-43fa-b47a-4bee35d6b789'
]
$name = 'X-DEBUGKIT-ID'
$first = true
$value = '5475b70f-c6c2-43fa-b47a-4bee35d6b789'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - /usr/share/nginx/html/chintaibank_shiojiri/webroot/index.php, line 40