函数错误的参数太少缓存

问题描述

我有错误

函数 Symfony\Bridge\Twig\Extension\HttpKernelRuntime::renderFragmentStrategy() 的参数太少,1 传入 /home/max/www/sevas/var/cache/dev/twig/a9/a9c3560de520373d986c4a5492f720375c25c25c25c25c25c5c25c25c5c5c5c5 599 和至少 2 预期

我尝试使用 bin/console cache:clear 清除缓存,但这没有帮助。如何解决这个问题?

控制器渲染上的错误点:

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,]

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)