Encrypt error with php 8.1

Created on 13 December 2023, over 1 year ago
Updated 2 September 2024, 7 months ago

Problem/Motivation

I'm using Ecrypt together with TFA and Real_Aes. When I'm trying to set TFA to an account I get an error:

TypeError: Drupal\encrypt\EncryptService::encrypt(): Argument #2 ($encryption_profile) must be of type Drupal\encrypt\EncryptionProfileInterface, null given, called in /public_html/modules/contrib/tfa/src/Plugin/TfaBasePlugin.php on line 180 in Drupal\encrypt\EncryptService->encrypt() (regel 77 van /public_html/modules/contrib/encrypt/src/EncryptService.php)

I use this setup on a Drupal 9 website. Since it is working on my local machine running on php 8.1.3 and it is not working on my remote server running on php 8.1 I tried if I also get this error when I change the remote php version to 8.2. Doing this I found out all is working fine using this 8.2 version. So there seems to be a php problem.

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇳🇱Netherlands zebda

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024