Cannot initialize readonly property Drupal\og\Plugin\Condition\GroupType::$groupTypeManager from scope Drupal\Core\Plugin\PluginBase in Drupal\Core\Plugin\PluginBase->__wakeup()

Created on 17 May 2025, 16 days ago

Problem/Motivation

Error: Cannot initialize readonly property Drupal\og\Plugin\Condition\GroupType::$groupTypeManager from scope Drupal\Core\Plugin\PluginBase in Drupal\Core\Plugin\PluginBase->__wakeup() (line 81 of core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php).

Steps to reproduce

Install Og and google_tag modules
Attempt to add a google tag id
You will get this error when submitting the form

Proposed resolution

There is a similar issue here with the membershipManager πŸ› Error: Cannot initialize readonly property Drupal\og\Plugin\Field\FieldWidget\OgComplex::$membershipManager Active and a workaround.
I will provide a patch along the same lines.

πŸ› Bug report
Status

Active

Version

2.0

Component

og.module

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024