-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
sampledata:deploy/remove when custom module located app/code has no composer.json #4636
Comments
Hello! Please, provide the used version. If the problem is actual for a specific branch, please, specify it and be sure that the latest update was used. |
According to contributor guide, tickets without response for two weeks should be closed. |
2.1.1 store, tried to remove sample data, same result: Warning: file_get_contents(/home/XXX/www/app/code/Smartwave/Porto/composer.json): failed to open stream: No such file or directory in /home/XXX/www/vendor/magento/module-sample-data/Model/Dependency.php on line 109 |
I'm getting a similar error when running
The only solution I could find was https://mage2.pro/t/topic/327. UPDATE: I just applied the patch from above and can confirm that it works :). The only difference is I modified this file: |
[honey] MC-19115: Admin Analytics tracking should be enabled by default
Steps to reproduce
[ErrorException]
file_get_contents([path]/app/code/[Vendor]/[ModuleName]/composer.json): failed to open stream: No such file or directory
Although in most cases you would have a composer file it seems a trivial task to just check if the composer file exists in app/code/Magento/SampleData/Model/Dependency.php
Happy to send a pull request if this is not intended behaviour to force people to create composer files though
The text was updated successfully, but these errors were encountered: