Problem/Motivation
Caveat: I'm feeling very strong "I must be mistaken because if this were real, it wouldn't just be me" vibes, so if I am indeed mistaken, please do let me know :)
TL;DR:
I think bootstrap_paragraphs.install
needs to be updated in three places to reference config/optional
instead of config/install
, because config was moved into "optional" as of
#2975049: Configuration objects provided by bootstrap_paragraphs have unmet dependencies β
:
Longer story:
We've taken on a site that's very behind on updates (currently on bootstrap_paragraphs 8.x-2.0-beta7, core 9.2.7). So, while we work on module/core updates, we've got the site attempting to run database updates, and along the way, it's complaining at us as follows:
Warning: file_get_contents(modules/contrib/bootstrap_paragraphs/config/install/paragraphs.paragraphs_type.bp_column_wrapper.yml): failed to open stream: No such file or directory in bootstrap_paragraphs_read_in_new_config() (line 24 of /code/web/modules/contrib/bootstrap_paragraphs/bootstrap_paragraphs.install)
#0 /code/web/core/includes/bootstrap.inc(312): _drupal_error_handler_real(2, 'file_get_conten...', '/code/web/modul...', 24)
#1 [internal function]: _drupal_error_handler(2, 'file_get_conten...', '/code/web/modul...', 24, Array)
#2 /code/web/modules/contrib/bootstrap_paragraphs/bootstrap_paragraphs.install(24): file_get_contents('modules/contrib...')
#3 /code/web/modules/contrib/bootstrap_paragraphs/bootstrap_paragraphs.install(104): bootstrap_paragraphs_read_in_new_config('paragraphs.para...', 'modules/contrib...')
#4 /code/web/core/includes/update.inc(229): bootstrap_paragraphs_update_8201(Array)
#5 /code/web/core/includes/batch.inc(295): update_do_one('bootstrap_parag...', 8201, Array, Array)
#6 /code/web/core/includes/batch.inc(137): _batch_process()
#7 /code/web/core/includes/batch.inc(93): _batch_do()
#8 /code/web/core/modules/system/src/Controller/DbUpdateController.php(185): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
#9 [internal function]: Drupal\system\Controller\DbUpdateController->handle('start', Object(Symfony\Component\HttpFoundation\Request))
#10 /code/web/core/lib/Drupal/Core/Update/UpdateKernel.php(114): call_user_func_array(Array, Array)
#11 /code/web/core/lib/Drupal/Core/Update/UpdateKernel.php(75): Drupal\Core\Update\UpdateKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request))
#12 /code/web/update.php(27): Drupal\Core\Update\UpdateKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#13 {main}
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes