Problem/Motivation

When trying to add encryption for a field (a plain text field on a user account) with existing data, the cron run fails with the following error: LogicException: Entity type user does not support revisions. in Drupal\Core\Entity\ContentEntityBase->setNewRevision() (line 293 of /var/www/html/contentacms/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

Steps to reproduce

Add a plain text field on a user account, add some data for it in different accounts, then go to Account settings, and add encryption for this field, save the settings. Then run cron manually and it will fail.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

theuni created an issue. See original summary.

theuni’s picture

Issue summary: View changes

alexpott made their first commit to this issue’s fork.

alexpott’s picture

Status: Active » Needs review

  • alexpott committed 6e8da3e on 3.0.x
    Issue #3211716 by alexpott, theuni: Cron run breaks when trying to...
alexpott’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.