Climatizare Posted January 18, 2023 Share Posted January 18, 2023 (edited) Hello, basically i have version 1.7.7 and upgraded with 1ClickUpgrade module to Prestashop 8.0.1 The problem is now that i cannot acces the backend. The error that im getting is: Quote Unable to generate a URL for the named route "admin_pkthemesettings_configuration_get" as such route does not exist. pkthemesettings is a module form a theme called Alysum. What ive tryed so far: disabled the module deleting the module deleting cache changed to the default Prestashop theme Any suggestions help. CRITICAL 20:13:36 php Uncaught Exception: Unable to generate a URL for the named route "admin_pkthemesettings_configuration_get" as such route does not exist. { "exception": {} } CRITICAL 20:13:37 request Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "admin_pkthemesettings_configuration_get" as such route does not exist." at /home/c0945442/public_html/vendor/symfony/symfony/src/Symfony/Component/Routing/Generator/CompiledUrlGenerator.php line 50 { "exception": {} } Edited January 18, 2023 by Climatizare (see edit history) Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted January 19, 2023 Share Posted January 19, 2023 "admin_pkthemesettings_configuration_get" as such route does not exist Link to comment Share on other sites More sharing options...
Climatizare Posted January 19, 2023 Author Share Posted January 19, 2023 (edited) also if i disable the theme i still that that error, but i dont get it. Edited January 19, 2023 by Climatizare (see edit history) Link to comment Share on other sites More sharing options...
tschulze-dp Posted January 19, 2023 Share Posted January 19, 2023 Does the PHP-Version still fit? https://www.prestasoo.com/blog/prestashop-php-version Link to comment Share on other sites More sharing options...
Climatizare Posted January 19, 2023 Author Share Posted January 19, 2023 yes, it should work. I managed to get into the backend but a few things are not working right. Is there any way to reinstall Prestashop without loosing data? Link to comment Share on other sites More sharing options...
tschulze-dp Posted January 19, 2023 Share Posted January 19, 2023 Usually the 1 click upgrade module creates an automatic file and database backup of the store before the update is installed. The backup can also be restored via the 1 click upgrade module. Link to comment Share on other sites More sharing options...
Climatizare Posted January 19, 2023 Author Share Posted January 19, 2023 3 hours ago, tschulze-dp said: Usually the 1 click upgrade module creates an automatic file and database backup of the store before the update is installed. The backup can also be restored via the 1 click upgrade module. it creates it even if you didnt select the option? Link to comment Share on other sites More sharing options...
tschulze-dp Posted January 19, 2023 Share Posted January 19, 2023 Then of course not. But why would you not want to select this option either? I would like to think that this option is active by default. You can look under the Restore item. In case a backup has been created, there is a drop-down menu that lists the backups that have been made so far. Link to comment Share on other sites More sharing options...
Climatizare Posted January 19, 2023 Author Share Posted January 19, 2023 (edited) managed to downgrade the installation to 1.7, the frontend is working (mostly) but now i get this error when im trying to login into the backend CRITICAL 18:01:02 php Uncaught Exception: Unable to generate a URL for the named route "admin_security" as such route does not exist. CRITICAL 18:01:02 request Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "admin_security" as such route does not exist." at /home/c0945442/public_html/var/cache/dev/appDevDebugProjectContainerUrlGenerator.php line 614 the cache is deleted when the error occurs appDevDebugProjectContainerUrlGenerator->generate('admin_security', array(), 1) in vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php (line 240) /** * {@inheritdoc} */ public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) { return $this->getGenerator()->generate($name, $parameters, $referenceType); } /** * {@inheritdoc} */ Router->generate('admin_security', array(), 1) in src/PrestaShopBundle/Service/Routing/Router.php (line 67) // Do not generate token each time we want to generate a route for a user if (!isset($this->tokens[$username])) { $this->tokens[$username] = $this->tokenManager->getToken($username)->getValue(); } $url = parent::generate($name, $parameters, $referenceType); return self::generateTokenizedUrl($url, $this->tokens[$username]); } public function setTokenManager(CsrfTokenManager $tokenManager) Router->generate('admin_security') in classes/Link.php (line 881) $sfContainer = SymfonyContainer::getInstance(); if (null !== $sfContainer) { /** @var UrlGeneratorInterface $sfRouter */ $sfRouter = $sfContainer->get('router'); return $sfRouter->generate($tab['route_name']); } } return $this->getAdminLink($tab['class_name']); } LinkCore->getTabLink(array('id_tab' => '299', 'id_parent' => '298', 'class_name' => 'AdminSecurity', 'module' => '', 'position' => '1', 'active' => '1', 'icon' => '', 'wording' => 'Security', 'wording_domain' => 'Admin.Navigation.Menu', 'enabled' => '1', 'route_name' => 'admin_security', 'name' => 'Security')) in classes/controller/AdminController.php (line 2126) $tabs[$index]['current_level'] = $level; } else { $tabs[$index]['current'] = false; } $tabs[$index]['img'] = null; $tabs[$index]['href'] = $this->context->link->getTabLink($tab); $tabs[$index]['sub_tabs'] = array_values($this->getTabs($tab['id_tab'], $level + 1)); $subTabHref = $this->getTabLinkFromSubTabs($tabs[$index]['sub_tabs']); if (!empty($subTabHref)) { $tabs[$index]['href'] = $subTabHref; Edited January 19, 2023 by Climatizare (see edit history) Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted January 19, 2023 Share Posted January 19, 2023 12 hours ago, Climatizare said: also if i disable the theme i still that that error, but i dont get it. it shows the route doesn't exist, what you do first is checking the that route configuration Link to comment Share on other sites More sharing options...
jbb-123 Posted January 20, 2023 Share Posted January 20, 2023 21 hours ago, Climatizare said: managed to downgrade the installation to 1.7, the frontend is working (mostly) but now i get this error when im trying to login into the backend CRITICAL 18:01:02 php Uncaught Exception: Unable to generate a URL for the named route "admin_security" as such route does not exist. CRITICAL 18:01:02 request Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "admin_security" as such route does not exist." at /home/c0945442/public_html/var/cache/dev/appDevDebugProjectContainerUrlGenerator.php line 614 the cache is deleted when the error occurs appDevDebugProjectContainerUrlGenerator->generate('admin_security', array(), 1) in vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php (line 240) /** * {@inheritdoc} */ public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH) { return $this->getGenerator()->generate($name, $parameters, $referenceType); } /** * {@inheritdoc} */ Router->generate('admin_security', array(), 1) in src/PrestaShopBundle/Service/Routing/Router.php (line 67) // Do not generate token each time we want to generate a route for a user if (!isset($this->tokens[$username])) { $this->tokens[$username] = $this->tokenManager->getToken($username)->getValue(); } $url = parent::generate($name, $parameters, $referenceType); return self::generateTokenizedUrl($url, $this->tokens[$username]); } public function setTokenManager(CsrfTokenManager $tokenManager) Router->generate('admin_security') in classes/Link.php (line 881) $sfContainer = SymfonyContainer::getInstance(); if (null !== $sfContainer) { /** @var UrlGeneratorInterface $sfRouter */ $sfRouter = $sfContainer->get('router'); return $sfRouter->generate($tab['route_name']); } } return $this->getAdminLink($tab['class_name']); } LinkCore->getTabLink(array('id_tab' => '299', 'id_parent' => '298', 'class_name' => 'AdminSecurity', 'module' => '', 'position' => '1', 'active' => '1', 'icon' => '', 'wording' => 'Security', 'wording_domain' => 'Admin.Navigation.Menu', 'enabled' => '1', 'route_name' => 'admin_security', 'name' => 'Security')) in classes/controller/AdminController.php (line 2126) $tabs[$index]['current_level'] = $level; } else { $tabs[$index]['current'] = false; } $tabs[$index]['img'] = null; $tabs[$index]['href'] = $this->context->link->getTabLink($tab); $tabs[$index]['sub_tabs'] = array_values($this->getTabs($tab['id_tab'], $level + 1)); $subTabHref = $this->getTabLinkFromSubTabs($tabs[$index]['sub_tabs']); if (!empty($subTabHref)) { $tabs[$index]['href'] = $subTabHref; I have the same issue... After Rolling back i can not access the backend Symphony Errors "admin_security" route does not exist.. Any Help???? Link to comment Share on other sites More sharing options...
jbb-123 Posted January 20, 2023 Share Posted January 20, 2023 managed to downgrade the installation to 1.7, the frontend is working (mostly) but now i get this error when im trying to login into the backend CRITICAL Uncaught Exception: Unable to generate a URL for the named route "admin_security" as such route does not exist. Show context Hide trace {▼ /home/patriotbushcraft/public_html/var/cache/dev/appDevDebugProjectContainerUrlGenerator.php:606 {▼ › if (!isset(self::$declaredRoutes[$name])) { › throw new RouteNotFoundException(sprintf('Unable to generate a URL for the named route "%s" as such route does not exist.', $name)); › } } /home/patriotbushcraft/public_html/vendor/symfony/symfony/src/Symfony/Component/Routing/Router.php:240 {▶} /home/patriotbushcraft/public_html/src/PrestaShopBundle/Service/Routing/Router.php:67 {▶} /home/patriotbushcraft/public_html/classes/Link.php:881 {▶} /home/patriotbushcraft/public_html/classes/controller/AdminController.php:2125 {▶} /home/patriotbushcraft/public_html/classes/controller/AdminController.php:2126 {▶} /home/patriotbushcraft/public_html/classes/controller/AdminController.php:2126 {▶} /home/patriotbushcraft/public_html/classes/controller/AdminController.php:2126 {▶} /home/patriotbushcraft/public_html/classes/controller/AdminController.php:2001 {▶} /home/patriotbushcraft/public_html/classes/controller/Controller.php:302 {▶} /home/patriotbushcraft/public_html/classes/Dispatcher.php:518 {▶} /home/patriotbushcraft/public_html/admin957mc8ft2ASD/index.php:93 {▶} Link to comment Share on other sites More sharing options...
jbb-123 Posted January 21, 2023 Share Posted January 21, 2023 This may help some one.... I ended up doing a fresh install of 1.7.8.2 I then uploaded my img, theme and ONLY THE MISSING modules folders. - Do not upload your entire backup ( this wont work ) I deleted "dropped" all of the database tables from the newly created database. I then imported the backed up data into it. For me this had to be a zipped file randomnumbersdatasql.zip After this I was then able to access bo again. I disabled each custom module and then re-enabled them one at a time. This fixed my issue. - PrestaShop, in general, is a huge pain in the ass and i have never been able to upgrade to a new version without days of being down. Link to comment Share on other sites More sharing options...
marcinpresto Posted March 5, 2023 Share Posted March 5, 2023 @jbb-123 exactly the same situation here. Did you have to configre the whole site and products yourself again or was adding the missing module folders a kind of shortcut? Link to comment Share on other sites More sharing options...
J0hn D03 Posted July 29, 2023 Share Posted July 29, 2023 (edited) same issue Edited July 29, 2023 by J0hn D03 (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted July 31, 2023 Share Posted July 31, 2023 Om uit zo'n situatie te komen kun je ook mijn tool Copy_shopdata gebruiken. Deze is gratis. 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