Error occours while viewing a revision of a node which is NOT the current revision.

$node = \Drupal::routeMatch()->getParameter('node') in class AddToAnyBlock returns an int value instead of an object.

Function addtoany_create_node_buttons in addtoany.module just checks if $node is isset to get $node->url.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

beutlerk created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Needs review
FileSize
1.73 KB

This patch should resolve the issue.

  • samuel.mortenson authored ff9c059 on 8.x-1.x
    Issue #2855283 by samuel.mortenson: Error while viewing a history...
micropat’s picture

Status: Needs review » Fixed

Fixed in 8.x-1.x-dev and will be fixed in the 8.x-1.8 release.

Thanks for reporting @beutlerk, and for the patch @samuelmortenson!

Status: Fixed » Closed (fixed)

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