indus Posted March 6, 2015 Share Posted March 6, 2015 (edited) Hi I get this error for some of my modules after the upgrade : [PrestaShopException] Module 'mymodulename' is not a valid module nameat line 1461 in file classes/module/Module.php I read somewhere its happening with modules starting with a capital letter. What is the solution. Just renaming it is not the proper solution i think. Edited March 8, 2015 by indus (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted March 6, 2015 Share Posted March 6, 2015 'some module' is not a valid name because is has a space. The module name now has to conform to the following... Lowercase letter from a to z, Figures from 0 to 9, Symbol “_” Link to comment Share on other sites More sharing options...
indus Posted March 8, 2015 Author Share Posted March 8, 2015 (edited) Fixed with this commit : https://github.com/PrestaShop/PrestaShop/commit/e501e7fecb8d7f1fe621458665faf544d9fe9108 I believe they also added this to the latest 1.6.0.14 release. Edit : I had a capital letter in my module name which was causing the error. Edited March 8, 2015 by indus (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted March 8, 2015 Share Posted March 8, 2015 that does not 'fix' this issue. the module name cannot have a space Link to comment Share on other sites More sharing options...
indus Posted March 8, 2015 Author Share Posted March 8, 2015 (edited) My module name does not have a space. That was only an example. It had a capital letter though. Edited March 8, 2015 by indus (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted March 8, 2015 Share Posted March 8, 2015 since this post was about an invalid module name containing a space... Module 'some module' is not a valid module name Then I find your feedback not applicable and confusing. You might consider removing your posts so people do not get confused and think they can have spaces in their module names. Fixed with this commit : https://github.com/P...5faf544d9fe9108 I believe they also added this to the latest 1.6.0.14 release. Link to comment Share on other sites More sharing options...
indus Posted March 8, 2015 Author Share Posted March 8, 2015 since this post was about an invalid module name containing a space... Then I find your feedback not applicable and confusing. You might consider removing your posts so people do not get confused and think they can have spaces in their module names. My apologies if my thread or post confused you. Anyway, i have edited my post for the sake of clarity. Link to comment Share on other sites More sharing options...
elementChaosu Posted March 31, 2020 Share Posted March 31, 2020 Hi, module class name must be the same as the module name. If not, this throws 'Module is not a valid module name' error during installation. 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