Attempt to use "Adds Tracking Category" processor in a Strategy gives Serialization error

Created on 22 January 2025, about 1 month ago

Problem/Motivation

When adding a Strategy, clicking the "Adds Tracking Category" option gives an error, and no "Adds Tracking Category" processor is added in the list below.

The error reads "Oops, something went wrong. Check your browser's developer console for more details." The message in the logs is:

Exception: Serialization of 'Closure' is not allowed in serialize() (line 14 of /home/....../web/core/lib/Drupal/Component/Serialization/PhpSerialize.php).
#0 /home/..../web/core/lib/Drupal/Component/Serialization/PhpSerialize.php(14): serialize()
#1 /home/..../web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(129): Drupal\Component\Serialization\PhpSerialize::encode()
#2 /home/..../web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(145): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->doSetWithExpire()
#3 /home/..../web/core/lib/Drupal/Core/Form/FormCache.php(193): Drupal\Core\KeyValueStore\DatabaseStorageExpirable->setWithExpire()
#4 /home/..../web/core/lib/Drupal/Core/Form/FormBuilder.php(463): Drupal\Core\Form\FormCache->setCache()
#5 /home/..../web/core/lib/Drupal/Core/Form/FormBuilder.php(441): 

Steps to reproduce

Go to /admin/commerce/config/xero/strategy/add
Click the "Adds Tracking Category" toggle.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

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