Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

EntityMetadataWrapperException: Unknown data property field_grazing_growing_season. #70

Open
Skipper-is opened this issue May 26, 2020 · 5 comments
Labels

Comments

@Skipper-is
Copy link

I've just isntalled Grazing module on FarmOS 1.4, and it is throwing this error when I try to create a new grazing plan.


EntityMetadataWrapperException: Unknown data property field_grazing_growing_season. in EntityStructureWrapper->getPropertyInfo() (line 354 of /var/www/html/farmOS/profiles/farm/modules/contrib/entity/includes/entity.wrapper.inc).
--
@mstenta
Copy link
Member

mstenta commented May 26, 2020

Doh! This is due to a change in farmOS 7.x-1.4 the changed the Season reference field from single-value to multi-value. I really thought that was going to be a simple change, but it's already come back to bite me in numerous places.

@mstenta mstenta added the bug label May 26, 2020
@mstenta
Copy link
Member

mstenta commented May 26, 2020

Oh wait... actually this might be different... need to look deeper.

@mstenta
Copy link
Member

mstenta commented May 26, 2020

@Skipper-is This is strange actually... it implies that the Grazing Plan entity type does not have the field field_grazing_growing_season on it. I am not experiencing this issue when I test locally. Are you using the most recent commit of the farm_grazing module 7.x-1.x branch?

@Skipper-is
Copy link
Author

Yea, using the most recent commit.

@mstenta
Copy link
Member

mstenta commented May 27, 2020

Huh. Can you try doing a full uninstall/reinstall?

Note that "disabling" the module is not the same as "uninstalling". First you disable, then you go to the "Uninstall" tab to uninstall it, and that's what will actually clean up the database, delete entity types and fields, etc.

I'm wondering if maybe something went wrong during the install. Because that field is part of this module, so it should have been created when it was installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants