Exceptions
Exception
ErrorException
in
src/WebBundle/Service/SphinxSearcherService.php
(line 1028)
foreach ($iRows as $intRow) {$row = $intRow;if (!empty($data['searchFilter']['getUsings']) && count($data['searchFilter']) > 1 &&!(count(array_intersect([$row['apply_id']], $data['searchFilter']['getUsings'])) > 0)) {$applyShow = false;} else {$applyShow = true;}
* @return array* @throws Exception*/public static function searchSphinx($data = [], $limit = 0, $withSchema = false, $full = false, $getCount = false){return static::getSphinxSearcher()->searchSphinx($data, $limit, $withSchema, $full, $getCount);}/*** @return bool*/
$min = ($limit * $page) - $limit;$max = $limit * $page;$sphinxResult = $oMemcache->get($keyCacheAll);if (!$sphinxResult || $this->isDebug) {$sphinxResult = App::searchSphinx($data, 3, false, true, $this->gCount);// идея не получила одобрение но без кеша будет плохо потому есть ганс что вернем после очистки// TODO очистить от не нужных полей сфинкс то что нужно для полного пересчета только для полного пересчета// остальное только по надобности.// $oMemcache->set($keyCacheAll, $sphinxResult, MEMCACHE_COMPRESSED, (int) TimeConstant::MINUTE * 10);}
* @return mixed* @throws Exception*/public function getResultCount(){$result = $this->getResult();return $result['count'];}/*** Получаем количество найденных резильтатов поиска из сфинкса
}$this->buildFilterForGTM($filterGroups);$this->amount = $this->setResultAmount($this->getResultCount());$metaTitle = $titleStr;$list = $this->getResultList();if ($list) {$priceMin = array_column($list, 'pr_min');
return $this;}$this->addSearchFilter($filterService->getSearchFilter());$this->buildPageParams($filterService);return $this;}/**
'c_id' => [$collection['id']],'inside' => true,];$reqCatDTO = new RequestCatalogDTO($request, $key, null);$oSearchService = $this->searchService->setFilter($reqCatDTO, $searchFilter);$titleHtml = strip_tags($oSearchService->getTitleHtml());$titleHtml = preg_replace('/ edit/ui', '', $titleHtml);
in
vendor/symfony/http-kernel/HttpKernel.php
->
indexAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
}Request::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();define('BASE_URL', $request->getScheme() . '://tile.expert/');$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
<?phprequire '../public/index.php';
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. {
"exception": {}
}
|
| INFO 23:27:34 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "9e7da8"
},
"request_uri": "https://dev5.tile.expert/_profiler/9e7da8?panel=exception",
"method": "GET"
}
|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. {
"exception": {}
}
|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/framework-bundle 5.2: Accessing the "security.csrf.token_manager" service directly from the container is deprecated, use dependency injection instead. {
"exception": {}
}
|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.factory.service" service is deprecated, use "session.storage.factory.native", "session.storage.factory.php_bridge" or "session.storage.factory.mock_file" instead. {
"exception": {}
}
|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead. {
"exception": {}
}
|
| INFO 23:27:34 | php |
User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead. {
"exception": {}
}
|
Stack Trace
|
ErrorException
|
|---|
ErrorException:
Notice: Array to string conversion
at src/WebBundle/Service/SphinxSearcherService.php:1028
at WebBundle\Service\SphinxSearcherService->searchSphinx()
(src/WebBundle/Helper/App.php:515)
at WebBundle\Helper\App::searchSphinx()
(src/WebBundle/Service/SearchService.php:588)
at WebBundle\Service\SearchService->getResult()
(src/WebBundle/Service/SearchService.php:529)
at WebBundle\Service\SearchService->getResultCount()
(src/WebBundle/Service/SearchService.php:172)
at WebBundle\Service\SearchService->buildPageParams()
(src/WebBundle/Service/SearchService.php:124)
at WebBundle\Service\SearchService->setFilter()
(src/WebBundle/Controller/TileController.php:250)
at WebBundle\Controller\TileController->indexAction()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:34)
at require('/var/www/dev5.tile.expert/public/index.php')
(web/index.php:3)
|