ACP2E-5118: Page Builder preview doesn’t render when Translations cache disabled
The ACP2E-5118 patch fixes the issue where the Page Builder preview fails to render when the Translations cache is disabled. This patch is available when the Quality Patches Tool (QPT) 1.1.86 is installed. The patch ID is ACP2E-5118. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.10.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.8-p5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.9
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
Page Builder preview fails to render when the Translations cache is disabled.
Prerequisites:
Page Builder is required.
Steps to reproduce:
- In the Admin sidebar, go to Content > Elements > Blocks and click Add New Block.
- Enter
TESTas the Block Title andtestas the Identifier. Use Page Builder to create a row containing text, then click Save & Close. - Go to Content > Elements > Pages, click Add New Page, enter
Testas the Page Title, expand Content, and open Page Builder. - Add a row to the page, expand Add Content, and drag Block into the row.
- Open the Block settings, click Select Block, choose the
TESTblock, save the settings, and click Save & Close for the page. - Go to System > Tools > Cache Management, select Translations, set Actions to Disable, and click Submit. In production mode, where the Disable action is unavailable, run
bin/magento cache:disable translateinstead. - Return to Content > Elements > Pages, edit the
Testpage, and expand Content. In the browser’s Network panel, check the response topagebuilder/stage/preview/?isAjax=true.
Expected results:
The Page Builder preview renders, and the request returns HTTP 200.
Actual results:
The preview request returns HTTP 500 and the preview does not render; Commerce logs the exception Required parameter 'theme_dir' was not passed.
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