- Status changed to Closed: duplicate
about 2 years ago 4:58pm 16 January 2023
When adding a new key, the following error is thrown, when running PHP 8.1+
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\key\Plugin\KeyType\EncryptionKeyType->validateKeyValue() (line 124 of modules/contrib/key/src/Plugin/KeyType/EncryptionKeyType.php).
Attempting to add a new key and submit the form at /admin/config/system/keys/add.
Type Settings
Key Type: Encryption
Key Size: 256
Provider Settings
Key Provider: Environment
Environment Variable: EXAMPLE_ENCRYPTION_KEY
Error can occur when:
Do not pass NULL value as instructed in the error message.
Closed: duplicate
1.16
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.