Skip to content

Possible issue with custom module #1132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antiseptikk opened this issue Mar 26, 2015 · 8 comments
Closed

Possible issue with custom module #1132

antiseptikk opened this issue Mar 26, 2015 · 8 comments

Comments

@antiseptikk
Copy link

I try to create a little module (just display Hello World) in dev RC and when I return on the home page I got this message:

Setup version for module 'Magento_HelloWorld' is not specified

Do you know how can I fix this ?
Thanks

@vpelipenko
Copy link
Contributor

@antiseptikk, your new module should have etc/module.xml file, where setup version should be specified.

@antiseptikk
Copy link
Author

@vpelipenko i have etc/module.xml with :

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">

    <module name="Magento_HelloWorld" setup_version="2.0.0" />
 
</config>

but i got the message

@vpelipenko
Copy link
Contributor

Could you try to clear cache? Or just remove var/cache folder. It can help you.

@antiseptikk
Copy link
Author

@vpelipenko yes but it's not working

@maksek
Copy link
Contributor

maksek commented Mar 27, 2015

@antiseptikk, it must work. But you also can try do next

php -f [you magento2 root]/setup/index.php update

@vpelipenko
Copy link
Contributor

@antiseptikk, please, take a look at our Developer Guide http://devdocs.magento.com/guides/v1.0/extension-dev-guide/create_module.html to make sure that you create module as described. I tried to do the same and it works for me.

@mzaroui
Copy link

mzaroui commented Apr 8, 2015

I had the same problem and I fixed it using the command "php -f [you magento2 root]/setup/index.php update" thanks @maksek.
In case of a new module this command will insert a new line in "setup_module" table with the setup_version specified in module.xml file

magento-team pushed a commit that referenced this issue May 25, 2017
@SyedMuneebb
Copy link

Maybe you have missed any step in creating custom module. Here's a step by step guide: Create Hello World module in Magento 2.

magento-engcom-team added a commit that referenced this issue Mar 3, 2018
… views #1132

 - Merge Pull Request magento-engcom/magento2ce#1132 from p-bystritsky/magento2ce:ISSUE-12889
 - Merged commits:
   1. 18d7890
   2. 64d051c
   3. 8268922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants