ACSD-51884: Product image cache path incorrect on resize command
The ACSD-51884 patch fixes the issue where an internal error where the product image cache path becomes incorrect after running the resize command. This patch is available when the Quality Patches Tool (QPT) 1.1.37 is installed. The patch ID is ACSD-51884. Please note that the issue was fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.7- 2.4.7
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
Product image cache path becomes incorrect on resize command.
Steps to reproduce:
- Create new website/store/storeview.
- Create a product and assign it to both websites and upload the product image.
- Create a new theme (see attached Adobe.zip).
- In
app/design/Adobe/theme/etc/view.xml
change:
<vars module="Magento_Catalog">
<var name="product_image_white_borders">1</var>
</vars>
to
<vars module="Magento_Catalog">
<var name="product_image_white_borders">0</var>
</vars>
- Apply the theme to the previously created storeview.
- Check the product page on the 2nd website. The product image is displayed correctly.
- Use Flush cache:
bin/magento cache:flush
- Check the product page on the 2nd website.
Expected results:
The product image displays correctly.
Actual results:
The product image does not exist.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe 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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.