'email_verify_register_rest' is not a supported key.

Created on 9 April 2024, about 1 year ago
Updated 31 July 2024, 9 months ago

Whenever I try and save the account settings under /admin/config/people/accounts I get the following validation error:

'email_verify_register_rest' is not a supported key.

Many thanks for any help

πŸ› Bug report
Status

Fixed

Version

1.12

Component

Miscellaneous

Created by

πŸ‡­πŸ‡°Hong Kong mrchristophy

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

Merge Requests

Comments & Activities

  • Issue created by @mrchristophy
  • πŸ‡ΊπŸ‡ΈUnited States bradhawkins

    I too can confirm this error. It appears that the issue is with the way the module stores the config settings in the user.mail and user.settings rather than creating a unique config entry for the module. Thus, to fix the error, we have to create a new method for storing the settings.

    This patch requires that you uninstall and reinstall the module, so proceed with proper caution.

    Before applying this patch:

    1. Back up your DB
    2. Backup the email message (if you have customized it)
    3. Make note of your permissions settings (RESTful Web Services)

    Preventing Permissions Errors:

    To Prevent permissions errors, we have to either uncheck all permissions related to this module or apply patch #11 from this thread: https://www.drupal.org/project/drupal/issues/3358586 πŸ’¬ RuntimeException: Adding non-existent permissions to a role is not allowed Active

    Without doing either of these you will get an error when attempting to uninstall.

    Uninstall the Module:

    Uninstall via the UI or Drush

    Clean up old settings:

    Now we need to remove the old settings via Drush:
    drush config:delete user.mail email_verify_register_rest
    drush config:delete user.settings notify.email_verify_register_rest

    Apply the Patch and Reinstall

    Now we can apply the patch and reinstall the module. Reapply your permissions, re-activate the REST endpoints, and update the email message as needed.

  • πŸ‡ΊπŸ‡ΈUnited States bradhawkins

    Here's the patch

  • First commit to issue fork.
  • Status changed to Fixed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States glynster

    Thanks for the patch @bradhawkins. As this was a breaking change it was better to add a schema instead. Please update to the latest version and enjoy.

  • Status changed to Fixed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States glynster
Production build 0.71.5 2024