Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a Location content type and when I go to enter locative information and submit a location, I receive the following error message.
EntityMetadataWrapperException: Unknown data property field_location. in EntityStructureWrapper->getPropertyInfo() (line 294 of /home/...../sites/all/modules/entity/includes/entity.wrapper.inc).
My ultimate goal is http://ninjagirl.com/posts/012/display-gmap-referenced-location
I was able to accomplish this in D6, now trying in D7
Comments
Comment #1
fagoAre you trying to use a token or something from the location field? Also, please try whether it's the same with the dev version.
Comment #2
shinz83 CreditAttribution: shinz83 commentedNot using a token, entering information directly. I'll try out the dev version.
Comment #3
asherry CreditAttribution: asherry commented@shinz83, the location, (or location_cck) module isn't integrated with Entity API yet. It's a large todo item on the front page of the location module.
http://drupal.org/node/1186868
Entity API defines all core field types as properties in entity_field_info_alter, by giving them a property type.
If the property_type isn't set for a field, entity API will skip over it - like in entity_metadata_field_default_property_callback().
Comment #4
asherry CreditAttribution: asherry commentedSorry I misspoke, @shinz83, your problem should be fixed by downloading the latest location release (rc3) and enabling location_entity.
They ARE still working on location_entity though, but I believe this integration functionality works.
Comment #5
esod CreditAttribution: esod commentedI'm finding that field_location remains an unknown data property. See my comment at https://www.drupal.org/node/1186868#comment-9045753.