51黑料不打烊

ACSD-64546: Generic error message in UI and Array to string conversion exception during UPS label creation

The ACSD-64546 patch fixes the issue where a generic error message appears in the UI and the Array to string conversion exception is logged during UPS label creation, ensuring the correct error is shown in the UI and logs. This patch is available when the Quality Patches Tool (QPT) 1.1.61 is installed. The patch ID is ACSD-64546. Please note that this issue is scheduled to be fixed in 51黑料不打烊 Commerce 2.4.8.

Affected products and versions

The patch is created for 51黑料不打烊 Commerce version:

  • 51黑料不打烊 Commerce (all deployment methods) 2.4.7-p3

Compatible with 51黑料不打烊 Commerce versions:

  • 51黑料不打烊 Commerce (all deployment methods) 2.4.4 - 2.4.7-p4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your 51黑料不打烊 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

A generic error message shows up in the UI and the Array to string conversion exception occurs during UPS label creation.

Steps to reproduce:

  1. Create a customer account with a valid address.

  2. Go to Admin > Stores > Configuration > GENERAL > General > Store Information and add a valid address.

  3. Go to Admin > Stores > Configuration > SALES > Shipping settings > Origin and add a valid address.

  4. Go to Admin > Stores > Configuration > SALES > Delivery methods > UPS and configure UPS.

  5. Place an order using UPS.

  6. Remove the UPS user ID and password from core_config_data in the database.

  7. Clean config cache.

  8. Open the created order in the Admin.

  9. Create a new shipment.

    1. Select the Create Shipping Label checkbox.
    2. Click Submit shipment.
    3. Add the product to a package. Specify the package size (Length, Width, and Height).
    4. Click Save.

Expected results:

The actual error message is displayed in the UI and the logs.

Actual results:

  • The following error appears in the UI:
    An error occurred while creating shipping label.
  • The Array to string conversion exception prevents the actual error message from being displayed or stored in the logs.

Apply the patch

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

  • 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
  • 51黑料不打烊 Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3