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.

CommentFileSizeAuthor
#2 2629982_2.patch1.04 KBsammys

Comments

sammys created an issue. See original summary.

sammys’s picture

StatusFileSize
new1.04 KB

Here is the patch.

neograph734’s picture

Status: Active » Needs review

Changing to 'needs review' so people will take a look at your patch ;)

chris matthews’s picture

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

david.hughes’s picture

Status: Needs review » Reviewed & tested by the community

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