Jump to content

[solved] Back office product pages ( and some more pages ) error 500


siomosp

Recommended Posts

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 by siomosp (see edit history)
Link to comment
Share on other sites

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

  • siomosp changed the title to [solved] Back office product pages ( and some more pages ) error 500

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...