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

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Are you trying to use a token or something from the location field? Also, please try whether it's the same with the dev version.

shinz83’s picture

Not using a token, entering information directly. I'll try out the dev version.

asherry’s picture

@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().

asherry’s picture

Sorry 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.

esod’s picture

Issue summary: View changes

I'm finding that field_location remains an unknown data property. See my comment at https://www.drupal.org/node/1186868#comment-9045753.