The block visibility condition assumes there will be an existing revision if the node object is not empty when the condition is checked. This is not guaranteed to be true. If the node object is not empty and there's no revision, it causes a fatal error. This is happening on Panopoly and a child distribution; there may be other cases where the node object is not empty but there is not an existing revision.
composer create-project panopoly/panopoly-composer-template:10.x-dev panopoly3 --no-interaction
drush -y si panopoly
Check to make sure the revision ID exists before trying to get the published status.
MR and test.
None.
None.
None.
Active
1.0
Code