writecrow / crow_backend

The canonical resources to build the backend for a corpus/repository management framework for Crow, the Corpus and Repository of Writing
GNU General Public License v2.0
1 stars 0 forks source link

You have requested a non-existent parameter "monolog.level.debug" and a non-existent service "theme.manager" when installing #56

Closed fishfree closed 1 year ago

fishfree commented 1 year ago

After I cloned and ran composer install then tried to install your great work. However, it shows error as below on the page /core/install.php:

Additional uncaught exception thrown while handling exception.
Original
Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a non-existent parameter "monolog.level.debug". in Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue() (line 54 of /var/www/crow/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php).

Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue() (Line: 83)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() (Line: 32)
Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue() (Line: 47)
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() (Line: 94)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile() (Line: 762)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1344)
Drupal\Core\DrupalKernel->compileContainer() (Line: 948)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 20)
Drupal\Core\Installer\InstallerKernel->initializeContainer() (Line: 487)
Drupal\Core\DrupalKernel->boot() (Line: 426)
install_begin_request() (Line: 116)
install_drupal() (Line: 48)
Additional
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "theme.manager". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 1030 of /var/www/crow/vendor/symfony/dependency-injection/ContainerBuilder.php).

Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (Line: 600)
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() (Line: 558)
Symfony\Component\DependencyInjection\ContainerBuilder->get() (Line: 649)
Drupal::theme() (Line: 22)
_drupal_maintenance_theme() (Line: 506)
drupal_maintenance_theme() (Line: 1025)
install_display_output() (Line: 271)
_drupal_log_error() (Line: 365)
_drupal_exception_handler()
markfullmer commented 1 year ago

Thanks for asking about this problem with the installation. This is due to the use of a logging module called "Monolog," and the specific issue is described, and a workaround provided at https://www.drupal.org/project/monolog/issues/3157611#comment-14425043

Since the module is not essential to using this application -- it's just an alternate way to store logs -- I've gone ahead and removed the module from being installed initially in https://github.com/writecrow/crow_backend/pull/57

If you have any other issues with the installation, let me know!