Skip to main content
for entity types
Source Link
Thirsty Six
  • 815
  • 1
  • 7
  • 15

Solved!

GoMethod 1: Go to the admin/reports/status and find the field machine name.

For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

(or)

Method 2: If it's not working, please try the method below.

.install

<?php

/**
 * Implements hook_update_N().
 */
function HOOK_update_9001() {

  $entity_type_manager = \Drupal::entityTypeManager();
  $entity_type_manager->clearCachedDefinitions();

  $entity_type_ids = [];
  $change_summary = \Drupal::service('entity.definition_update_manager')->getChangeSummary();
  foreach ($change_summary as $entity_type_id => $change_list) {
    $entity_type = $entity_type_manager->getDefinition($entity_type_id);
    \Drupal::entityDefinitionUpdateManager()->installEntityType($entity_type);
    $entity_type_ids[] = $entity_type_id;
  }

  return t("Installed/Updated the entity type(s): @entity_type_ids", [
    '@entity_type_ids' => implode(', ', $entity_type_ids),
  ]);
}

RUN drush cim & drush cr

Solved!

Go to the admin/reports/status and find the field machine name.

For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

Solved!

Method 1: Go to the admin/reports/status and find the field machine name.

For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

(or)

Method 2: If it's not working, please try the method below.

.install

<?php

/**
 * Implements hook_update_N().
 */
function HOOK_update_9001() {

  $entity_type_manager = \Drupal::entityTypeManager();
  $entity_type_manager->clearCachedDefinitions();

  $entity_type_ids = [];
  $change_summary = \Drupal::service('entity.definition_update_manager')->getChangeSummary();
  foreach ($change_summary as $entity_type_id => $change_list) {
    $entity_type = $entity_type_manager->getDefinition($entity_type_id);
    \Drupal::entityDefinitionUpdateManager()->installEntityType($entity_type);
    $entity_type_ids[] = $entity_type_id;
  }

  return t("Installed/Updated the entity type(s): @entity_type_ids", [
    '@entity_type_ids' => implode(', ', $entity_type_ids),
  ]);
}

RUN drush cim & drush cr

added 4 characters in body
Source Link
Thirsty Six
  • 815
  • 1
  • 7
  • 15

Solved!

Go to the admin/reports/status and find the field machine name. 

For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

Solved!

Go to the admin/reports/status and find the field machine name. For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

Solved!

Go to the admin/reports/status and find the field machine name. 

For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here

Source Link
Thirsty Six
  • 815
  • 1
  • 7
  • 15

Solved!

Go to the admin/reports/status and find the field machine name. For Example: "paragraph.field_video_upload". Edit the field storage settings and save the configuration again. That's it.

It works.

enter image description here