- 🇻🇳Vietnam tra.duong
I install demo_umami using:
Drupal 10.0.3
PHP 8.1.14
and run `lando drush si demo_umami -y`[notice] Starting Drupal installation. This takes a while. [notice] Performed install task: install_select_language [notice] Performed install task: install_select_profile [notice] Performed install task: install_load_profile [notice] Performed install task: install_verify_requirements [notice] Performed install task: install_verify_database_ready [notice] Performed install task: install_base_system [notice] Performed install task: install_bootstrap_full [notice] Performed install task: install_profile_modules [notice] Performed install task: install_profile_themes [warning] The "extra_field_block:node:recipe:content_moderation_control" was not found [warning] The "extra_field_block:node:recipe:content_moderation_control" was not found [warning] The "extra_field_block:node:page:content_moderation_control" was not found [warning] The "extra_field_block:node:page:content_moderation_control" was not found [warning] The "extra_field_block:node:article:content_moderation_control" was not found [warning] The "extra_field_block:node:article:content_moderation_control" was not found [notice] Performed install task: install_install_profile [error] Import of string "Las actualizaciones fallaron para el tipo de entidad %entity_type, para %entity_ids. <a href=:url>Compruebe los registros</a>." was skipped because of disallowed or malformed HTML. [notice] Translations imported: 8892 added, 0 updated, 0 removed. [warning] 1 disallowed HTML string(s) in files: translations://drupal-10.0.3.es.po. [notice] Performed install task: install_import_translations [notice] Performed install task: install_configure_form [warning] No configuration objects have been updated. [notice] Performed install task: install_finish_translations [notice] Performed install task: install_finished
There are 8 warnings and 1 error
It is not good for a core's demo profile.
- 🇮🇪Ireland markconroy
Adding credit to @dww as per request from @Kristen Pol
- 🇻🇳Vietnam tra.duong
I tried to trace and found something error:
[notice] Performed install task: install_profile_themes [warning] The "extra_field_block:node:recipe:content_moderation_control" was not found ..... [notice] Performed install task: install_install_profile
The orders is weid here, when install theme, it also try to import the settings in demo_umami/config/install
But the content types are installed in install_install_profile step.
After the content types is installed, the content_moderation module checks for moderated bundles to register the plugins (extra_field_block:node:{bundle}:content_moderation_control)So, in the install_profile_themes step, it cannot see the (extra_field_block:node:{bundle}:content_moderation_control) then throw a 'PluginNotFoundException' and return as 'Drupal/Core/Block/Plugin/Block/Broken'.
Then, in install_install_profile step, it Fix that broken plugin, because content_moderation module invoke the register here.
Propose solution:
Considering about put the import content type's display mode in after content_moderation register the plugin / Or remove the warning of registering `extra_field_block:{content_type}:{bundle}:{content_moderation field}` plugins in the install_profile_themes step.About the error when translation:
Line 30452 of "translations/drupal-10.0.3.es.po" in my case:... msgstr "" "Las actualizaciones fallaron para el tipo de entidad %entity_type, "para %entity_ids. <a href=\":url\">Compruebe los registros</a>." msgid "" ...
replace
<a href=:url>
to<a href=\":url\">
solve the error. - Status changed to Active
over 1 year ago 8:00am 23 February 2023 - 🇻🇳Vietnam tra.duong
I set the status to active. The trace in #20 should be the cause of the problem.
- @markconroy opened merge request.
- Status changed to Needs review
over 1 year ago 4:16pm 11 March 2023 - 🇮🇪Ireland markconroy
I'm going to need someone with a better understanding of the config management system than me to check this, but it appears if we just remove the config for the offending sections, the profile installs fine, works as expected, and does not report any errors.
- Status changed to Needs work
over 1 year ago 1:41pm 21 March 2023 - 🇺🇸United States smustgrave
Tested on an Umami install with the MR applied
The content types no longer have a moderation bar. So if my page is in draft I can't change moderation when viewing the page. - 🇮🇪Ireland markconroy
@smustgrave that should not have happened. I hadn't noticed that when I created this patch. Thanks for testing.