[error] The installed version of the /Entity Usage/ module is too old to update.

Created on 10 June 2025, 23 days ago

Problem/Motivation

I was not able to find another issue or documentation about this error, so I am creating this issue as the documentation for the error.

After upgrading from beta7 to beta24 the following error is shown:

[error]  The installed version of the /Entity Usage/ module is too old to update.  
Update to an intermediate version first (last removed version: 8206,  
installed version: 8205).

Steps to reproduce

Upgrade from a pre beta18 version to a post beta18 version (found this after doing some digging)

Proposed resolution

Recommend upgrading to beta17, upgrading, then upgrading to beta24. I am unsure of what would happen for other version upgrades, but others can document the process here.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Other notes

Changes between beta7 and beta18:
https://git.drupalcode.org/project/entity_usage/-/commit/5d6f7577f81b988...
https://git.drupalcode.org/project/entity_usage/-/commit/b68beca16ac3f38...
https://git.drupalcode.org/project/entity_usage/-/commit/05ad6de2bc14391...
https://git.drupalcode.org/project/entity_usage/-/commit/3b297fad7310104...
https://git.drupalcode.org/project/entity_usage/-/commit/3b297fad7310104...
https://www.drupal.org/project/entity_usage/issues/3505658 πŸ“Œ Increase PHPStan level even more Active

πŸ› Bug report
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States ccjjmartin Austin, TX

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

Comments & Activities

  • Issue created by @ccjjmartin
  • πŸ‡ΊπŸ‡ΈUnited States ccjjmartin Austin, TX

    Needs review from others to see if an alternative approach to documentation (example, the modules description, might be more suitable).

  • πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

    Thanks for filing this.

    In -beta18 we did clean up old hook implementations, the most recent one that was removed was a hook introduced in -beta9, so quite old...
    Anyone using a version earlier than -beta9 will indeed need to upgrade to -beta17 first, and then bump to >= -beta18 in a subsequent deployment.

    (That's why it's important to try to be relatively up-to-date with latest versions... )

    In any case, it's true the release notes could indicate this, so I have just edited -beta18 release notes to include this:


    Upgrading from older releases

    In this release we remove old hook implementations from entity_usage.install, in order to simplify maintenance. If you are using a version older than 8.x-2.0-beta9, then you should update to 8.x-2.0-beta17 first, and then in a subsequent deployment update to this (or any release older than -beta18).

    Thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024