siomosp Posted March 11, 2022 Share Posted March 11, 2022 (edited) 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; } Edited March 14, 2022 by siomosp (see edit history) Link to comment Share on other sites More sharing options...
netplayer Posted March 12, 2022 Share Posted March 12, 2022 Looks like same issue here Did you try this? Actually first thing that came to my mind too as a solution ,granted the error file is in cache folder. Reminder: Bakup folders before delete Link to comment Share on other sites More sharing options...
siomosp Posted March 12, 2022 Author Share Posted March 12, 2022 Hi! Deleting folders var/cache have no effect, they are generated , same error 500 at BO Deleting app , crashes all site Link to comment Share on other sites More sharing options...
siomosp Posted March 12, 2022 Author Share Posted March 12, 2022 After reverting to original php files, the new error at logs is request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "HookExtension" from namespace "PrestaShopBundle\Twig". Did you forget a "use" statement for another namespace?" Link to comment Share on other sites More sharing options...
siomosp Posted March 14, 2022 Author Share Posted March 14, 2022 Solved... My mistake... /src/PrestaShopBundle/Twig/HookExtension.php renamed by mistake. So many hours for a simple ( and if you pay attention to logs) and easy to solve reason... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now