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

Fresh install creates duplicate dependencies #17

Open
dmcb opened this issue Sep 16, 2018 · 2 comments
Open

Fresh install creates duplicate dependencies #17

dmcb opened this issue Sep 16, 2018 · 2 comments

Comments

@dmcb
Copy link
Member

dmcb commented Sep 16, 2018

On SS 4.2, installing this module breaks the site with the following message:

Fatal error: Uncaught Exception: There are two files containing the "Composer\Autoload\ClassLoader" class: "/var/www/html/vendor/composer/ClassLoader.php" and "/var/www/html/vendor/evanshunt/elemental-addons/vendor/composer/ClassLoader.php" in /var/www/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php:510 Stack trace: #0 /var/www/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php(448): SilverStripe\Core\Manifest\ClassManifest->handleFile('ClassLoader.php', '/var/www/html/v...', false) #1 [internal function]: SilverStripe\Core\Manifest\ClassManifest->SilverStripe\Core\Manifest\{closure}('ClassLoader.php', '/var/www/html/v...', 5) #2 /var/www/html/vendor/silverstripe/assets/src/FileFinder.php(176): call_user_func(Object(Closure), 'ClassLoader.php', '/var/www/html/v...', 5) #3 /var/www/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php(451): SilverStripe\Assets\FileFinder->find('/var/www/html') #4 /var/www/html/vendor/silverstripe/framework/src/Core/Manifest/ClassM in /var/www/html/vendor/silverstripe/framework/src/Core/Manifest/ClassManifest.php on line 510

The module installs with its own vendor directory within it containing duplicate dependencies.

@sinan-evanshunt
Copy link

Manually deleting the duplicate under /var/www/html/vendor/evanshunt/elemental-addons/vendor/* still complains about other duplicates.

@davejtoews
Copy link
Member

The vendor directory should not be in the repo. Delete vendor and add it to .gitignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants