TypeError in RevokeAccess::updateSettings

Created on 14 February 2024, 4 months ago
Updated 29 February 2024, 4 months ago

Problem/Motivation

TypeError: Drupal\eca_content_access\Plugin\Action\RevokeAccess::updateSettings(): Argument #1 ($bundleSettings) must be of type array, bool given, called in /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/GrantAccess.php on line 158 in Drupal\eca_content_access\Plugin\Action\RevokeAccess->updateSettings() (line 20 of /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/RevokeAccess.php)

#0 /var/www/html/web/modules/contrib/eca_content_access/src/Plugin/Action/GrantAccess.php(158): Drupal\eca_content_access\Plugin\Action\RevokeAccess->updateSettings()
#1 /var/www/html/web/modules/contrib/eca/src/Entity/Objects/EcaAction.php(102): Drupal\eca_content_access\Plugin\Action\GrantAccess->execute()
#2 /var/www/html/web/modules/contrib/eca/src/Processor.php(188): Drupal\eca\Entity\Objects\EcaAction->execute()
#3 /var/www/html/web/modules/contrib/eca/src/Processor.php(146): Drupal\eca\Processor->executeSuccessors()
#4 /var/www/html/web/modules/contrib/eca/src/EventSubscriber/EcaBase.php(76): Drupal\eca\Processor->execute()
#5 [internal function]: Drupal\eca\EventSubscriber\EcaBase->onEvent()
#6 /var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#7 /var/www/html/web/modules/contrib/eca/src/Event/TriggerEvent.php(73): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()

Steps to reproduce

  • Install content_access version 2
  • Save a node where access is set with ECA

Proposed resolution

Content access module has converted settings from serialized to json in 2.0.0-rc2 🐛 Getting error page after the latest ACL module security update. Fixed . Do not unserialize settings but use json_decode, instead.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇭Switzerland boromino

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024