Related Products


Date Published: June 6, 2024

Drupal files are not present in the correct location

Issue:

Sometimes you may encounter when you running composer commands, Drupal file are not present in their correct location. The symptoms associated with this issue are:
  • Drupal core and modules being present in the vendor/drupal directory rather than docroot
  • Errors such as `Error: Failed opening required /app/vendor/drupal/../vendor/acquia/blt/settings/blt.settings.php`, where "vendor" is in the filepath twice and "drupal" is a subdirectory of vendor
  • DRUPAL_ROOT being set to a path containing vendor, such as vendor/drupal.

Resolution:

To avoid this issue we always recommend to follow Installing a Drupal distribution
Drupal Console depends on the Composer Installers package. Composer Installers is critical for any D9/D10 application to function correctly. If you don't require composer/installers in your root composer.json and you uninstall drupal/console, your application will break in unexpected ways. The solution is simply to composer require "composer/installers:^1.9". 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation