PBX_g33k Posted July 10, 2014 Share Posted July 10, 2014 (edited) Hello, I am developing a new module for PrestaShop and read the docs for the last two days to make sure i followed the guidelines. After following the tutorial (found here) i get the following error when trying to install said module. You don’t have the rights to update the myfistmodule module. Please make sure you are logged in to the PrestaShop Addons account that purchased the module. I have doublechecked my source files and the tutorial steps but without success. I understand what the error message is saying, but this module is in early development, and having to publish every development changes to PrestaShop would kill efficiency, surely there must be a way to disable/bypass this security measure for development purposes... [uPDATE] I installed 1.5 in another directory on the same server and tried to install the same module. 1.5 gave me a more specific error "module not found" which led me to renaming the class of my module. After changing the classname from CamelCase to lowercase i managed to install the module on 1.5 AND 1.6. Does this make sense? The documentation states the following: Class name must follow the CamelCase practice, except that the first letter is uppercase. and Let's create a simple first module; this will enable us to better describe its structure. We will name it "My module". First, create the module's folder, in the /modules folder. It should have the same name as the module, with no space, only alphanumerical characters, the hyphen and the underscore, all in lowercase: /mymodule. Edited July 10, 2014 by PBX_g33k (see edit history) 1 Link to comment Share on other sites More sharing options...
Eolia Posted July 22, 2014 Share Posted July 22, 2014 in lowercase only for the __construct function: function __construct() { $this->name = 'mymodule'; Link to comment Share on other sites More sharing options...
tidjean Posted August 19, 2014 Share Posted August 19, 2014 Hi guys, I would like to add an information: the name should has no space, no capital letter. $this->name = 'mymodule'; Link to comment Share on other sites More sharing options...
hunmod Posted October 31, 2014 Share Posted October 31, 2014 i heave same problem $this->name = 'mymodule'; not help.. 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