Prestahop 1.7.5.2
After replacing this files, for fixing vulnerability https://www.cvedetails.com/cve/CVE-2022-21686/
https://github.com/PrestaShop/PrestaShop/commit/6482b9ddc9dcebf7588dbfd616d2d635218408d6
and this
https://github.com/advisories/GHSA-mrq4-7ch7-2465
at back office product page, preferences page , modules manager page, and some others i have error 500 .
Front office , and most of others BO pages are ok
CRITICAL
01:17:04
php Type error: Too few arguments to function PrestaShopBundle\Twig\LayoutExtension::__construct(), 2 passed in /home/stickit/public_html/var/cache/dev/ContainerAzegc1p/appDevDebugProjectContainer.php on line 1770 and exactly 4 expected
Any ideas how i can fix it?
The error at appDevDebugProjectContainer.php line 1770 is this
// admin_international_translations_copy_language
if ('/improve/international/translations/copy' === $pathinfo) {
$ret = array ( '_controller' => 'PrestaShopBundle\\Controller\\Admin\\TranslationsController::copyLanguageAction', '_legacy_controller' => 'AdminTranslations', '_route' => 'admin_international_translations_copy_language',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_admin_international_translations_copy_language;
}