Error when adding a new field on the user

Created on 5 May 2023, over 1 year ago
Updated 14 June 2023, over 1 year ago

When adding a new field on the user from Configuration -> Account Settings:

WARNING: [pool www] child 1904 said into stderr: "NOTICE: PHP message: PHP Fatal error: Declaration of Drupal\field_permissions_group\Plugin\FieldPermissionType\CustomGroupAccess::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, ?Drupal\field\FieldConfigInterface $field_config = null) must be compatible with Drupal\field_permissions\Plugin\FieldPermissionType\Base::create(Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, ?Drupal\field\FieldStorageConfigInterface $field_storage = null) in /var/www/html/web/modules/contrib/field_permissions_group/src/Plugin/FieldPermissionType/CustomGroupAccess.php on line 70"

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @dalra
  • πŸ‡³πŸ‡ΏNew Zealand jlscott

    The issue has arisen because the current release of field_permissions_group has been developed and tested against field_permissions 8.x-1.2 but with a patch from ✨ Implement field permissions per-bundle (field instance) Needs work applied.

    I will check whether this is necessary for the general case (I required for my use case when developing the module :). If it is not required, then I will refactor the field_permissions_group module to use the unpatched field_permissions module.

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

    I ran into this same error while evaluating the module. This WSOD error happens to me also when trying to edit any fields on any nodes.

Production build 0.71.5 2024