Problem/Motivation

When attempting to run drush updatedb after installing new 2.1.0 version I get the following notification

>  [notice] Update started: bootstrap_layout_builder_update_8005
>  [error]  The "field_item:default_breakpoints" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: rgb_color, hexadecimal_color, colorapi_color, dynamic_entity_reference, filter_format, layout_section, metatag, site, current_path, current_date, text, timespan, float, email, map, duration_iso8601, uri, language_reference, integer, binary, datetime_iso8601, list, any, timestamp, boolean, string, language, entity, entity:aggregator_item, entity:aggregator_feed, entity:autoban, entity:backup_migrate_source, entity:backup_migrate_schedule, entity:backup_migrate_settings, entity:backup_migrate_destination, entity:block, entity:block_content, entity:block_content:basic, entity:block_content_type, entity:block_group_content, entity:blb_breakpoint, entity:blb_layout, entity:blb_layout_option, entity:captcha_point, entity:ckeditor_template, entity:comment, entity:comment:comment, entity:comment:comment_node_book, entity:comment:comment_node_company, entity:comment:comment_node_page, entity:comment:comment_node_review, entity:comment:comment_node_review_author, entity:comment:comment_node_user_alert, entity:comment_type, entity:contact_message, entity:contact_message:feedback, entity:contact_message:personal, entity:contact_form, entity:content_moderation_state, entity:context, entity:crop_type, entity:crop, entity:crop:focal_point, entity:custom_breadcrumbs, entity:date_recur_interpreter, entity:editor, entity:feeds_subscription, entity:feeds_feed, entity:feeds_feed:author_name, entity:feeds_feed:new_date, entity:feeds_feed_type, entity:field_storage_config, entity:field_config, entity:field_validation_rule_set, entity:file, entity:filter_format, entity:geocoder_provider, entity:image_style, entity:imce_profile, entity:layout_builder_style, entity:layout_builder_style_group, entity:map_bundle, entity:map_layer, entity:linkcheckerlink, entity:linkit_profile, entity:media_type, entity:media, entity:media:audio, entity:media:document, entity:media:image, entity:media:remote_video, entity:media:video, entity:menu_link_content, entity:menu_link_content:menu_link_content, entity:metatag_defaults, entity:name_list_format, entity:name_format, entity:node, entity:node:article, entity:node:book, entity:node:company, entity:node:ipms_chapter, entity:node:page, entity:node:product_announcement, entity:node:region, entity:node:review, entity:node:review_author, entity:node_type, entity:path_alias, entity:behavior_settings, entity:rdf_mapping, entity:recaptcha_v3_action, entity:redirect, entity:redirect:redirect, entity:responsive_image_style, entity:rest_resource_config, entity:rules_component, entity:rules_reaction_rule, entity:search_page, entity:site_alert, entity:social_auth, entity:social_post, entity:menu, entity:action, entity:taxonomy_term, entity:taxonomy_term:ipms_archival, entity:taxonomy_term:ipms_usa_region, entity:taxonomy_term:journal, entity:taxonomy_term:news_topics, entity:taxonomy_term:product_taxonomy_type, entity:taxonomy_term:review_taxonomy_type, entity:taxonomy_term:scale_models, entity:taxonomy_term:special_articles, entity:taxonomy_term:tags, entity:taxonomy_term:video, entity:taxonomy_vocabulary, entity:ultimate_cron_job, entity:user_role, entity:user, entity:workbench_email_template, entity:workflow, entity:pathauto_pattern, entity:xmlsitemap, entity:view, entity:entity_form_mode, entity:entity_form_display, entity:entity_view_display, entity:entity_view_mode, entity:base_field_override, entity:date_format, entity_reference, field_item:address_country, field_item:address, field_item:address_zone, field_item:colorapi_color_field, field_item:comment, field_item:contact_storage_options_email, field_item:date_recur, field_item:datetime, field_item:daterange, field_item:dynamic_entity_reference, field_item:feeds_item, field_item:file_uri, field_item:file, field_item:fontawesome_icon, field_item:geofield, field_item:image, field_item:layout_section, field_item:link, field_item:metatag, field_item:name, field_item:list_string, field_item:list_float, field_item:list_integer, field_item:path, field_item:redirect_source, field_item:telephone, field_item:text_long, field_item:text_with_summary, field_item:text, field_item:video_embed_field, field_item:yearonly, field_item:published_at, field_item:created, field_item:string_long, field_item:map, field_item:timestamp, field_item:uri, field_item:decimal, field_item:boolean, field_item:language, field_item:changed, field_item:email, field_item:password, field_item:entity_reference, field_item:float, field_item:string, field_item:uuid, field_item:integer 
>  [error]  Update failed: bootstrap_layout_builder_update_8005 
 [error]  Update aborted by: bootstrap_layout_builder_update_8005 
 [error]  Finished performing updates. 

