Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /test/varbase8c1t1/docroot/core/install.php?rewrite=ok&profile=varbase&langcode=en&id=3&op=do_nojs&op=do
StatusText: OK
ResponseText: Drupal\Core\Config\PreExistingConfigException: Configuration objects (ds_extras.settings) provided by ds_extras already exist in active configuration in Drupal\Core\Config\PreExistingConfigException::create() (line 65 of /var/www/html/test/varbase8c1t1/docroot/core/lib/Drupal/Core/Config/PreExistingConfigException.php).
The batch function will be called in the very late in the batch queue ..
and the code for importing configs will run first.
Then when a module is installed, it will find the config in the active config.
But also .. some other modules will not find some modules and configs will not be installed
To fix .. all should be changed to batch and put into the batch queue
I will revert the code
.. and only keep
foreach ($module_info_data['install'] as $module) {
if (!\Drupal::moduleHandler()->moduleExists($module)) {
\Drupal::service('module_installer')->install([$module], TRUE);
}
}
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshah#3056276: Installation Issues: An AJAX HTTP error occurred. HTTP Result Code: 500
Comment #7
rajab natshahComment #9
rajab natshah#2664016: Adding a new batch set while the batch is running breaks batch order
Drupal coding standard and Drupal Practice check should pass
PHPCS, PHPCBF for both --standard=Drupal and --standard=DrupalPractice
Check Varbase Core Drupal coding standard
Check Varbase Core Drupal Practice
Comment #10
rajab natshahcallback_batch_operation
Comment #11
rajab natshahrajab@vardot-dev:/var/www/html/products/varbase_core$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_core/rajab@vardot-dev:/var/www/html/products/varbase_core$ phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,theme,scss,css,info,txt,md,yml /var/www/html/products/varbase_core/Comment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshahThe batch function will be called in the very late in the batch queue ..
and the code for importing configs will run first.
Then when a module is installed, it will find the config in the active config.
But also .. some other modules will not find some modules and configs will not be installed
To fix .. all should be changed to batch and put into the batch queue
I will revert the code
.. and only keep
instead of
\Drupal::service('module_installer')->install($module_info_data['install'], TRUE);Comment #18
rajab natshahComment #20
rajab natshahComment #21
rajab natshahComment #22
rajab natshah