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
Notice (8): Undefined index: STN [APP/Controller/SearchesController.php, line 430]Code Context $condition[$key][] = $stations[$k]."駅";
// 重複データを削除する
$condition[$key] = array_unique($condition[$key]);
$pass = [
(int) 0 => 'STN1200895'
]
$sort = 'created'
$direction = 'asc'
$page = (int) 1
$limit = (int) 10
$value = [
(int) 1200895 => (int) 1
]
$param = object(stdClass) {
sort => 'created'
direction => 'asc'
page => (int) 1
limit => (int) 10
link => object(stdClass) {}
search => [
'NLK' => (int) 0,
'CLS' => (int) 0,
'FWD' => (int) 0,
'CTY' => [[maximum depth reached]],
'TWN' => [[maximum depth reached]],
'RTS' => [[maximum depth reached]],
'STN' => [
[maximum depth reached]
],
'SCH' => [[maximum depth reached]],
'SCT' => [[maximum depth reached]],
'SCD' => (int) 0,
'MDR' => [[maximum depth reached]],
'ILC' => [[maximum depth reached]],
'KWR' => [[maximum depth reached]],
'AFE' => [[maximum depth reached]],
'RFA' => [[maximum depth reached]],
'RTL' => (int) 0,
'RTB' => (int) 0,
'RTT' => (int) 0,
'STL' => (int) 0,
'STB' => (int) 0,
'STT' => (int) 0,
'AAL' => (int) 0,
'AAB' => (int) 0,
'AAT' => (int) 0,
'WLK' => (int) 0,
'BLD' => (int) 0,
'FLR' => (int) 0,
'LTT' => (int) 0,
'SHP' => (int) 0,
'LLT' => (int) 0,
'LLB' => (int) 0,
'VCY' => (int) 0,
'TYP' => [[maximum depth reached]],
'NCN' => (int) 0,
'SRT' => (int) 0
]
}
$division_count = (int) 3
$row = 'STN1200895'
$key = 'STN'
$condition = [
'NLK' => [],
'CLS' => [],
'FWD' => [],
'CTY' => [],
'TWN' => [],
'RTS' => []
]
$v = (int) 1
$k = (int) 1200895
App\Controller\SearchesController::getParam() - APP/Controller/SearchesController.php, line 430
App\Controller\SearchesController::index() - APP/Controller/SearchesController.php, line 57
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
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
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 80
Warning (2): array_unique() expects parameter 1 to be array, null given [APP/Controller/SearchesController.php, line 430]Code Context $condition[$key][] = $stations[$k]."駅";
// 重複データを削除する
$condition[$key] = array_unique($condition[$key]);
$pass = [
(int) 0 => 'STN1200895'
]
$sort = 'created'
$direction = 'asc'
$page = (int) 1
$limit = (int) 10
$value = [
(int) 1200895 => (int) 1
]
$param = object(stdClass) {
sort => 'created'
direction => 'asc'
page => (int) 1
limit => (int) 10
link => object(stdClass) {}
search => [
'NLK' => (int) 0,
'CLS' => (int) 0,
'FWD' => (int) 0,
'CTY' => [[maximum depth reached]],
'TWN' => [[maximum depth reached]],
'RTS' => [[maximum depth reached]],
'STN' => [
[maximum depth reached]
],
'SCH' => [[maximum depth reached]],
'SCT' => [[maximum depth reached]],
'SCD' => (int) 0,
'MDR' => [[maximum depth reached]],
'ILC' => [[maximum depth reached]],
'KWR' => [[maximum depth reached]],
'AFE' => [[maximum depth reached]],
'RFA' => [[maximum depth reached]],
'RTL' => (int) 0,
'RTB' => (int) 0,
'RTT' => (int) 0,
'STL' => (int) 0,
'STB' => (int) 0,
'STT' => (int) 0,
'AAL' => (int) 0,
'AAB' => (int) 0,
'AAT' => (int) 0,
'WLK' => (int) 0,
'BLD' => (int) 0,
'FLR' => (int) 0,
'LTT' => (int) 0,
'SHP' => (int) 0,
'LLT' => (int) 0,
'LLB' => (int) 0,
'VCY' => (int) 0,
'TYP' => [[maximum depth reached]],
'NCN' => (int) 0,
'SRT' => (int) 0
]
}
$division_count = (int) 3
$row = 'STN1200895'
$key = 'STN'
$condition = [
'NLK' => [],
'CLS' => [],
'FWD' => [],
'CTY' => [],
'TWN' => [],
'RTS' => []
]
$v = (int) 1
$k = (int) 1200895
array_unique - [internal], line ??
App\Controller\SearchesController::getParam() - APP/Controller/SearchesController.php, line 430
App\Controller\SearchesController::index() - APP/Controller/SearchesController.php, line 57
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
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
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (2): array_values() expects parameter 1 to be array, null given [APP/Controller/SearchesController.php, line 431]Code Context // 重複データを削除する
$condition[$key] = array_unique($condition[$key]);
$condition[$key] = array_values($condition[$key]);
$pass = [
(int) 0 => 'STN1200895'
]
$sort = 'created'
$direction = 'asc'
$page = (int) 1
$limit = (int) 10
$value = [
(int) 1200895 => (int) 1
]
$param = object(stdClass) {
sort => 'created'
direction => 'asc'
page => (int) 1
limit => (int) 10
link => object(stdClass) {}
search => [
'NLK' => (int) 0,
'CLS' => (int) 0,
'FWD' => (int) 0,
'CTY' => [[maximum depth reached]],
'TWN' => [[maximum depth reached]],
'RTS' => [[maximum depth reached]],
'STN' => [
[maximum depth reached]
],
'SCH' => [[maximum depth reached]],
'SCT' => [[maximum depth reached]],
'SCD' => (int) 0,
'MDR' => [[maximum depth reached]],
'ILC' => [[maximum depth reached]],
'KWR' => [[maximum depth reached]],
'AFE' => [[maximum depth reached]],
'RFA' => [[maximum depth reached]],
'RTL' => (int) 0,
'RTB' => (int) 0,
'RTT' => (int) 0,
'STL' => (int) 0,
'STB' => (int) 0,
'STT' => (int) 0,
'AAL' => (int) 0,
'AAB' => (int) 0,
'AAT' => (int) 0,
'WLK' => (int) 0,
'BLD' => (int) 0,
'FLR' => (int) 0,
'LTT' => (int) 0,
'SHP' => (int) 0,
'LLT' => (int) 0,
'LLB' => (int) 0,
'VCY' => (int) 0,
'TYP' => [[maximum depth reached]],
'NCN' => (int) 0,
'SRT' => (int) 0
]
}
$division_count = (int) 3
$row = 'STN1200895'
$key = 'STN'
$condition = [
'NLK' => [],
'CLS' => [],
'FWD' => [],
'CTY' => [],
'TWN' => [],
'RTS' => [],
'STN' => null
]
$v = (int) 1
$k = (int) 1200895
array_values - [internal], line ??
App\Controller\SearchesController::getParam() - APP/Controller/SearchesController.php, line 431
App\Controller\SearchesController::index() - APP/Controller/SearchesController.php, line 57
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
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
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
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/STN1200895/'
]
$name = 'Location'
$first = true
$value = 'https://www.shiojiri-minimini.jp/search/STN1200895/'
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 => '25a075c0-d917-4048-8d2d-c54983342b46'
]
$name = 'X-DEBUGKIT-ID'
$first = true
$value = '25a075c0-d917-4048-8d2d-c54983342b46'
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