Fix Cacheflush entity status being disabled

Created on 27 April 2023, over 1 year ago
Updated 3 December 2023, 12 months ago

Problem/Motivation

Symfony\Component\HttpKernel\Exception\HttpException: in Drupal\cacheflush\Controller\CacheflushApi->checkError() (line 260 of /code/web/modules/contrib/cacheflush/src/Controller/CacheflushApi.php)

Steps to reproduce

  1. Enable Ultimate Cron, Cacheflush, CacheFfush UI, Cacheflush Entity, and Cacheflush Cron modules
  2. Go to Structure ->Cacheflush ->Add new
  3. Fill out the form, making sure Cron checkbox is checked, and save. (may result in a separate unrelated error)
  4. Go to Ultimate Cron jobs page (/admin/config/system/cron/jobs)
  5. Run the new cron entity. Will result in the error message "This entity is disabled."

Proposed resolution

There doesn't seem to be a way to enable the entity in the entity, so it should be enabled by default via the Cacheflush entity creation form.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kelly.m.jacobs

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

Comments & Activities

Production build 0.71.5 2024