Closed woutersamaey closed 6 years ago
Have the same problem and maybe it is related to new magento2 developer version? Tried to clear autoloader cache. OS Sierra High.
What surprises me is that this Vagrant box has all Magento core modules under app/code/Magento and not in /vendor. Maybe this has something to do with it? Normally it shouldn't matter, but I'm just pointing out this observation.
But that should not be a problem for the autoloader. I also tried with magento version 2.2.0 and there is the same problem.
@woutersamaey if you are on Sierra, please check out https://github.com/paliarush/magento2-vagrant-for-developers/issues/140 , if not - please provide more details about your environment. Everything works for me on El Capitan with Virtual Box 5.1
BTW, core modules are in app/code when you install git-based version of Magento. They will be under vendor if you install composer-based version. Pay attention to this setting https://github.com/paliarush/magento2-vagrant-for-developers/blob/2.0/etc/config.yaml.dist#L2
[2017-10-09 19:18:26] STATUS: Installing/re-installing Magento [/vagrant/scripts/guest/m-reinstall]] [2017-10-09 19:18:26] STATUS: > Removing Magento configuration files (env.php and config.php) [/vagrant/scripts/guest/m-reinstall]] [2017-10-09 19:18:26] STATUS: > Clearing Magento cache [/vagrant/scripts/guest/m-clear-cache]] [2017-10-09 19:18:26] STATUS: > Clearing directories containing temporary files [/vagrant/scripts/guest/m-clear-cache]] [2017-10-09 19:18:27] STATUS: > Dropping and creating 'magento' DB [/vagrant/scripts/guest/m-reinstall]] [2017-10-09 19:18:27] STATUS: > Dropping and creating 'magento_integration_tests' DB [/vagrant/scripts/guest/m-reinstall]] [2017-10-09 19:18:27] STATUS: > ./bin/magento setup:install --db-host=localhost --db-name=magento --db-user=root --backend-frontname=admin --base-url=http://magento2.vagrant52/ --language=nl_BE --timezone=Europe/Brussels --currency=EUR --admin-lastname=Admin --admin-firstname=Admin --admin-email=admin@example.com --admin-user=admin --admin-password=123123q --cleanup-database --use-rewrites=1 [/vagrant/scripts/guest/m-reinstall]] Autoload error: Module 'Magento_UrlRewrite' from '/Users/wouter/Business/Workspace/multimagento2/vagrant-magento/magento2ce/app/code/Magento/UrlRewrite' has been already defined in '/Users/wouter/Business/Workspace/multimagento2/vagrant-magento/magento2ce/app/code/Magento/UrlRewrite'. [2017-10-09 19:18:27] ERROR: > Magento installation failed. [/vagrant/scripts/guest/m-reinstall]] [2017-10-09 21:18:27] INFO: > [mSee details in /Users/wouter/Business/Workspace/multimagento2/vagrant-magento/log/m-reinstall.log[m. For debug output set debug:vagrant_project[m to 1[m in etc/config.yaml[m [m-reinstall]]