Dependency Injection fixes incomplete

Created on 30 September 2025, 16 days ago
Updated 1 October 2025, 15 days ago

When doing queries the WisskiQueryBase fails to be able to be serialized. This commonly gives the error:
LogicException: Settings can not be serialized. This probably means you are serializing an object that has an indirect reference to the Settings object. Adjust your code so that is not necessary. in Drupal\Core\Site\Settings->__sleep() (line 90 of /opt/drupal/web/core/lib/Drupal/Core/Site/Settings.php).

Doing some research every class that got upgraded with dependency injection might also need DependencySerializationTrait - see https://drupal.stackexchange.com/questions/238217/when-should-i-use-depe....

I fix this for QueryBase, but someone else might have to fix this in any other cases where this occurs.

Cheers!

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇩🇪Germany Knurg

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024