“500 error” after double-clicking Remove link in shopping cart

This article provides a patch for the known Adobe Commerce on cloud infrastructure 2.2.0 issue related to customers getting error when trying to remove twice a shopping cart item (by double-clicking the Remove link or by clicking it in different tabs).

Issue

When customers double-click the Remove link in the shopping cart, trying to remove a product from the shopping cart, they get a blank page with the following error message: “This page isn’t working. HTTP ERROR 500”. The same issue happens if a customer opens two browser tabs with the shopping cart page and removes the product first in one tab, then in the second one.

Steps to reproduce :

  1. Add a product to shopping cart on the storefront.
  2. Navigate to the shopping cart page.
  3. Double-click the Remove link.

OR

  1. Add a product to shopping cart on the storefront.
  2. Navigate to the shopping cart page.
  3. Open a new browser tab and navigate to the shopping cart page (same product).
  4. Remove the product from the cart.
  5. Open the second tab and remove the product again.

Expected result : The product is removed from the cart without errors.

Actual result : The product is removed with the error: “This page isn’t working. HTTP ERROR 500” error message.

Patch

The patch is attached to this article. To download it, scroll down to the end of the article and click the file name, or click the following link:

Download MDVA-8623_EE_2.2.0_v1.composer.patch

Compatible Adobe Commerce versions:

The patch was created for:

  • Adobe Commerce on cloud infrastructure 2.2.0

The patch is also compatible (but might not solve the issue) with the following Adobe Commerce versions and editions:

  • Adobe Commerce on cloud infrastructure 2.2.1 - 2.2.5
  • Adobe Commerce on-premises 2.2.0 - 2.2.5

How to apply the patch

For instructions, see How to apply a composer patch provided by Adobe in our support knowledge base.

Attached Files

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a