MDVA-12304: 503 error on store front and cookie error

This MDVA-12304 Adobe Commerce patch solves 503 errors on store fronts, with Unable to send the cookie. Maximum number of cookies would be exceeded. error message in logs. This is a known Adobe Commerce 2.2.5 issue. This patch is available when the Quality Patches Tool (QPT) 1.0.12 is installed.

Affected products and versions

  • The patch is created for Adobe Commerce version: Adobe Commerce on-premises 2.2.5.
  • Compatible with Adobe Commerce versions: Adobe Commerce (all deployment methods) 2.x.x.
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Customers get a 503 error when navigating the store front. In the var/log/exception.log file there is the following error message Unable to send the cookie. Maximum number of cookies would be exceeded.

The issue occurs because the Adobe Commerce default cookies limit is set to 50, and if the client’s browser hits the limit, Commerce throws an exception. The solution provided in the patch increases the cookie limit to 200.

Steps to reproduce:

The 503 error can display at any point when the customer is trying to log in and view their cart.

In the var/log/exception.log file there is the following error message Unable to send the cookie. Maximum number of cookies would be exceeded.

Actual result: The customer cannot check their cart or complete their order.

Expected result: The customer can check their cart and complete their order.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.

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