- Issue created by @S3b0uN3t
Hello,
When I run the drush "site-install" command, it throws the following error: The Math question field is required.
This error occurs when Drupal executes the "install_configure_form" task when the "enable_globally" configuration is set to 1.
If I set it to 0, I don't get this error.
The Drupal installation uses a Drupal form for this task (see web/core/includes/install.core.inc
line 815), and it seems that the captcha is automatically generated in the form.
vendor/bin/drush site-install minimal --existing-config ...
To work around the problem, I had to create a "captcha_point" for "install_configure_form" where I disable the captcha.
Example:
uuid: aa47f69a-7e7b-4b8f-9ead-94907dc0fed7
langcode: fr
status: false
dependencies: { }
_core:
default_config_hash: XbughDuwgOtc_8ztmYxz84gaXBeR760xH3bGSKD9v1Q
formId: install_configure_form
captchaType: default
label: 'install_configure_form (needed to prevent error on drush site-install)'
En solution pérenne, je propose d'ajouter une condition dans la méthode "captcha_form_alter" pour empêcher l'ajout du captcha sur le formulaire "install_configure_form".
Do you have a better suggestion?
Active
2.0
Code