Hi- Hoping someone can help!

I'm trying to upgrade a Drupal 8.8.1 site, eventually to D9, but initially to 8.8.4 (which I read somewhere is a needed waypoint for some module). After backing up and manually moving the new core+ files in place, it crashes with the error "'CommerceGuys\Addressing\AddressInterface' not found". Addressing is a library required for the Address module, which is required for Commerce, etc.

According to the Address module info, manual installation isn't possible, so I tried using Composer to reinstall/upgrade Address, but I'm getting this error:

- drupal/core-project-message 8.8.4 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.2.0] but it does not match the constraint.

I get the same error indicating other plugins: composer/installers, drupal/core-composer-scaffold, and drupal/core-vendor-hardening. Seems to not like Composer v2.x. (I assume the version of composer-plugin-api is tied to the version of Composer.)

So I tried installing Composer v1.x, but it's running out of memory "Updating dependencies (including require-dev)". This is a shared hosting situation, and they've upped the memory limit to 2GB, but it's still halting.

So I'm stuck. Should I ask for even more memory? Is there a way to get Composer to update dependencies a little at a time? Is there a way to downgrade composer-plugin-api while using Composer v2.x? Is there actually a manual way to install the missing library, until the site is upgraded to where it can use Composer 2? Other ideas?

Any advice would be greatly appreciated! Thanks!

Comments

jaypan’s picture

You need to use to Composer 2. The composer installers plugin needs updating after you update to composer 2. Then you should be able to update your other modules.

Contact me to contract me for D7 -> D10/11 migrations.

Eggsalad’s picture

Thank you! I actually requested more memory (3GB total), which worked, and eventually went back to Composer 2.