Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
'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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1320942.patch | 2.6 KB | dawehner |
Comments
Comment #1
dawehnerOh 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
Comment #2
herve CreditAttribution: herve commentedThanks for the patch, it works like a charm.
Is this patch will be include in the next official release of Views please?
Comment #3
rooby CreditAttribution: rooby commented@dereine:
I assume you would prefer fix the views_handler_field_entity problem rather than patch on top of it?
Comment #4
dawehnerYes fixing it on a deeper level might help, though things could be frustrating when acting with revisions.
Comment #5
tim.plunkettThis was committed in #1344946-12: Recoverable fatal error: Object of class stdClass could not be converted to string in translation_supported_type()
Comment #6
rooby CreditAttribution: rooby commentedThanks 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()?
Comment #7
rooby CreditAttribution: rooby commentedActually, with the patches in #1475640: Content Revision Delete and Revert links do not render having been committed that should do it right?
Comment #8
dawehnerThis makes sense, let's mark it as fixed as well.