php - Too few arguments to function error(cache)
one text
I got error
Too few arguments to function Symfony\Bridge\Twig\Extension\HttpKernelRuntime::renderFragmentStrategy(), 1 passed in /home/max/www/sevas/var/cache/dev/twig/a9/a9c3560de520373d986c4a5492f3695d372a4c09c54ec502062523fb742eb295.php on line 599 and at least 2 expected
I tried to clear cache with bin/console cache:clear but this didn't help. How to solve this problem?
Error points on controller render:
return $this->render('shop/index.html.twig', [
'products' => $products,
'categoryEntity' => $category,
'firstLevelCategories' => $firstLevelCategories,
'page' => $page,
'maxPage' => $maxPage,
'pages' => $pages,
'currentPage' => $page,
'params' => $params,
'bottomCategories' => $bottomCategories,
'seoText' => $seoText,
'title' => '',
'description' => $description,
'keywords' => $keywords,
'h1text' => $h1text,
'subdomain' => $subdomain,
'subdomainText' => $subdomainText,
'viewType' => $viewType,
'sorting' => $sorting,
'whereCityName' => $whereCityName,
'totalCount' => $totalCount,
'maxPrice' => $maxPrice,
'minPrice' => $minPrice,
'seoTopText' => $seoTopText,
'randSubcategories'=>$randSubcategories,
]
Source