Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
field_layout.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2018 at 03:11 UTC
Updated:
20 Jan 2019 at 00:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ahana92 commentedAre you talking about uninstalling the module "field layout"? Field Layout is a contributed module in drupal 7 and still not available in drupal 8. The machine name for the module is fieldlayout. So for uninstalling you can try giving drush pm-uninstall fieldlayout
Comment #3
ahana92 commentedComment #4
ahana92 commentedComment #5
ahana92 commentedseems like you are trying to uninstall core field_layout module, I m trying to reproduce
Comment #6
zenimagine commentedYes, I am talking about the experimental module of drupal core 8
Comment #7
ahana92 commentedWhile installing the module field_layout, we are installing the module layout_builder. In the .install file of the layout_builder you will see this line $field_layout = $display->getThirdPartySettings('field_layout');
The layout_builder module is dependent on field_layout module. So adding a dependency of field_layout module on layout_builder module solved the issue. We need to uninstall the layout_builder module first as its dependent on the other one. After that try to uninstall the field_layout module. I have attached the patch for it.
Comment #8
ahana92 commentedComment #9
cilefen commentedComment #10
tim.plunkettLayout Builder has no dependency on Field Layout.
LB does read the Field Layout configuration during install, if it exists.
But it does not need it to function.
I believe the issue is that once LB is installed, the logic within
field_layout_uninstall()can fail.Comment #11
zenimagine commentedI have to apply which patch to uninstall "Field Layout" from Drupal 8.5 ?
Comment #12
zenimagine commentedThe patch does not work, unable to uninstall this module.
The module tries to uninstall the list below and displays a blank page.
If I refresh my page, the screenshot error appears.
Configuration updates
The listed configuration will be updated.
Affichage du formulaire de l'entité
block_content.basic.default
block_content.parallax.default
block_content.section.default
comment.annonce.default
comment.article.default
comment.demande.default
comment.discussion.default
comment.evenement.default
comment.itineraire.default
comment.produit.default
comment.recette.default
comment.service.default
commerce_order.abonnement.default
commerce_order.produit.default
commerce_order.service.default
commerce_order_item.abonnement.add_to_cart
commerce_order_item.abonnement.default
commerce_order_item.produit.add_to_cart
commerce_order_item.produit.default
commerce_order_item.service.add_to_cart
commerce_order_item.service.default
commerce_product.abonnement.default
commerce_product.produit.default
commerce_product.service.default
commerce_product_variation.abonnement.default
commerce_product_variation.produit.default
commerce_product_variation.service.default
commerce_shipment.default.default
commerce_store.administrateur.default
commerce_store.professionnel.default
flagging.like_group.default
flagging.like_node.default
flagging.like_product.default
flagging.like_store.default
flagging.report_comment.default
flagging.report_group.default
flagging.report_node.default
flagging.report_product.default
flagging.report_profile.default
flagging.report_store.default
group.administrateur.default
group.personnel.default
group.professionnel.default
group_content.administrateur-group_membership.default
group_content.personnel-group_membership.default
group_content.personnel-group_node-discussion.default
group_content.personnel-group_node-itineraire.default
group_content.professionnel-group_membership.default
media.audio.default
media.file.default
media.image.default
media.video.default
node.annonce.default
node.article.default
node.demande.default
node.discussion.default
node.evenement.default
node.guide.default
node.itineraire.default
node.page.default
node.question.default
node.recette.default
paragraph.bp_accordion.default
paragraph.bp_accordion_section.default
paragraph.bp_blank.default
paragraph.bp_block.default
paragraph.bp_carousel.default
paragraph.bp_column_wrapper.default
paragraph.bp_columns.default
paragraph.bp_columns_three_uneven.default
paragraph.bp_columns_two_uneven.default
paragraph.bp_image.default
paragraph.bp_modal.default
paragraph.bp_simple.default
paragraph.bp_tab_section.default
paragraph.bp_tabs.default
paragraph.bp_view.default
paragraph.evenement_programmations.default
paragraph.itineraire_poi.default
paragraph.recette_instructions.default
private_message.private_message.default
private_message_thread.private_message_thread.default
profile.customer.default
profile.professionnel.default
taxonomy_term.guide_categories.default
taxonomy_term.produit_labels.default
taxonomy_term.profil_sexe.default
taxonomy_term.recette_ingredients.default
taxonomy_term.recette_types.default
user.user.default
Entité d'affichage
block_content.basic.default
block_content.parallax.default
block_content.section.default
comment.annonce.default
comment.article.default
comment.demande.default
comment.demande.full
comment.discussion.default
comment.evenement.default
comment.itineraire.default
comment.produit.default
comment.recette.default
comment.service.default
commerce_order.abonnement.default
commerce_order.produit.default
commerce_order.service.default
commerce_order_item.abonnement.default
commerce_order_item.produit.default
commerce_order_item.produit.teaser
commerce_order_item.service.default
commerce_product.abonnement.default
commerce_product.abonnement.teaser
commerce_product.abonnement.teaser_relation
commerce_product.produit.default
commerce_product.produit.teaser
commerce_product.produit.teaser_relation
commerce_product.service.default
commerce_product.service.teaser
commerce_product.service.teaser_relation
commerce_product_variation.abonnement.cart
commerce_product_variation.abonnement.default
commerce_product_variation.abonnement.teaser
commerce_product_variation.produit.cart
commerce_product_variation.produit.default
commerce_product_variation.produit.teaser
commerce_product_variation.service.cart
commerce_product_variation.service.default
commerce_product_variation.service.teaser
commerce_shipment.default.default
commerce_shipment.default.user
commerce_store.personnel.default
commerce_store.personnel.product_default
commerce_store.personnel.product_teaser_relation
commerce_store.personnel.teaser_relation
commerce_store.professionnel.default
commerce_store.professionnel.product_default
commerce_store.professionnel.product_teaser_relation
commerce_store.professionnel.teaser
commerce_store.professionnel.teaser_relation
flagging.like_group.default
flagging.like_node.default
flagging.like_product.default
flagging.like_store.default
flagging.report_comment.default
flagging.report_group.default
flagging.report_node.default
flagging.report_product.default
flagging.report_profile.default
flagging.report_store.default
group.personnel.default
group.personnel.node_default
group.personnel.node_teaser_relation
group.personnel.teaser
group.personnel.teaser_relation
group.professionnel.default
group_content.administrateur-group_membership.default
group_content.personnel-group_membership.default
group_content.personnel-group_node-article.default
group_content.professionnel-group_membership.default
media.audio.default
media.file.default
media.video.default
node.annonce.default
node.annonce.teaser
node.annonce.teaser_relation
node.article.default
node.article.rss
node.article.search_index
node.article.search_result
node.article.teaser
node.article.teaser_relation
node.demande.default
node.demande.teaser
node.discussion.default
node.discussion.teaser
node.discussion.teaser_relation
node.evenement.default
node.evenement.teaser
node.evenement.teaser_relation
node.guide.default
node.guide.teaser
node.itineraire.default
node.itineraire.teaser
node.itineraire.teaser_relation
node.page.default
node.page.teaser
node.question.default
node.question.teaser
node.recette.default
node.recette.teaser
node.recette.teaser_relation
paragraph.bp_accordion.default
paragraph.bp_accordion_section.default
paragraph.bp_blank.default
paragraph.bp_block.default
paragraph.bp_carousel.default
paragraph.bp_column_wrapper.default
paragraph.bp_columns.default
paragraph.bp_columns_three_uneven.default
paragraph.bp_columns_two_uneven.default
paragraph.bp_image.default
paragraph.bp_modal.default
paragraph.bp_simple.default
paragraph.bp_tab_section.default
paragraph.bp_tabs.default
paragraph.bp_view.default
paragraph.evenement_programmations.default
paragraph.itineraire_poi.default
paragraph.recette_ingredients.default
paragraph.recette_instructions.default
private_message.private_message.default
private_message.private_message.inbox
private_message_thread.private_message_thread.default
private_message_thread.private_message_thread.inbox
profile.customer.default
profile.personnel.default
profile.personnel.statut
profile.personnel.teaser
profile.personnel.utilisateur
profile.professionnel.default
taxonomy_term.guide_categories.default
taxonomy_term.produit_labels.default
taxonomy_term.profil_sexe.default
taxonomy_term.recette_ingredients.default
taxonomy_term.recette_types.default
user.user.compact
user.user.contact
user.user.default
user.user.private_message_author
Comment #13
gloriaswebtech commentedI was installing this module and had the same issue on install. I then tried to uninstall it and had the same results. I fixed it on version 8.5 with the following code. It is not very efficient, but loading from the EntityDisplayBase class produced a content entity type error due to it being abstract and not having a ContentEntityType annotation. Unless there has been some major change, I think this will suffice until it can be optimized. Hope this helps :)
Comment #15
gloriaswebtech commentedComment #16
tim.plunkettCan you provide interdiffs from my patch in #10 and explain the differences?
Comment #17
gloriaswebtech commentedSorry about the failed attempts. I am really new to the patch process and was trying my best to get it up there. However, after you, tim.plunkett, mentioning your patch #10 and asking for interdiffs, I no longer feel the need to get mine up there. Yours is more efficient with EntityDisplayInterface. I did not see that the first time I came to this issue (I just knew it had to do with some entities not implementing the EntityDisplayWithLayoutInterface).
Comment #18
agileadamThanks Tim. #10 worked for me.
Comment #19
tim.plunkettReuploading #10.
Comment #20
dqdRTBC from me.
Comment #21
shaktikI have tested this patch for uninstalling "Field Layout" from Drupal 8.5.4 is also working fine.
Comment #22
zenimagine commentedDoes the patch work with 8.5 ?
Comment #23
zenimagine commentedOK I tested and it works on 8.5 thank you
Comment #24
tedbowThe fix looks good but could we add a simple test to
LayoutBuilderFieldLayoutCompatibilityTest.Right now this would fail without the patch:
Comment #26
neclimdulHow bout this?
Comment #30
neclimdultrying again.
Comment #31
Shevchuk commentedPatch from #30 works fine on 8.6.0-rc1
Comment #32
saranraj.g commented#30 patch works fine on 8.6.1
Comment #33
perarg commented#30 did the job! Thank you on 8.6.1
Comment #34
dqdSo, RTBC?
Comment #35
alexpottCommitted and pushed 68f9fd50e8 to 8.7.x and 170c6a60f2 to 8.6.x. Thanks!
Credited @tedbow for a review comment that helped get test coverage.
@Gtucker6, @ahana92 posted patches but didn't get credit because their patches didn't contribute to the issue being fixed as far as I can see.
@shaktik thanks for testing the patch but screenshots of the patch applying are not necessary because we have automated tests that tell us if the patch applied. I appreciate that you also showed a successful uninstall of the field layout module but the screenshot did not indicate that layout builder was installed.
Comment #39
zenimagine commented