ACP2E-4533: Placeholder images fail to load on storefront when URL includes store code
The ACP2E-4533 patch fixes the issue where placeholder images do not load on the storefront when a store code is included in the URL. This patch is available when the Quality Patches Tool (QPT) 1.1.80 is installed. The patch ID is ACP2E-4533. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p10
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
Placeholder images do not load on the storefront when the URL includes the store code.
Steps to reproduce:
- Create an additional website, store, and store view.
- To configure placeholder images in the default scope, in the Admin sidebar, go to Stores > Settings > Configuration.
- In the left panel, expand Catalog and choose Catalog.
- Expand the Product Image Placeholders section to configure placeholder images for the new website scope.
- Create a product with images and assign it to both websites.
- Delete the uploaded product images from the
pub/media/catalog/productfolder. - Open the product on the storefront for both websites.
Expected results:
The non-default website should display the website-specific placeholder images when the actual images are unavailable.
Actual results:
The non-default website displays the default placeholder image, regardless of the placeholder images uploaded for it.
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: A self-service tool for quality patches in the Tools guide.