Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Follow-up to #2828846: Add the option of editing the Lingotek locale on language forms. After that change, Drupal language form throws an exception when downloading translations. This only happens when downloading translations is enabled, which is disabled by default in tests. That's why we didn't catch this bug before.
[client ::1:50244] Uncaught PHP Exception Exception: "Serialization of 'Closure' is not allowed" at core/lib/Drupal/Core/Batch/BatchStorage.php line 157, referer: /admin/config/regional/language/add
Proposed resolution
Fix the serialization problem by using function names instead of the closure.
Remaining tasks
Patch with tests.
User interface changes
None.
API changes
None
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2844347-2.patch | 3.87 KB | penyaskito |
| |||
#2 | 2844347-2.only-tests.patch | 1.08 KB | penyaskito |
Comments
Comment #2
penyaskitoModified test for catching the issue, added fix.
Comment #4
penyaskitoPatches passed and failed as expected.
Comment #6
penyaskitoCommitted 64d80aa and pushed to 8.x-1.x. Thanks!