GetDKAN / dkan

DKAN Open Data Portal
https://dkan.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
373 stars 171 forks source link

Unknown data property field_modified_source_date #1905

Closed kevindavis338 closed 7 years ago

kevindavis338 commented 7 years ago

EntityMetadataWrapperException: Unknown data property field_modified_source_date. in EntityStructureWrapper->getPropertyInfo() (line 355 of /var/www/html/sites/profiles/dkan/modules/contrib/entity/includes/entity.wrapper.inc).

dafeder commented 7 years ago

This issue appears in certain DKAN sites after upgrading to 1.13.3. It's fixed by https://github.com/NuCivic/dkan/commit/5af2172e8f9d5a5c18ac14e14e74612d5835816b#diff-f05ce6029c361ff80ee0bc826ec69741

But running the following code against your instance (with drush php-eval or using devel module's php tool) should give you a quick fix:

field_delete_field('field_modified_source_date');
$batch_size = 1;
field_purge_batch($batch_size);
kevindavis338 commented 7 years ago

Ok, thank you