ACSD-67908: JavaScript files fail to merge correctly in multi-store setups
The ACSD-67908 patch fixes the issue where JavaScript files fail to merge correctly in multi-store setups. This patch is available when the Quality Patches Tool (QPT) 1.1.73 is installed. The patch ID is ACSD-67908. 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-p5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.8-p3
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
Merged JavaScript files fail to generate correctly in multi-store setups, leading to corrupted files and storefront errors.
Steps to reproduce:
-
Set up 50 or more websites, stores, and store views.
-
Set production mode and skip compilation:
code language-none bin/magento deploy:mode:set production --skip-compilation -
Deploy generated code:
code language-none bin/magento setup:di:compile -
Deploy static content using compact strategy:
code language-none bin/magento setup:static-content:deploy --strategy compact --jobs 10 -
Delete contents of the merged cache folder:
code language-none rm -rf pub/static/_cache/merged/* -
Clear cache:
code language-none bin/magento cache:clean -
Open all store views simultaneously in separate browser tabs or windows.
Expected results:
All JavaScript files merge successfully and the storefront functions without errors.
Actual results:
Some merged JavaScript files are corrupted and do not begin with the correct RequireJS module declaration.
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.