If you get the warning "Entity/field definitions Mismatch detected Mismatched entity and/or field definitions." after upgrading (for example from 8.37 to 8.45 i.e. required security update) you have to fix this issue first before running database updates. If you don't you might get into unresolvable problems. The solution is easy.
1. Adapt index.php
Add the following script before $response->send(); in index.php file(located in Drupal root folder)
try { \Drupal::entityDefinitionUpdateManager()->applyUpdates(); } catch (EntityStorageException $e) { print_r($e); }
2. Run update.php
3. Clear caches and run cron
4. Remove the above script from index.php
Reference:
https://www.drupal.org/project/paragraphs/issues/2914259#comment-12288900
https://www.fuelforbrain.com/drupal-8-mismatched-entity-andor-field-defi...
- Log in to post comments