d2o Posted December 27, 2023 Share Posted December 27, 2023 Hi, When installing my module, I get an error stating "The module is invalid and cannot be loaded." The Prestashop Module Validator shows all green. And I cannot see any related information in the standard log file for Prestashop. Any hint on where to look for what may be wrong with my module is appreciated. Thanks and best regards, Stefan Link to comment Share on other sites More sharing options...
Nickz Posted December 27, 2023 Share Posted December 27, 2023 Where did you try to install your module in? Your module is done by you, or bought by you, Prestashop Version, Theme Version, name of the module? Link to comment Share on other sites More sharing options...
d2o Posted December 27, 2023 Author Share Posted December 27, 2023 The module is done by me. Just starting to build one for a friend. I am operating on the latest Prestashop version with standard theme and PHP 8.1.26. I had a version of the module running using the legacy form style. But thought it might be a good idea to use the modern way (Symfony). Maybe not so good an idea 😊 Cheers Stefan Link to comment Share on other sites More sharing options...
AddWeb Solution Posted January 1 Share Posted January 1 On 12/27/2023 at 7:34 PM, d2o said: The module is invalid and cannot be loaded. Hi, Kindly check PHP error logs for any specific error message. Make sure that your module's file structure follows Prestashop's standards. The main files like index.php, config.xml, and others should be in the correct locations. Double-check that the module name in these files matches the actual folder name. If you are using Symfony or any modern approach, make sure your classes use the correct namespaces. Thanks! Link to comment Share on other sites More sharing options...
d2o Posted January 1 Author Share Posted January 1 Hi, Thanks for your advice. I actually did check the PHP logs and there was nothing there. It remains a mystery. Well, after some search, I gave up and re-wrote the module from scratch. Even using Symfony. Works fine now. Happy New Year, Stefan 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