Update failed: image_post_update_image_loading_attribute, Missing required properties for an EntityDisplay entity.

Created on 18 August 2022, almost 2 years ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

When upgrading from 9.2.21 to 9.4.5, and running drush updatedb, I see the following error which prevents the database from being updated, this will not replicable for all users, this can be site specific case.

$ drush updatedb
---------- ---------------------------------------------- ------------- ------------------------------------------------------------------------------
Module Update ID Type Description
---------- ---------------------------------------------- ------------- ------------------------------------------------------------------------------
image image_loading_attribute post-update Add the image loading attribute setting to image field formatter instances.
media modify_base_field_author_override post-update Updates stale references to Drupal\media\Entity\Media::getCurrentUserId.
node modify_base_field_author_override post-update Updates stale references to Drupal\node\Entity\Node::getCurrentUserId.
node rebuild_node_revision_routes post-update Rebuild the node revision routes.
system delete_authorize_settings post-update Remove obsolete system.authorize configuration.
system enable_provider_database_driver post-update Enable the modules that are providing the listed database drivers.
system sort_all_config post-update Sort all configuration according to its schema.
taxonomy clear_views_argument_validator_plugins_cache post-update Clear the cache after deprecating Term views argument validator.
user update_roles post-update Calculate role dependencies and remove non-existent permissions.
views image_lazy_load post-update Add lazy load options to all image type field configurations.
views provide_revision_table_relationship post-update Clear caches due to adding a relationship from revision table to base table.
views sort_identifier post-update Add the identifier option to all sort handler configurations.
---------- ---------------------------------------------- ------------- ------------------------------------------------------------------------------

Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes

> [notice] Update started: image_post_update_image_loading_attribute
> [error] Missing required properties for an EntityDisplay entity.
> [error] Update failed: image_post_update_image_loading_attribute
[error] Update aborted by: image_post_update_image_loading_attribute
[error] Finished performing updates.

Steps to reproduce

- Install 9.2.21
- Upgrade to 9.4.5
- Run drush updatedb

Proposed resolution

Handle the configuration property that doesn't exist

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Postponed: needs info

Version

9.5

Component
Image systemย  โ†’

Last updated about 19 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Nilesh Chhantbar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States axoplasm

    Iโ€™m receiving a similar error to Nilesh Chhantbar:

    >  [notice] Update started: image_post_update_image_loading_attribute
    >  [error]  Missing required properties for an EntityDisplay entity. 
    >  [error]  Update failed: image_post_update_image_loading_attribute 
     [error]  Update aborted by: image_post_update_image_loading_attribute 
     [error]  Finished performing updates. 
    

    Iโ€™d be happy to contribute info to resolving this issue but I donโ€™t know how to find out which EntityDisplay Entity is missing properties. This is actively blocking a project for me so I am very motivated! How can I find out which Entity is missing properties?

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Sonam_goswami

    I am also facing the same issue when I upgrade my project from Drupal 8.9 to 9.5 and I don't know how to fix it. When I run the update.php it gives the below error,

    image module
    Update image_loading_attribute
    Failed: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "default" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FormatterPluginManager are: address_default, address_plain, address_country_default, address_zone_default, comment_permalink, comment_username, comment_default, commerce_remote_id_default, commerce_plugin_item_default, commerce_order_item_table, commerce_order_total_summary, commerce_payment_method_profile, commerce_price_calculated, commerce_price_plain, commerce_price_default, commerce_product_attributes_overview, commerce_add_to_cart, commerce_usage_limit, commerce_store_datetime, datetime_time_ago, datetime_default, datetime_custom, datetime_plain, entity_reference_revisions_entity_view, file_link, file_extension, file_size, file_table, file_rss_enclosure, file_uri, file_default, file_audio, file_video, file_url_plain, file_filemime, fivestar_stars, fivestar_rating, fivestar_percentage, image_url, image, link_separate, link, list_default, list_key, state_transition_form, entity_reference_rss_category, text_summary_or_trimmed, text_trimmed, text_default, author, user_name, webform_entity_reference_url, webform_entity_reference_link, webform_entity_reference_entity_view, language, number_unformatted, entity_reference_entity_id, number_integer, uri_link, number_decimal, email_mailto, timestamp_ago, boolean, string, entity_reference_label, basic_string, entity_reference_entity_view, timestamp in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 54 of /home/drupal/public_html/cms/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

    It shows the plugin does not exist but these all plugins exist in my project.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia nezam4u

    Comment the code of the function image_post_update_image_loading_attribute
    core\modules\image\image.post_update.php line - 25 and try to upgrade. Once upgrade done, comment out the code.

Production build 0.69.0 2024