Operations list in UI module throws WSOD if scripts can not longer be run

Created on 15 January 2025, 3 months ago

Problem/Motivation

When I enabled the codit_batch_operations_ui module and went to /admin/config/development/batch_operations/operations, I got a WSOD, telling me

Drupal\Core\Entity\Query\QueryException: 'field_mental_health_phone' not found in Drupal\Core\Entity\Query\Sql\Tables->ensureEntityTable() (line 432 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php).

It is true that the field in question is now gone, as we ran the script to migrate content from one field to another and eventually removed the original field.

It's possible that I'm thinking of the UI module incorrectly and that the only time we would want to enable it would be for scripts we would want to run again.

If not, I'd like there to be a way to see the operations list without having to keep all of the old fields around. Conversely, I'd like to be able to load the operations page, even if we have to show the scripts as having errors now, rather than a WSOD.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States skyriter

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024