If some error condition causes the entity_property_info:$langcode cache entry to be an empty array, subsequent calls to entity_get_property_info will return that empty array rather than recognising it's an error condition and rebuilding the cached entry. The code should also prevent setting the cache entry to an empty array. Patch follows.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2629982_2.patch | 1.04 KB | sammys |
Comments
Comment #2
sammys commentedHere is the patch.
Comment #3
neograph734Changing to 'needs review' so people will take a look at your patch ;)
Comment #4
chris matthews commentedThe 3 year old patch in #2 to entity.property.inc applied cleanly to the latest entity 7.x-1.x-dev and (if still relevant) needs review.
Comment #5
david.hughesThe patch in #2 looks solid, fixed a tricky to recreate issue for my organisation's site. Not sure how we ended up in a state where rarely this cache entry could be corrupted, but the results were disastrous.
Patch still applies cleanly to latest 7.x-1.x-dev.