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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | addtoany-revision-2855283-2.patch | 1.73 KB | samuel.mortenson |
Comments
Comment #2
samuel.mortensonThis patch should resolve the issue.
Comment #4
micropat CreditAttribution: micropat commentedFixed 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!