- Issue created by @dabley
- First commit to issue fork.
- Merge request !5Issue #3501491 by mradcliffe: Fixes serializability of processer plugin form β (Open) created by mradcliffe
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):
Go to /admin/commerce/config/xero/strategy/add
Click the "Adds Tracking Category" toggle.
Active
2.0
Code