Jump to content
jrgrafisk

HTTP 500 error, efter fjernelse af modul

Recommended Posts

Jeg forsøgte, da jeg pludselig ikke kunne oprette en bruger i frontend, at deaktivere alle moduler i den kategori. 

Dette medførte en http 500 error, dog kun i backend delen. 

Det vil sige at jeg ikke kan komme ind i min backend. 
jeg har forsøgt at slette cache manuelt, fjerne det modul jeg kan se der giver problemer i loggen, og jeg har forsøgt at slette .htaccess filen. 
Alt sammen uden held.

 

Jeg tænker at fejlen opstår når ps_customeraccountlinks forsøger at køre removeMyAccountBlockHook - men hvordan jeg fixer det, aner jeg ikke.

 

php 7.1 

ps ver. 1.7.6.0

[2019-07-30 08:07:44] request.INFO: Matched route "admin_module_import". {"route":"admin_module_import","route_parameters":{"module_name":null,"_controller":"PrestaShopBundle\\Controller\\Admin\\Improve\\ModuleController::importModuleAction","_route":"admin_module_import"},"request_uri":"https://nettotruck.dk/admin848u84cdu/index.php/improve/modules/import?_token=jPT-fYBDYclZQWEVQwXLYF43_ssIIrsfv6ycfA4uKZ0","method":"POST"} []
[2019-07-30 08:07:44] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2019-07-30 08:07:44] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"jesper@nettotruck.dk"} []
[2019-07-30 08:07:45] app.ERROR: Missing class name of tab [] []
[2019-07-30 08:07:45] app.ERROR: Missing class name of tab [] []
[2019-07-30 08:07:45] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []
[2019-07-30 08:30:21] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: "No route found for "OPTIONS /common/notifications": Method Not Allowed (Allow: POST)" at /customers/0/8/2/nettotruck.dk/httpd.www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 143 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException(code: 0): No route found for \"OPTIONS /common/notifications\": Method Not Allowed (Allow: POST) at /customers/0/8/2/nettotruck.dk/httpd.www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:143, Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException(code: 0):  at /customers/0/8/2/nettotruck.dk/httpd.www/var/cache/prod/appProdProjectContainerUrlMatcher.php:4721)"} []
[2019-07-30 10:05:36] request.INFO: Matched route "admin_module_manage_action". {"route":"admin_module_manage_action","route_parameters":{"_controller":"PrestaShopBundle\\Controller\\Admin\\Improve\\ModuleController::moduleAction","action":"reset","module_name":"ps_customeraccountlinks","_route":"admin_module_manage_action"},"request_uri":"https://nettotruck.dk/admin848u84cdu/index.php/improve/modules/manage/action/reset/ps_customeraccountlinks?_token=jPT-fYBDYclZQWEVQwXLYF43_ssIIrsfv6ycfA4uKZ0","method":"POST"} []
[2019-07-30 10:05:36] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2019-07-30 10:05:36] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"jesper@nettotruck.dk"} []
[2019-07-30 10:05:36] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "removeMyAccountBlockHook" of class "Ps_Customeraccountlinks"." at /customers/0/8/2/nettotruck.dk/httpd.www/modules/ps_customeraccountlinks/ps_customeraccountlinks.php line 66 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedMethodException(code: 0): Attempted to call an undefined method named \"removeMyAccountBlockHook\" of class \"Ps_Customeraccountlinks\". at /customers/0/8/2/nettotruck.dk/httpd.www/modules/ps_customeraccountlinks/ps_customeraccountlinks.php:66)"} []
[2019-07-30 10:05:36] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} []

Share this post


Link to post
Share on other sites

Fik adgang til backend via debug aktivering:

 

Connect to server via FTP or via hosting cpanel. Open your PrestaShop installation directory, navigate to config director and opendefines.inc.phpfile.

Find the following code (line 29 approximately):

?

1

define('_PS_MODE_DEV_', false);

Edit the code:

?

1

define('_PS_MODE_DEV_', true);

Save the changes and refresh the site.

Now you need to navigate to a frontend/backend page you had issues on, press F5 to refresh the page and see the error(s) that occur.

 

 

Fejlen kunne rettes ved at slette modul med fejl, og geninstallere det. 

Share this post


Link to post
Share on other sites

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More