Steps to reproduce

Install version 2.1.0, run drush updatedb

CommentFileSizeAuthor
#10 date_recur-add-check-for-definition.patch987 byteskalavan

Comments

aitala created an issue. See original summary.

kyle.davis’s picture

I have the same issue as well. I initially thought it was b/c I did not have bootstrap styles installed. But after adding that, I am still getting the error.

aitala’s picture

I basically reverted to the old modules... I've not found a fix.

Eric

haemishm’s picture

I'm getting this same issue and it's causing some issues with knowing when other updates are done. Can we get some kind of answer as to whether this is being addressed or if there is a workaround?

aitala’s picture

I have another D9 site where I was able to do the update(s) with no problem... It's really confusing

Eric

aitala’s picture

OK, here is how I fixed it..

If you need to update bootstrap_styles to 1.1.0 ...
Uninstall bootstrap_layout_builder then use composer to remove it.
Use composer to get the 2.1.0 version... enable...

I _think_ this will work... it installed, I just haven't fully tested the site yet

Eric

aastrong’s picture

I personally just went back to 2.0.1 until i have time to look closer into the issue.

mbria’s picture

Same issue here.

This issue looks related:
https://www.drupal.org/project/bootstrap_layout_builder/issues/3157754

Aitala workaround did the job:

## See next post before running this;
$ drush pml | grep bootstrap_styles            # check you are in version 1.1.0
$ drush pm:uninstall bootstrap_layout_builder  # uninstall
$ composer require 'drupal/bootstrap_layout_builder:^2.1' # install last version
$ drush updb                               # updgrade don't show 8005 error again
mbria’s picture

DON'T APPLY FORMER WORKAROUND...

I learned the hard way... I've been recovering my site from the backup for a few hours now.

The error goes away but then new problems arise and the site becomes unusable.

I suspect that, as discussed in this other issue, the problem is that we have done a partial manual upgrade and the plugin versions are no longer the correct ones:

https://www.drupal.org/project/varbase/issues/3242627

Perhaps the best option is to revert the bootstrap_layout_builder plugin to version 2.0.1 as suggested by Aastrong?
Anybody can confirm the temporary solution?

kalavan’s picture

StatusFileSize
new987 bytes

Hello,

I have similar problem with this update,
and after debagging I found that date_recur has service and method DateRecurOccurrences::isDateRecur.
And contain code -
$typeDefinition = $this->typedDataManager->getDefinition('field_item:' . $fieldDefinition->getType());
So on this step we don't have this plugin and it provide error - The "field_item:default_breakpoints" plugin does not exist.
It triggering during update.
So simple solution is just to add check to this method.

Probably you can have another similar modules with this problem.

josh.chambers’s picture

Unfortunately, the patch in #10 wouldn't apply for me on ^2.1 and it's gotten to the point where this is one of the few modules preventing me from Upgrading to Drupal 10 (as version 2.1 is required for that).

Update: I went back to this and found I misunderstood the comment in #10. I needed to apply the patch to drupal/date_recur, not this module. When I did that, it appeared that this module finally did apply the db update 8005!

abautu’s picture

I confirm #10 worked for me (applied to date_recur module). I opened https://www.drupal.org/project/date_recur/issues/3463007 for date_recur.