Ultimate cron is incompatible with Drupal 9

Created on 18 November 2024, 2 months ago

Problem/Motivation

Updating ultimate cron module on a Drupal 9 site then running drush updb will result in the following error:

 [error]   (Currently using Incompatible module The following module is installed, but it is incompatible with Drupal 9.5.11:
 * Ultimate Cron

Review the  suggestions for resolving this incompatibility [1] to repair your 
installation, and then re-run update.php.

This is because there's a core version requirement mismatch between ultimate_cron.info.yml and composer.json introduced by Issue #3435200: Automated Drupal 11 compatibility fixes for ultimate_cron 📌 Automated Drupal 11 compatibility fixes for ultimate_cron Fixed .

Composer will allow updating ultimate cron to 8.x-2.0-alpha8 on a Drupal 9 site while the info file has a different core version requirement.

Since I believe 8.x-2.0-alpha8 is still actually compatible with Drupal 9, we need to update the core_version_requirement in the info file to match what's in composer.json.
If I'm mistaken, and 8.x-2.0-alpha8 is incompatible with Drupal 9, then we need to do the opposite and update the required core version in composer.json.

Steps to reproduce

  1. With a Drupal 9 site.
  2. Update ultimate cron with composer.
  3. Notice how ultimate cron will be updated to 8.x-2.0-alpha8 without any issue.
  4. Run drush updb.
  5. Notice the error.

Proposed resolution

Match core version requirement in ultimate_cron.info.yml with what's in composer.json.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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