- Issue created by @roberto_araya
En el ambiente de desarrollo con lando al instalar se produce un error de dependencias:
Error
The website encountered an unexpected error. Please try again later.
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">bt_store_cl</em> have unmet dependencies: <em class="placeholder">commerce_price.commerce_currency.CLP (commerce_price), commerce_tax.commerce_tax_type.bt_iva_cl (commerce_tax), core.entity_form_display.node.bt_basic_page.default (field.field.node.bt_basic_page.field_bt_css, field.field.node.bt_basic_page.field_bt_metatags, field.field.node.bt_basic_page.layout_builder__layout, node.type.bt_basic_page, field_css), core.entity_form_display.user.user.default (field.field.user.user.commerce_remote_id), core.entity_view_display.block_content.bt_blog_publication.bt_teaser_image (block_content.type.bt_blog_publication, field.field.block_content.bt_blog_publication.field_bt_blq_desc, field.field.block_content.bt_blog_publication.field_bt_blq_title, field.field.block_content.bt_blog_publication.field_bt_node_reference), core.entity_view_display.block_content.bt_cb_accordion.default (fences), core.entity_view_display.block_content.bt_images_gallery.default (block_content.type.bt_images_gallery, field.field.block_content.bt_images_gallery.field_bt_blq_desc, field.field.block_content.bt_images_gallery.field_bt_blq_title, field.field.block_content.bt_images_gallery.field_bt_images, photoswipe), core.entity_view_display.commerce_product.default.bt_banner (commerce_product.commerce_product_type.default, field.field.commerce_product.default.body, field.field.commerce_product.default.field_bt_category, field.field.commerce_product.default.field_bt_image, layout_builder_restrictions, layout_library), core.entity_view_display.commerce_product.default.bt_full (commerce_product.commerce_product_type.default, field.field.commerce_product.default.body, field.field.commerce_product.default.field_bt_category, field.field.commerce_product.default.field_bt_image, commerce_product, layout_builder_restrictions, layout_library), core.entity_view_display.commerce_product.default.bt_teaser (commerce_product.commerce_product_type.default, field.field.commerce_product.default.body, field.field.commerce_product.default.field_bt_category, field.field.commerce_product.default.field_bt_image, commerce_product), core.entity_view_display.media.bt_image.bt_square200 (media_parent_entity_link), core.entity_view_display.node.blog_post.bt_teaser_image (field.field.node.blog_post.field_bt_content_image, field.field.node.blog_post.field_bt_intro, field.field.node.blog_post.field_bt_metatags, field.field.node.blog_post.field_bt_paragraphs), core.entity_view_display.node.bt_article.bt_teaser_image (field.field.node.bt_article.field_bt_category, field.field.node.bt_article.field_bt_content_image, field.field.node.bt_article.field_bt_intro, field.field.node.bt_article.field_bt_metatags, field.field.node.bt_article.field_bt_paragraphs, field.field.node.bt_article.field_bt_tags, field.field.node.bt_article.field_bt_title_foot, node.type.bt_article, layout_builder_restrictions, layout_library), core.entity_view_display.node.bt_basic_page.full (field.field.node.bt_basic_page.field_bt_css, field.field.node.bt_basic_page.layout_builder__layout, node.type.bt_basic_page, layout_builder_restrictions, layout_library), core.entity_view_display.taxonomy_term.bt_article_tags.default (taxonomy.vocabulary.bt_article_tags, views.view.bt_articles, bt_layouts, layout_builder_restrictions, layout_library), core.entity_view_display.taxonomy_term.bt_blog_tags.default (taxonomy.vocabulary.bt_blog_tags, bt_layouts, layout_builder_restrictions, layout_library), core.entity_view_display.taxonomy_term.bt_categories.default (views.view.bt_articles, bt_layouts, layout_builder_restrictions, layout_library), core.entity_view_display.taxonomy_term.bt_product_brand.default (bt_layouts, layout_library), core.entity_view_display.taxonomy_term.bt_product_categories.default (system.menu.bt-product-categories, taxonomy.vocabulary.bt_product_categories, bt_layouts, layout_builder_restrictions, layout_library), core.entity_view_mode.commerce_product.bt_banner (commerce_product), field.field.commerce_product.default.field_bt_brand (commerce_product.commerce_product_type.default), field.field.node.bt_article.layout_builder__layout (node.type.bt_article), field.field.node.bt_basic_page.layout_selection (node.type.bt_basic_page), field.field.taxonomy_term.bt_article_tags.layout_builder__layout (taxonomy.vocabulary.bt_article_tags), field.field.taxonomy_term.bt_blog_tags.layout_builder__layout (taxonomy.vocabulary.bt_blog_tags), field.field.taxonomy_term.bt_product_categories.layout_builder__layout (taxonomy.vocabulary.bt_product_categories), field.storage.node.layout_selection (layout_library), taxonomy_menu.taxonomy_menu.bt_blog_tags (taxonomy.vocabulary.bt_blog_tags, taxonomy_menu), taxonomy_menu.taxonomy_menu.bt_product_brands (taxonomy_menu), taxonomy_menu.taxonomy_menu.bt_tags (taxonomy.vocabulary.bt_article_tags, taxonomy_menu), transbank.transbank_service.webpay_plus_live (transbank), views.view.bt_product_carousel (commerce_product.commerce_product_type.default, field.storage.commerce_product.field_bt_image, commerce, commerce_product, views_bootstrap), views.view.bt_products (commerce_product.commerce_product_type.default, commerce, commerce_product, product_taxonomy_filter, views_css_grid)</em> in Drupal\Core\Config\UnmetDependenciesException::create() (line 100 of core/lib/Drupal/Core/Config/UnmetDependenciesException.php).
Drupal\Core\Config\UnmetDependenciesException::create('bt_store_cl', Array) (Line: 530)
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'bt_store_cl') (Line: 132)
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'bt_store_cl') (Line: 199)
Drupal\Core\Extension\ModuleInstaller->install(Array, ) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, ) (Line: 1659)
install_install_profile(Array) (Line: 700)
install_run_task(Array, Array) (Line: 571)
install_run_tasks(Array, NULL) (Line: 119)
install_drupal(Object) (Line: 48)
Ejecutar: lando start
Una vez que lando termina el proceso de creación, y vamos a la ruta del sitio (tiendaparamipyme.lndo.site) y configuramos la conexión a la base de datos, comienza el proceso de instalación, cuando lleva alrededor de 83 módulos instalados arroja el error.
Si borramos la base de datos y la volvemos a crear, y repetimos el proceso de instalación, éste termina sin problemas y la tienda se crea correctamente.
Podemos hacer 2 cosas:
a) Borrar la base de datos y crearla de nuevo.
b) Importar la base de datos pre-cargada.
Para borrar la base de datos en el ambiente de desarrollo con lando debemos correr mysql como root en el contenedor de la base de datos, para eso:
docker exec -it tiendaparamipyme_database_1 mysql -uroot
Y ejecutar los siguientes comandos SQL:
drop database drupal9;
create database drupal9;
grant all privileges on drupal9.* to drupal9;
exit
Para comenzar nuevamente el proceso de instalación ir a la ruta:
http://tiendaparamipyme.lndo.site/core/install.php?rewrite=ok&profile=bt...
Una vez que el comando lando start haya terminado podemos importar la base de datos pre-cargada con el comando:
lando db-import .data/tiendaparamipyme_preload.sql
Luego ir a la ruta:
http://tiendaparamipyme.lndo.site/core/install.php?rewrite=ok&profile=bt...
Configuramos la conexión a la base de datos y le damos guardar. Se actualizará la página y nos saldrá un mensaje de que el sitio ya está instalado, pero eso no es cierto, debemos volver a ir a la ruta:
http://tiendaparamipyme.lndo.site/core/install.php?rewrite=ok&profile=bt...
y terminar el proceso de instalación.
1.- Descubrir las razones de por qué pasa esto, me pasa con lando únicamente.
2.- El proyecto se tiene que mover a Drupal 10, y hay que ver si este problema persiste o no.
Active
1.0
Code