微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

函数错误的参数太少缓存

如何解决函数错误的参数太少缓存

我有错误

函数 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 举报,一经查实,本站将立刻删除。