jrgrafisk Posted July 30, 2019 Share Posted July 30, 2019 I, by accident, clicked 'deactivate' on the Customer Account Links module. QUickly I reenabled the module, but was then struck by the HTTP 500 error on the backend. Frontend works fine. I tried emptying the cache manually from the ftp. I tried removing the .htaccess file hoping it would regenerate the file - it didn't. I tried removing the module completly from the database. Now I'm lost for ideas. Any suggestions? [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":"[email protected]"} [] [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":"[email protected]"} [][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"} [] Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 php 7.1 ps version 1.7.6.0 Link to comment Share on other sites More sharing options...
prestamodulo Posted July 30, 2019 Share Posted July 30, 2019 You are facing this issue in Back office on all pages or module page only ? Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 All of the pages, unfortunately :/ Link to comment Share on other sites More sharing options...
JBW Posted July 30, 2019 Share Posted July 30, 2019 2 hours ago, jrgrafisk said: ps_customeraccountlinks As you can see in the error message the module is still there and active. Try to rename the correpsonding folder on via FTP to ps_customeraccountlinks_OLD and re-install the module afterwards. Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 Okay, that did some of the trick, JBW. I managed to access the backend via debug mode - however the http 500 error is back as soon as I disable debug mode. I guess this it what's causing it? Matched route "admin_performance" . Hide context [▼ "route" => "admin_performance" "route_parameters" => [▼ "_controller" => "PrestaShopBundle\Controller\Admin\Configure\AdvancedParameters\PerformanceController::indexAction" "_legacy_controller" => "AdminPerformance" "_legacy_link" => "AdminPerformance" "_route" => "admin_performance" ] "request_uri" => "https://nettotruck.dk/admin848u84cdu/index.php/configure/advanced/performance/?_token=jPT-fYBDYclZQWEVQwXLYF43_ssIIrsfv6ycfA4uKZ0" "method" => "GET" Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 On a secound thought - that might not be the case... However the only warnings i get in debug, is 7 missing translations Link to comment Share on other sites More sharing options...
JBW Posted July 30, 2019 Share Posted July 30, 2019 Try to delete your cache via FTP in /var/cache Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "Symfony\Component\Routing\Annotation\Route" annotation from Symfony itself. Hide context Hide trace [▼ "exception" => SilencedErrorContext {#5617 ▶} ] {▼ /customers/0/8/2/nettotruck.dk/httpd.www/vendor/sensio/framework-extra-bundle/DependencyInjection/SensioFrameworkExtraExtension.php:41 {▼ › if ($config['router']['annotations']) { › @trigger_error(sprintf('Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "%s" annotation from Symfony itself.', \Symfony\Component\Routing\Annotation\Route::class), E_USER_DEPRECATED); › } /customers/0/8/2/nettotruck.dk/httpd.www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php:71 {▼ › › $extension->load($config, $tmpContainer); › } catch (\Exception $e) { } } 1 Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 So, it helped when i disabled the Apache's MultiViews. Now i'm back to square 1: I'm missing the "create user" function in my front end. Link to comment Share on other sites More sharing options...
prestamodulo Posted July 30, 2019 Share Posted July 30, 2019 2 minutes ago, jrgrafisk said: I'm missing the "create user" function in my front end. Account registration is part of Prestashop core function and can not be disabled by uninstalling modules. You might be missing create user links ? Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 What do you mean, im missing the links? Have a look at the attached please... it seems like there is nothing in the code :/ Link to comment Share on other sites More sharing options...
JBW Posted July 31, 2019 Share Posted July 31, 2019 Have you re-installed the module? Link to comment Share on other sites More sharing options...
jrgrafisk Posted August 1, 2019 Author Share Posted August 1, 2019 It turns out it was the social titles that I had removed, that caused havoc. Recreated the original file and everything was fine - then just deleted the social titles in the backend. 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