Problem/Motivation
I was exploring some issues I was having and noticed I hadn't set up an encryption profile yet. When to do so and got the following after the first save:
TypeError: Drupal\drd\EncryptionUpdate::update(): Argument #1 ($old_profile_id) must be of type string, null given, called in /app/web/modules/contrib/drd/src/Form/Settings.php on line 214 in Drupal\drd\EncryptionUpdate->update() (line 69 of /app/web/modules/contrib/drd/src/EncryptionUpdate.php).
Steps to reproduce
New install of Drupal 10
Install Drd
Install real aes
Create your key
create your encryption profile
add a host
go to /drd/cores/add
Click on link in error message to navigate to drd/settings
Select the newly created encryption profile
Proposed resolution
Need to do some error checking over here because $old_profile_id doesn't exist yet.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork drd-3347429
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
generalredneckSimple quick fix. There's no old profile to update from so no need to call EncryptionUpdate.
Comment #6
jurgenhaasNice one, thanks @generalredneck