^ TypeError {#17
#message: "str_contains(): Argument #1 ($haystack) must be of type string, array given"
#code: 0
#file: "/var/www/html/system/controllers/shop/frontend.php"
#line: 562
trace: {
/var/www/html/system/controllers/shop/frontend.php:562 {
shop->renderItemsList($page_url, $hide_filter = false, $category_id = 0, $filters = [], $dataset = false, $ext_hidden_params = [], $template = '…13', $brand = false, $partner = false, $is_eng = false) …
›
› if(!str_contains($page_url, '/search')) {
› if (!$category || !$this->model->resetFilters()->getCategoryVisible('catalog', $category)) {
arguments: {
$haystack: array:2 [ …2]
$needle: "/search"
}
}
/var/www/html/system/core/action.php:29 {
cmsAction->__call($name, $arguments) …
› public function __call($name, $arguments) {
› return call_user_func_array(array($this->controller, $name), $arguments);
› }
arguments: {
$page_url: array:2 [ …2]
$hide_filter: false
$category_id: "5107"
$filters: array:58 [ …58]
$dataset: []
}
}
/var/www/html/system/controllers/shop/actions/index.php:194 {
actionShopIndex->run() …
› ]]);
› $items_list_html = $this->renderItemsList($page_url, false, $category['id'], $field_filters, array());
› Tracing::endSpan();
arguments: {
$name: "renderItemsList"
$arguments: array:5 [ …5]
}
}
/var/www/html/system/core/controller.php:549 {
cmsController->runExternalAction($action_name, $params = []) …
› Tracing::startSpan("running {$class_name_ex} action", ['params'=>$params]);
› $r = call_user_func_array(array($action_object, 'run'), $params);
› Tracing::endSpan();
}
/var/www/html/system/core/controller.php:435 {
cmsController->runAction($action_name, $params = []) …
› Tracing::startSpan("runExternalAction", ['action_name'=>$action_name, 'action_params'=>$this->current_params] );
› $result = $this->runExternalAction($action_name, $this->current_params);
› Tracing::endSpan();
arguments: {
$action_name: "index"
$params: []
}
}
/var/www/html/system/controllers/shop/frontend.php:129 {
shop->route($uri) …
› if (!$action_name) { cmsCore::error404(); }
› $this->runAction($action_name);
› }
arguments: {
$action_name: "index"
}
}
/var/www/html/system/core/controller.php:465 {
cmsController->runAction($action_name, $params = []) …
› if ($this->current_params) { $route_uri .= '/' . implode('/', $this->current_params); }
› $result = call_user_func(array($this, 'route'), $route_uri);
›
arguments: {
$uri: "dlja-proizvodstv/sistema-hranenija-dlja-proizvodstv/tumby-instrumentalnye"
}
}
/var/www/html/system/core/core.php:815 {
cmsCore->runController() …
› // запускаем действие
› $controller->runAction($this->uri_action, $this->uri_params);
› return true;
arguments: {
$action_name: "dlja-proizvodstv"
$params: array:2 [ …2]
}
}
/var/www/html/index.php:86 {
› Tracing::startSpan('run controller');\r
› $core->runController();\r
› Tracing::endSpan();\r
}
}
}