Fatal error on trash overview page

Created on 19 February 2025, 21 days ago

Problem/Motivation

After trashing 1 node I received a fatal error on the trash overview page (/admin/content/trash)

Uncaught PHP Exception Drupal\\Core\\Database\\DatabaseExceptionWrapper: "SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1: INSERT INTO "cache_entity" ("cid", "expire", "created", "tags", "checksum", "data", "serialized") VALUES () ON DUPLICATE KEY UPDATE "cid" = VALUES("cid"), "expire" = VALUES("expire"), "created" = VALUES("created"), "tags" = VALUES("tags"), "checksum" = VALUES("checksum"), "data" = VALUES("data"), "serialized" = VALUES("serialized"); Array\n(\n)\n"

Steps to reproduce

Install module, enable for "content".
Trash a node
Visit "/admin/content/trash"

Proposed resolution

The problem seems to come from the trash module filtering out entities for the persistant cache. When the filtered out entities array becomes empty, we should not pass it through the persistent cache.

Remaining tasks

Review patch.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium weseze

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

Comments & Activities

Production build 0.71.5 2024