Problem/Motivation

It seems that the encrypt_kms.install file refers to a function that is not present in Drupal core.

Error: Call to undefined method Drupal\\Core\\Utility\\Error::decodeExceptionWithMessage() in /app/app/modules/contrib/encrypt_kms/encrypt_kms.install on line 61 #0 [internal function]: encrypt_kms_requirements('runtime')\n#1

I'm using version 2.0.0 of the encrypt_kms module and Drupal version 9.5.11.

Steps to reproduce

For the moment I'm not using the encrypt_kms module yet, but the problem occurred when I tried to rebuild the access rights to the nodes.

Am I the only one with this error, or have I missed something?

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

tido created an issue. See original summary.

tido’s picture

Issue summary: View changes

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

shreya_th’s picture

Status: Active » Needs review

Hi @nicksanta,
As per my knowledge i have made changes in encrypt_kms.install file that will allow us to use the encrypt_kms module without encountering the error related to decodeExceptionWithMessage(). Also created MR for this issue . Kindly review the changes.

Thank you.

tido’s picture

I've just tested the MR provided by Shreya_th, it works on my side by applying the patch.

tido’s picture

Here's the patch.

  • jacobbell84 committed 24c05f55 on 2.x authored by tido
    Issue #3391016 by Shreya_th, tido: Undefined method Error::...
jacobbell84’s picture

Status: Needs review » Fixed

Thank you!

Status: Fixed » Closed (fixed)

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