Steps to reproduce this error:
1.Create a new voting api field
2.Set Usefull Widget
3.Go to Manage Display

This error appears
Fatal error: Declaration of Drupal\votingapi_widgets\Plugin\votingapi_widget\UsefulWidget::buildForm($entity_type, $entity_bundle, $entity_id, $vote_type, $field_name, $style, $show_results, $read_only = false, $show_own_vote = false) must be compatible with Drupal\votingapi_widgets\Plugin\VotingApiWidgetInterface::buildForm($entity_type, $entity_bundle, $entity_id, $vote_type, $field_name, $settings) in /var/www/html/web/modules/contrib/votingapi_widgets/src/Plugin/votingapi_widget/UsefulWidget.php on line 20

Comments

nkoporec created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
StatusFileSize
new1.15 KB

Created a patch which fixes this error.

useernamee’s picture

Status: Needs review » Reviewed & tested by the community

I have tested the patch and it fixes fatal error.

Merlin Tribukait’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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