Problem/Motivation

After installing the module, PHP exception generated and the site is not reachable with:
The entity type gdpr_consent_agreement does not have an "revision_created" entity revision metadata key

Steps to reproduce

install Drupal >9 and install DGPR module

Proposed resolution

EDIT: /gdpr/modules/gdpr_consent/src/Entity/ConsentAgreement.php
AFTER:
* entity_keys = {
* "id" = "id",
* "label" = "title",
* "uuid" = "uuid",
* "uid" = "user_id",
* "langcode" = "langcode",
* "status" = "status",
* "revision" = "revision_id",
* },
ADD THIS:
* revision_metadata_keys = {
* "revision_user" = "revision_user",
* "revision_created" = "revision_created",
* "revision_log_message" = "revision_log"
* },

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork gdpr-3178310

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:

Comments

alfakom created an issue. See original summary.

ohmdesbois’s picture

Work for me with drupal 9.1.4
Thanks !

rohit.agharkar’s picture

Worked for me with Drupal core 9.1.6
Thanks!!

nessunluogo’s picture

StatusFileSize
new696 bytes

I made a patch from @alfakom proposed solution.

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

alexdmccabe’s picture

Status: Active » Fixed

Thanks everyone!

Status: Fixed » Closed (fixed)

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