Error when updating pager_heading in Views Module - "A valid cache entry key is required. Use getAll() to get all table data"

Created on 29 August 2024, 4 months ago

Problem/Motivation

When I try to run 'drush updb', the update fails with the following error:

> [notice] Update started: views_post_update_pager_heading
> [warning] Undefined array key "reverse__node__field_facility" HandlerBase.php:725
> [warning] Trying to access array offset on null HandlerBase.php:725
> [warning] Trying to access array offset on null HandlerBase.php:725
> [error] A valid cache entry key is required. Use getAll() to get all table data.
> [error] Update failed: views_post_update_pager_heading
[error] Update aborted by: views_post_update_pager_heading
[error] Finished performing updates.

Steps to reproduce

Simply update your codebase 10.3 (composer update) and run 'drush updb'

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component
ViewsΒ  β†’

Last updated 27 minutes ago

Created by

πŸ‡ΊπŸ‡ΈUnited States xandermar Milton, Delaware

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

Comments & Activities

  • Issue created by @xandermar
  • Quite a few sites have already taken that upgrade so there must be some more steps to reproduce. I think in HandlerBase:getEntityType, $this->getViewsData()->get($relationship['table']) is NULL for a given view configuration. Can you get the stack trace?

    I am linking another issue that was uncovered by this update.

  • πŸ‡ΊπŸ‡ΈUnited States xandermar Milton, Delaware

    @cilefen, Here's the error message from the UI

  • πŸ‡ΊπŸ‡ΈUnited States xandermar Milton, Delaware

    Turns out I had a deprecated View - wish watchdog could have been more clear on the issue.

  • Status changed to Closed: won't fix 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States xandermar Milton, Delaware
  • πŸ‡ΊπŸ‡ΈUnited States rogans

    @xandermar how did you find the deprecated view? Im seeing the same issue trying to upgrade my environment to 10.3.6.

Production build 0.71.5 2024