Cannot view data encrypted with profile of deleted role

Created on 9 August 2016, almost 8 years ago
Updated 18 April 2024, 2 months ago
  1. I encrypted a field with a role profile.
  2. I deleted the role.
  3. I attempted to view the data.

Here's what happened:

TypeError: Argument 5 passed to Drupal\field_encrypt\FieldEncryptProcessEntities::processValue() must implement interface Drupal\encrypt\EncryptionProfileInterface, null given, called in /path/to/drupal/modules/contrib/field_encrypt/src/FieldEncryptProcessEntities.php on line 206 in Drupal\field_encrypt\FieldEncryptProcessEntities->processValue() (line 271 of modules/contrib/field_encrypt/src/FieldEncryptProcessEntities.php).

Backtrace:

Drupal\field_encrypt\FieldEncryptProcessEntities->processValue(Object, Object, 0, 'value', NULL, '[ENCRYPTED]', 'decrypt') (Line: 206)
Drupal\field_encrypt\FieldEncryptProcessEntities->processField(Object, Object, 'decrypt') (Line: 142)
Drupal\field_encrypt\FieldEncryptProcessEntities->processEntity(Object, 'decrypt') (Line: 118)
Drupal\field_encrypt\FieldEncryptProcessEntities->decryptEntity(Object) (Line: 196)
field_encrypt_entity_storage_load(Array, 'node') (Line: 388)
Drupal\Core\Entity\ContentEntityStorageBase->invokeStorageLoadHook(Array) (Line: 400)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 242)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 188)
entity_load_multiple('node', Array) (Line: 1521)
Drupal\views\Plugin\views\query\Sql->loadEntities(Array) (Line: 1444)
Drupal\views\Plugin\views\query\Sql->execute(Object) (Line: 1412)
Drupal\views\ViewExecutable->execute(NULL) (Line: 1440)
Drupal\views\ViewExecutable->render() (Line: 170)
Drupal\views\Plugin\views\display\Page->execute() (Line: 1615)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 78)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func(Array, Array) (Line: 381)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 62)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 98)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 77)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 628)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada colan Toronto πŸ‡¨πŸ‡¦

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024