Cannot use object of type stdClass as array in sites/all/modules/views_content_cache/plugins/views_content_cache/node.inc on line 19

I think

elseif ($object_type === 'comment' && !empty($object['nid']) && ($node = node_load($object['nid']))) {

should be

   elseif ($object_type === 'comment' && !empty($object->nid) && ($node = node_load($object->nid))) {

Comments

Roulion’s picture

I tried this patch and it's OK

mstef’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new615 bytes

Looks good to me -- here's an actual patch for it.

steven jones’s picture

Status: Reviewed & tested by the community » Fixed

Thanks very much for the patch, I've added it to the 7.x-3.x branch.

Status: Fixed » Closed (fixed)

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