A valid cache entry key is required. Use getAll() to get all table data

Created on 3 July 2024, 4 months ago
Updated 18 September 2024, about 1 month ago

Problem/Motivation

A valid cache entry key is required. Use getAll() to get all table data. (core/modules/views/src/ViewsData.php:137)

Steps to reproduce

This happened on quite a few views, but probably the easiest way to reproduce is grabbing `admin_views`
Install the comment module

-> D7 Views broken - [View : admin_views_comment] - [Display : system_2] - filters -> title -> Relationship (nid) Not found in display.But found in default display.
[warning] Undefined array key "nid" HandlerBase.php:724
[warning] Trying to access array offset on value of type null HandlerBase.php:724
[warning] Trying to access array offset on value of type null HandlerBase.php:724
[error] A valid cache entry key is required. Use getAll() to get all table data. (/var/www/html/public/core/modules/views/src/ViewsData.php:137)

I am going to exclude that view from migrating but it should be easy to reproduce the error.

Proposed resolution

Default the cache entry key?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

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

Comments & Activities

Production build 0.71.5 2024