WSOD when trying to add new Mapping

Created on 7 November 2022, about 2 years ago
Updated 15 February 2024, 9 months ago

I have a site with LDAP and Authorization set up. I am using both the authorization_group and the authorization_drupal_roles Module, and so far it has been working fine.

However, today I was trying to add a new mapping (map an additional LDAP-Group to a group on my site) and got the following error:
PHP Fatal error: Drupal\\authorization\\Entity\\AuthorizationProfile::getConsumer(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Drupal\\authorization_group\\Plugin\\authorization\\consumer\\GroupConsumer" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /srv/www/htdocs/modules/contrib/authorization/src/Entity/AuthorizationProfile.php on line 252

I am not aware of any updates, I am using drupal/authorization: 1.0.0-beta6 and drupal/authorization_group: 1.0.0. Switching to the latest dev-Release made no difference.

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom andy inman Gloucestershire, UK

    We're also seeing this error with Authorization - Group 8.x-1.0 when trying to add a group.

    Possibly related modules installed:

    • Drupal Roles Authorization 8.x-1.0-beta6
    • LDAP Authorization Provider 8.x-4.3
    • Group (group) 8.x-1.5

    I need to investigate further, and will post more info when I have it.

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

    Hi @ Andy-Inman and bioschaf,

    Is the issue sporadic or consistent?

    authorization, authorization_group, and ldap have all been updated since this was reported. Does the issue

    I am unsure if this is a problem with the authorization module or authorization_group module. I am the maintainer of both.

  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
  • Hi @bluegeek9

    This is from memory - the issue was on a client site that I'm no longer involved with...

    * Is the issue sporadic or consistent?

    Consistent, but there's some kind of trigger - it typically worked the first time. The site had a lot of group mappings set up (30+ maybe). Adding a mapping worked the first time, but no more.

    ISTR that it would return to a working state after config export/import, even though a new mapping could have been added.

    I did a bit of investigation, and concluded that something was invalid/broken in the FAPI structure obtained by ajax updates triggered by the the "add" button.

    In the end I added a work-around - using a form_alter hook, added a number of empty rows to the form before display. With that it was possible to add new mappings.

    Hope this info is of use, right now I'm not working with this module.

  • Status changed to Postponed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I think a blank mapping in the schema could have caused this. It was fixed. I will leave this open if someone else experiences the problem.

  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024