- πΊπΈUnited States pmagunia Philadelphia πΊπΈ
Comment #26 helped me. I wrote an update hook for it. You'll want to change All Caps text to suit your site.
/** * Fix mismatched entity warning on Status Report */ function MYMODULE_update_9000(&$sandbox) { $field = FieldConfig::loadByName('paragraph', 'MYPARAGRAPHTYPE', 'MYFIELD'); $field_storage = FieldStorageConfig::loadByName('paragraph', 'MYFIELD'); $field->save(); $field_storage->save(); }
- π¦πΊAustralia hitesh.koli Melbourne
I had a similar issue. The message appearing "Mismatched entity and/or field definitions (Paragraph)" in status report.
After investigation it looks like the issue was with "viewsreference" module used in paragraph. some how update for `8102` did not went through.
So in order to re-run the db updates I reset the version from 8103 to 8102.
drush ev "\Drupal::service('update.update_hook_registry')->setInstalledVersion('viewsreference', 8102)". After running this I ran the drush updb again and the issue went away as the database changes were now in sync with codebase.
I verified to see if the version is correctly set or not using drush ev "echo \Drupal::service('update.update_hook_registry')->getInstalledVersion('viewsreference')"