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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | votingapi_reaction--2025-07-16--mr-9.patch | 1.84 KB | michal.magdziarek |
Issue fork votingapi_reaction-3505503
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ivnishThe new code does not affect the pipeline warnings
Comment #4
michal.magdziarek commentedAttached a static patch file for this point
Comment #7
elaman