If you're getting the following error:

[error]  The installed version of the /Crop API/ module is too old to update. Update
to an intermediate version first (last removed version: 8005, installed
version: 8003).

You need to:

  1. install version 2.2 of the module: composer require drupal/crop:2.2
  2. run database updates: drush updb or going to example.com/update.php
  3. install the latest version of the module: composer require drupal/crop

Comments

Nathan Tsai created an issue. See original summary.

nathan tsai’s picture

Issue summary: View changes
nathan tsai’s picture

Issue summary: View changes
birchy82’s picture

I am having a similar issue, I have tried your instructions but it doesn't seem to work.

The installed version of the /Crop API/ module is too old to update. Update to an intermediate version first (last removed version: 8005, installed version: 8004).

joshbudda’s picture

I'm also having the same issue. Was this ever resolved?

dtfabio’s picture

Version: 8.x-2.3 » 8.x-2.x-dev
Status: Closed (works as designed) » Active
StatusFileSize
new84.38 KB
new29.68 KB

I am going to re-open this ticket as I am also still experiencing this problem on the 2.4.0 version of the module and the fix mentioned causes composer to crash so this solution is not usable.

Composer error:
Error when trying the fix mentioned.

Message during updb:
Updb output.

It would be nice if someone could offer a concrete upgrade path so that this error could be fixed.

Occurred on Drupal 10.2.8, PHP 8.1

drdam’s picture

You need to install the 2.3 and make the db update first, and after update to 2.4.

If it's the case, maybe a better "message/communication my be better"

orlandoayeras’s picture

StatusFileSize
new228.29 KB

Same encounter with comment #6 as our site is in Drupal 10.3.x. Although I haven't found any issues in the Crop API but would love to see how can this be fixed on a higher Drupal version as it is giving panic when running `drush updb`

Site info:
Drupal: 10.3.13
PHP: 8.1

guardiola86’s picture

Going back to 2.3 is not an option for me, how can I fix this?