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

Installation fails when document root directory is other than docroot #106

Open
lauriii opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@lauriii
Copy link
Contributor

lauriii commented Jul 13, 2023

The Next.js for Acquia CMS uses web/ as its document root because that's the directory used by the base Docker container: https://github.com/acquia/next-acms/blob/main/drupal/Dockerfile#L82. Installing Acquia CMS fails in this use case:

#0 0.688 Warning: Undefined property: stdClass::$docroot/libraries/{$name} in /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Helpers/Task/Steps/DownloadModules.php on line 94
#0 0.688
#0 0.688
#0 0.688 Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Helpers/Task/Steps/DownloadModules.php:95
#0 0.688 Stack trace:
#0 0.688 #0 /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Helpers/Task/Steps/DownloadModules.php(95): in_array('nnnick/chartjs', NULL)
#0 0.688 #1 /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Helpers/Task/BuildTask.php(157): AcquiaCMS\Cli\Helpers\Task\Steps\DownloadModules->execute(Array)
#0 0.688 #2 /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Commands/AcmsBuildCommand.php(126): AcquiaCMS\Cli\Helpers\Task\BuildTask->run(Array)
#0 0.688 #3 /opt/drupal/vendor/symfony/console/Command/Command.php(326): AcquiaCMS\Cli\Commands\AcmsBuildCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#0 0.688 #4 /opt/drupal/vendor/symfony/console/Application.php(1063): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#0 0.688 #5 /opt/drupal/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(AcquiaCMS\Cli\Commands\AcmsBuildCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#0 0.688 #6 /opt/drupal/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#0 0.688 #7 /opt/drupal/vendor/acquia/acquia-cms-starterkit/bin/acms.php(62): Symfony\Component\Console\Application->run()
#0 0.688 #8 /opt/drupal/vendor/acquia/acquia-cms-starterkit/bin/acms(9): require('/opt/drupal/ven...')
#0 0.688 #9 /opt/drupal/vendor/bin/acms(119): include('/opt/drupal/ven...')
#0 0.688 #10 {main}
#0 0.688   thrown in /opt/drupal/vendor/acquia/acquia-cms-starterkit/src/Helpers/Task/Steps/DownloadModules.php on line 95
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

1 participant