I'm seeing a similar thing elsewhere
Deprecated function: substr(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\key\Plugin\KeyProviderBase::obscureValue() (line 56 of modules/contrib/key/src/Plugin/KeyProviderBase.php).
- Status changed to Needs work
almost 2 years ago 4:58pm 1 February 2023 - 🇵🇹Portugal jcnventura
In the KeyProviderBase::obscureValue() class, there's a few uses of $key_value as a string in lines 66 and 67 which would also need to be checked. The best solution is to actually check whether $key_value is a string at the start of that function and immediately return an empty string ('').
- First commit to issue fork.
- last update
over 1 year ago 8 pass - Status changed to Needs review
over 1 year ago 7:39am 26 May 2023 - 🇮🇳India bharath-kondeti Hyderabad
Addressed #7 and raised an MR. Please review.
- 🇺🇸United States RoloDMonkey
This looks like a duplicate? 🐛 Error: Call to a member function getKeyValue() on null and Deprecated function: strlen(): Passing null to parameter #1 ($string) Active
- Status changed to RTBC
5 months ago 4:32am 14 June 2024 - 🇳🇿New Zealand RoSk0 Wellington
No, it's not duplicate of 🐛 Error: Call to a member function getKeyValue() on null and Deprecated function: strlen(): Passing null to parameter #1 ($string) Active and different error messages proving that.
Reviewed and tested:
- #7 - addressed
- error message gone after applying the patch from the merge request
Thank you.
- First commit to issue fork.
-
rlhawk →
committed 541761db on 8.x-1.x authored by
bharath-kondeti →
Issue #3323238 by bharath-kondeti, karishmaamin, Suresh Prabhu Parkala,...
-
rlhawk →
committed 541761db on 8.x-1.x authored by
bharath-kondeti →
- Status changed to Fixed
5 months ago 1:02pm 1 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.