When pulling in the Commerce Shipping (8.x-2.5) via composer, the commerce_shipping.install appears to have a duplicated update hook, specifically commerce_shipping_update_8207().

See attached screenshot for error message.

The duplicated hook doesnt appear to be in the downloadable tarball for 8.x-2.5.

Comments

hiraethmarkb created an issue. See original summary.

hiraethmarkb’s picture

Follow up:

After doing a bit of digging with a colleague, we wonder if this might be composer issue in some way. The repository code has no duplicate, see: https://git.drupalcode.org/project/commerce_shipping/-/blob/8.x-2.5/comm...

jsacksick’s picture

Yeah, it's not in the repo, this might be due to a pach applied to your project...

hiraethmarkb’s picture

My apologies, the problem is caused by a patch.

For reference if anyone experiences a similar issue, the patch in question is https://www.drupal.org/project/commerce_shipping/issues/3263586#comment-....

The best thing to do would be to update your composer.json:

  1. Remove the above patch.
  2. Update the line containing:
    "drupal/commerce_shipping": "^2.4",
    to read:
    "drupal/commerce_shipping": "^2.5",
jsacksick’s picture

Status: Active » Closed (cannot reproduce)