Skip to content
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

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 opened this issue Oct 9, 2017 · 4 comments

Comments

@woutersamaey
Copy link

[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=[email protected] --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]]

@BrocksiNet
Copy link

BrocksiNet commented Oct 12, 2017

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

@woutersamaey
Copy link
Author

woutersamaey commented Oct 12, 2017

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
Copy link

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
Copy link
Owner

@woutersamaey if you are on Sierra, please check out #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

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

3 participants