miraclecity Posted March 3 Share Posted March 3 Hi, good day everyone. I'm new to Prestashop. I'm trying to develop a module using Symfony and Prestashop's modern configuration, but I'm stuck in a bizarre error and I'm losing my mind. I deployed a Prestashop 8.2.0 installation in a AWS EC2 instance. Works fine. Then I upload/install my module. Also works fine. Then I uninstall my module. Everything OK. Then I upload/install my module again and I get the error. [HTTP 500 Internal Server Error] RouteNotFoundException: Unable to generate a URL for the named route "demo_configuration_form_simple" as such route does not exist. Logs: - Uncaught Exception: Unable to generate a URL for the named route "demo_configuration_form_simple" as such route does not exist. - Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Unable to generate a URL for the named route "demo_configuration_form_simple" as such route does not exist." at /prestashop/vendor/symfony/symfony/src/Symfony/Component/Routing/Generator/CompiledUrlGenerator.php line 50 Notes: - When installing my module in a fresh Prestashop installation and pressing "configure", my module works fine. - If I uninstall my module and install it again (or just reinstall), it thows the aforementioned error. - Clearing Prestashop's cache makes the error dissapear, but appears again every time I reinstall the module. Here is the thing that puzzles me most: I thought of testing the module reinstall process on other computers, and surprise, some of them throw the error while others do not! I don't even know how that is possible. My Prestashop is on Amazon Web Services. How can the computer that clicks on uninstall-install make a difference? I tried different browsers, incognito mode, clearing the browser's cookies and cache, but no luck. I should note that I also tried all of this in a localhost and get the same results. I revised my code a thousand times but I don't see anything wrong that could trigger that error. Before posting here, I tried to create a new module from scratch following this official tutorial: https://devdocs.prestashop-project.org/8/modules/creation/adding-configuration-page-modern/ The result is the same. I literally copy-pasted the tutorial, nothing more, and I still get that error. Could I be doing something wrong? Any assistance would be greatly appreciated. I've attached the module I created following the tutorial to this message. Thank you so much for your time and help! demosymfonyformsimple.zipFetching info... 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