This PHP notice is issued when a renderable has no #markup attribute, but does have a registered render_cache_entity_view_callback function.

Notice: Undefined index: #markup in render_cache_entity_view_callback() (line 165 of sites/all/modules/contrib/render_cache/render_cache.module).

Is this a valid use, and if so, what should render_cache_entity_view_callback() be doing instead?

Comments

fabianx’s picture

This is a valid bug. It happens when a post render cache function is set, but the markup has not yet been rendered (render late option). We should not call the render late option in that case.

fabianx’s picture

Status: Active » Fixed

We have taken care of this when committing the right render cache post render patch.

Only thing that might be needed is to add to docs that render_cache_render_late option does not work together with post render callbacks, but as neither is documented so far, this is a rather moot point.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.