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.
Problem/Motivation
I have switched to php 8.1 and on the status page gettings the below error about deprecation
Deprecated function : hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in Drupal\acquia_search\EventSubscriber\SearchSubscriber->validateResponse() (line 231 of modules/contrib/acquia_search/src/EventSubscriber/SearchSubscriber .php ).
Comment | File | Size | Author |
---|---|---|---|
#6 | hash-hmac-deprecated.patch | 586 bytes | capysara |
Comments
Comment #2
japerryIf you're getting a null derived key, then the hmac value will be false. I added some checks to ensure the derived key exists before passing it to the comparison. This -should- only occur if you don't have a connection to Acquia search, which would cause a few other issues as well.
Comment #5
capysara CreditAttribution: capysara at Bounteous commentedI just updated to 3.1.0, and I'm hitting this error. Was this fixed in 3.1, or just 3.0?
Comment #6
capysara CreditAttribution: capysara at Bounteous commentedHere's a patch against 3.1. Should I create a new issue for this?