'Warning: Illegal offset type in node_access() (line 2857 of /[path]/modules/node/node.module)'

The error message is shown 9 times. When the field is removed from the view, the messages disappear.

CommentFileSizeAuthor
#1 1320942.patch2.6 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs work
FileSize
2.6 KB

Oh that's really not that easy as it seems to be.

The problem is that views_handler_field_entity does not support loading from revisions at the moment so things fails.

Here is a patch which has to be applied on top of the underlying problem

herve’s picture

Thanks for the patch, it works like a charm.
Is this patch will be include in the next official release of Views please?

rooby’s picture

@dereine:
I assume you would prefer fix the views_handler_field_entity problem rather than patch on top of it?

dawehner’s picture

Yes fixing it on a deeper level might help, though things could be frustrating when acting with revisions.

tim.plunkett’s picture

rooby’s picture

Thanks for the link Tim.

@dereine:
Did you want to (or want someone to) pursue #4 or are you happy to close this as a duplicate of #1344946: Recoverable fatal error: Object of class stdClass could not be converted to string in translation_supported_type()?

rooby’s picture

Actually, with the patches in #1475640: Content Revision Delete and Revert links do not render having been committed that should do it right?

dawehner’s picture

Status: Needs work » Fixed

This makes sense, let's mark it as fixed as well.

Status: Fixed » Closed (fixed)

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