Closed (outdated)
Project:
Field Encryption
Version:
8.x-2.0-alpha1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2019 at 10:00 UTC
Updated:
29 Sep 2022 at 01:00 UTC
Jump to comment: Most recent
Comments
Comment #2
makbul_khan8 commentedStill this issue persist, can someone please help to resolve this.
Comment #3
ytsurkCan you please specify in what circumstances this occurs?
Running cron is too broad. Was does the cron job do? What fields are encrypted?
My first guess is that $original_encryption_settings is not set, as needed in batch.
Comment #4
makbul_khan8 commentedAfter enabling field_encrypt on existing site and enabling 'Field Encryption' on user account fields, all existing field data needs to be encrypted via cron job (admin/config/system/field-encrypt/field-update). This is where I am getting below errors.
TypeError: Argument 5 passed to Drupal\field_encrypt\FieldEncryptProcessEntities::processValue() must implement interface Drupal\encrypt\EncryptionProfileInterface, null given, called in /var/www/html/docroot/modules/contrib/field_encrypt/src/FieldEncryptProcessEntities.php on line 201 in Drupal\field_encrypt\FieldEncryptProcessEntities->processValue() (line 266 of /var/www/html/docroot/modules/contrib/field_encrypt/src/FieldEncryptProcessEntities.php)Let me know if this helps you to debug the problem.
Comment #5
makbul_khan8 commentedI am able to fix this issue for my project by deleting cron job for encryption. May be this can helps someone.
Comment #6
ptmkenny commentedI'm closing this issue as outdated because the module now has a 3.0 release with a different architecture. Please open a new issue for the 3.x release if this issue is still occurring.