4

I'm getting the following error on my Drupal 8 configuration page;

Entity/field definitions Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions. Content

Update the node.rng_capacity field.
Update the node.rng_registrants_duplicate field.
Update the node.rng_registration_groups field.
Update the node.rng_registration_type field.
Update the node.rng_reply_to field.
Update the node.rng_status field.

I'm not sure what caused these issues or how to go about resolving them - I think they may be leftover fragments/elements from when I deleted a registration or entity type maybe?

  • 1
    The message shouldnt mean there isnt anything bad going on. Running drush entity-updates on your site should cancel these messages. – Daniel Apr 21 '16 at 17:42
11

You can solve this issue by two ways If you have Drush -

drush entity-updates

If you don't use Drush add following script before $response->send(); in index.php file(located in Drupal root folder) and reload the web page.

try {
  \Drupal::entityDefinitionUpdateManager()->applyUpdates();
}
catch (EntityStorageException $e) {
  print_r($e);
}

Then remove this code from index.php file.

| improve this answer | |
  • Can you post drush comment warning or error here? So I can figure out what is the problem exactly. – Rahul Dec 5 '16 at 4:01
  • I deleted my comment, the problem was with the PHP version my drush was using ( I had two versions, shell was using the old one, so drush was too). Thanks! – Chayemor Dec 6 '16 at 10:18
  • If anyone comes seeking this question how to change PHP version under which drush is running you can find this article helpful. <a href="fuelforbrain.com/… to change PHP version that drush runs under?</a> – Rahul Dec 7 '16 at 7:25
  • I had this problem after updating from Drupal 8.3.2 to 8.3.3, but in my fields contained already data. <blockquote>The SQL storage cannot change the schema for an existing field</blockquote> Is there no simple way to update field storage and solve this mismatched entity error when there is already data in the fields? – drupalfan Jun 17 '17 at 11:18
  • Drush didn't work in my case for some reason, but I was able to use drupal update:entities instead. – Gruffy Jul 26 '18 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.