Warning (2): array_filter() expects parameter 1 to be array, string given [APP/Controller/Component/CompanyUtilComponent.php, line 237]Code Context// 条件
if (isset($option['sc']) && $search_conditions = array_filter($option['sc'])) {
$search_condition = array();
$prefecture_id =null$option =[ 'sc' => '3', 'page' => '9', ]$Company =object(App\Model\Table\CompanyTable) id:0 { 'registryAlias' => 'Company' 'table' => 'company' 'alias' => 'Company' 'entityClass' => 'App\Model\Entity\Company' 'associations' => [ (int) 0 => 'Prefecture', (int) 1 => 'CompanyBlock', (int) 2 => 'RegionCode', (int) 3 => 'CompanyAppeal', (int) 4 => 'Pickup2', (int) 5 => 'CompanyExportData', (int) 6 => 'CompanyAgent', (int) 7 => 'PublishPlan1', (int) 8 => 'PublishPlan2', (int) 9 => 'RadioGroup', (int) 10 => 'CompanySalesGroup', (int) 11 => 'CompanyCategory', (int) 12 => 'CompanyRoute', (int) 13 => 'CompanyGroup', (int) 14 => 'Entry', (int) 15 => 'Route', (int) 16 => 'LocalLpGroup', (int) 17 => 'SocialNetwork', ] 'behaviors' => [ (int) 0 => 'Common', (int) 1 => 'Timestamp', ] 'defaultConnection' => 'default' 'connectionName' => 'default' }$conditions =[ 'Company.public_flg' => (int) 1, 'Company.public_pc_flg' => (int) 1, ]$contain =[ ]$fields =[ ]$search_by_area =[ ]$search_by_route =[ ]array_filter - [internal], line ?? App\Controller\Component\CompanyUtilComponent::getSearchCondition() - APP/Controller/Component/CompanyUtilComponent.php, line 237 App\Controller\Component\CompanyUtilComponent::search() - APP/Controller/Component/CompanyUtilComponent.php, line 315 App\Controller\Frontend\Local_areaController::search() - APP/Controller/Frontend/Local_areaController.php, line 619 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 531 Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 149 Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 313 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77 Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 68 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 126
Warning (2): Cannot modify header information - headers already sent by (output started at /data/www/vhosts/tenshokudou.com/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:971) [APP/Controller/AppController.php, line 267]Code Context$newRequestUri = str_replace('/sp/', '', $_SERVER['REQUEST_URI']);
header('Location: '.str_replace('.com//', '.com/', Configure::read('App.site_url').$newRequestUri)); exit();
}
$event =object(Cake\Event\Event) id:0 { protected _name => 'Controller.beforeRender' protected _subject => object(App\Controller\Frontend\Local_areaController) id:1 { } protected _data => [ ] protected result => null protected _stopped => false }$newRequestUri ='search?sc=3&page=9'header - [internal], line ?? App\Controller\AppController::beforeRender() - APP/Controller/AppController.php, line 267 Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 309 Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 286 Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 92 Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 686 Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 540 Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 149 Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 313 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77 Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161 Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 68