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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. In the Admin sidebar, go to Content > Elements > Blocks and click Add New Block.
  2. Enter TEST as the Block Title and test as the Identifier. Use Page Builder to create a row containing text, then click Save & Close.
  3. Go to Content > Elements > Pages, click Add New Page, enter Test as the Page Title, expand Content, and open Page Builder.
  4. Add a row to the page, expand Add Content, and drag Block into the row.
  5. Open the Block settings, click Select Block, choose the TEST block, save the settings, and click Save & Close for the page.
  6. 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 translate instead.
  7. Return to Content > Elements > Pages, edit the Test page, and expand Content. In the browser’s Network panel, check the response to pagebuilder/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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools