Can not unvote after update voting_api to 4.x

Created on 10 February 2025, 12 days ago

Problem/Motivation

After update voting_api to 4.x I can't unvote my votes. I get:

TypeError: Drupal\votingapi\VoteResultFunctionManager::recalculateResults(): Argument #3 ($vote_type) must be of type string, null given, called in /var/www/web/modules/contrib/votingapi_reaction/src/VotingApiReactionManager.php on line 223 в Drupal\votingapi\VoteResultFunctionManager->recalculateResults() (строка 117 из /var/www/web/modules/contrib/votingapi/src/VoteResultFunctionManager.php)

Steps to reproduce

Update voting_api to 4.x on existing site. Try to unvote any vote.

Proposed resolution

Update the code. This works both voting_api 3.x and 4.x

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

ivnish Kazakhstan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024