paliarush / magento2-vagrant-for-developers

Vagrant Box for Magento 2 Developers
MIT License
447 stars 165 forks source link

Magento installation failed: Autoload error: Module 'Magento_UrlRewrite' from '.../vagrant-magento/magento2ce/app/code/Magento/UrlRewrite' has been already defined in '.../vagrant-magento/magento2ce/app/code/Magento/UrlRewrite'. #157

Closed woutersamaey closed 6 years ago

woutersamaey commented 7 years ago

[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: > See details in /Users/wouter/Business/Workspace/multimagento2/vagrant-magento/log/m-reinstall.log. For debug output set debug:vagrant_project to 1 in etc/config.yaml -reinstall]]

BrocksiNet commented 7 years ago

Have the same problem and maybe it is related to new magento2 developer version? Tried to clear autoloader cache. OS Sierra High.

woutersamaey commented 7 years ago

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.

BrocksiNet commented 7 years ago

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.

paliarush commented 7 years ago

@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