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
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:
-
Create a customer account with a valid address.
-
Go to Admin > Stores > Configuration > GENERAL > General > Store Information and add a valid address.
-
Go to Admin > Stores > Configuration > SALES > Shipping settings > Origin and add a valid address.
-
Go to Admin > Stores > Configuration > SALES > Delivery methods > UPS and configure UPS.
-
Place an order using UPS.
-
Remove the UPS user ID and password from
core_config_data
in the database. -
Clean config cache.
-
Open the created order in the Admin.
-
Create a new shipment.
- Select the Create Shipping Label checkbox.
- Click Submit shipment.
- Add the product to a package. Specify the package size (Length, Width, and Height).
- 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.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.