lordhanuman Posted April 21, 2022 Share Posted April 21, 2022 (edited) Hi everyone, I am literally going crazy with a 500 error when I log into the backoffice. Clearly I tried to clear the cache in the /dev cache directory but to no avail. debugging this error comes out but I can't figure out how to fix it. I tried to disable the module from phpmyadmin but to no avail [2022-04-21 02:59:40] request.CRITICAL: Uncaught PHP Exception ReflectionException: "Class PrestaShop\Module\Ps_metrics\Module\DashboardModules does not exist" at /var/www/clients/clientX/webXX/web/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 1174 {"exception":"[object] (ReflectionException(code: -1): Class PrestaShop\\Module\\Ps_metrics\\Module\\DashboardModules does not exist at /var/www/clients/clientX/webXX/web/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:1174)"} [] [2022-04-21 02:59:48] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\ClassNotFoundException: "Attempted to load class "DashboardModules" from namespace "PrestaShop\Module\Ps_metrics\Module". Did you forget a "use" statement for another namespace?" at /var/www/clients/clientX/webXX/web/var/cache/prod/Ps_metricsAdminContainer.php line 630 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ClassNotFoundException(code: 0): Attempted to load class \"DashboardModules\" from namespace \"PrestaShop\\Module\\Ps_metrics\\Module\".\nDid you forget a \"use\" statement for another namespace? at /var/www/clients/client0/web28/web/var/cache/prod/Ps_metricsAdminContainer.php:630)"} [] Is this what gives me the 500 error or is it a misleading message? Edited April 21, 2022 by lordhanuman (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted April 21, 2022 Share Posted April 21, 2022 hi enter by ftp to modules and rename the module Ps_metrics 1 Link to comment Share on other sites More sharing options...
lordhanuman Posted April 21, 2022 Author Share Posted April 21, 2022 5 minutes ago, juanrojas said: hi enter by ftp to modules and rename the module Ps_metrics Thanks for the quick reply, what should I do then update the version of everything and rename the module? Or what should I do to fix the problem? Link to comment Share on other sites More sharing options...
juanrojas Posted April 21, 2022 Share Posted April 21, 2022 when you changed the name and cleared the cache does it give you the same problem? Link to comment Share on other sites More sharing options...
lordhanuman Posted April 21, 2022 Author Share Posted April 21, 2022 4 minutes ago, juanrojas said: when you changed the name and cleared the cache does it give you the same problem? no I no longer have the problem, it lets me enter the back office but I would not like to keep the renamed module, I would like to fix the situation by updating it to the latest version if possible Link to comment Share on other sites More sharing options...
juanrojas Posted April 21, 2022 Share Posted April 21, 2022 try to delete that module and install the latest version, but I think that for statistics it is better to work with a google tag manager module 1 Link to comment Share on other sites More sharing options...
lordhanuman Posted April 21, 2022 Author Share Posted April 21, 2022 5 minutes ago, juanrojas said: try to delete that module and install the latest version, but I think that for statistics it is better to work with a google tag manager module Ok thanks for all 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