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.
In the file key provider, if the file cannot be found, the error that gets returned is "The file DIR does not exist! Encrypt cannot retrieve encryption key." DIR is the directory, but it should be the file.
Comment | File | Size | Author |
---|---|---|---|
#3 | encrypt-file-error-msg-2077155-2.patch | 690 bytes | rlhawk |
#1 | key-file-error-2077155-0.patch | 717 bytes | rlhawk |
Comments
Comment #1
rlhawkHere's a patch that fixes that error message.
Comment #1.0
rlhawkChanged DIR placeholder in error message.
Comment #2
rlhawkNote that without the patch from Issue #2077147, the error message will contain a double slash (//) if the directory entered in settings has a trailing slash.
Comment #2.0
rlhawkChanged references to directory names and file names.
Comment #3
rlhawkHere's a slightly-better patch.
Comment #4
crashtest_ CreditAttribution: crashtest_ commentedWhen tested with encrypt_password, I tested by encrypting all of the passwords from one role, then moved the key file, then decrypted and encrypted the same passwords. I received the following error (does not include directory or filename):
It seems it doesn't know the name of the file?
Comment #5
rlhawkCrashTest_, I'm not able to replicate your experience and I'm not really clear on what you did. How were you able to decrypt the passwords with the key file moved?
Comment #6
crashtest_ CreditAttribution: crashtest_ commentedNot sure what part of my configuration caused this to happen like this, but on a fresh install with everything patched, I get the expected results.
Comment #7
rlhawkThis is committed.