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:
- install version 2.2 of the module:
composer require drupal/crop:2.2 - run database updates:
drush updbor going toexample.com/update.php - install the latest version of the module:
composer require drupal/crop
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | crop_api_error_via_composer.jpg | 228.29 KB | orlandoayeras |
Comments
Comment #2
nathan tsai commentedComment #3
nathan tsai commentedComment #4
birchy82 commentedI am having a similar issue, I have tried your instructions but it doesn't seem to work.
Comment #5
joshbudda commentedI'm also having the same issue. Was this ever resolved?
Comment #6
dtfabio commentedI 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:

Message during updb:

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
Comment #7
drdam commentedYou 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"
Comment #8
orlandoayeras commentedSame 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
Comment #9
guardiola86 commentedGoing back to 2.3 is not an option for me, how can I fix this?