Notice: Undefined property: FieldCollectionItemEntity::$microdata in microdata_preprocess_field() (line 384 of .../modules/contrib/microdata/microdata.module).
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in microdata_preprocess_field() (line 423 of .../modules/contrib/microdata/microdata.module).
I think this happens when you have entities that were saved before the microdata module was installed. I've worked around the error reports by initialising these arrays at the start of the function, but I'm not sure if that's the "correct" solution.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | microdata-undefined_fieldcollectionitementity-1793546-1.patch | 910 bytes | ianthomas_uk |
Comments
Comment #1
ianthomas_ukHere's my patch that suppress the error messages.
Comment #2
Anonymous (not verified) commentedHave you tried clearing your cache?
Comment #3
ianthomas_ukThanks for the quick response.
I've had microdata installed for a while, but I just tried clearing the cache anyway and it didn't make any difference.
I'm also getting
which may well be related
Comment #4
Anonymous (not verified) commentedI just noticed the "I've had microdata installed for a while" part. I just want to check, have you tested this against the latest dev?
Comment #5
ianthomas_ukI'm running 7.x-1.0-beta1. I've not tested it against dev yet but I did look at the relevant code and didn't see anything to suggest it would be any different. I can do some more in depth testing once I've got the site I'm working on released in a week or so.
Comment #6
Anonymous (not verified) commentedI'm going to switch the Version to reflect that information.