ACP2E-5118:禁用翻译缓存时,不呈现页面生成器预览

ACP2E-5118修补程序修复了在禁用​ Translations ​缓存时Page Builder预览无法呈现的问题。 安装Quality Patches Tool (QPT) 1.1.86时,此修补程序可用。 修补程序ID为ACP2E-5118。 请注意,此问题计划在Adobe Commerce 2.4.10中修复。

受影响的产品和版本

为Adobe Commerce版本创建了修补程序:

  • Adobe Commerce(所有部署方法) 2.4.8-p5

与Adobe Commerce版本兼容:

  • Adobe Commerce(所有部署方法) 2.4.5 - 2.4.9
NOTE
该修补程序可能适用于具有新Quality Patches Tool发行版本的其他版本。 要检查修补程序是否与您的Adobe Commerce版本兼容,请将magento/quality-patches包更新到最新版本,并在Quality Patches Tool:搜索修补程序页面上检查兼容性。 使用修补程序ID作为搜索关键字来查找修补程序。

问题

禁用​ Translations ​缓存时,Page Builder预览无法呈现。

先决条件:

“页面生成器”为必填项。

重现步骤:

  1. 在管理员侧边栏中,转到​Content > Elements > Blocks​并单击​Add New Block。
  2. 输入TEST作为​Block Title,输入test作为​Identifier。 使用页面生成器创建包含文本的行,然后单击​Save & Close。
  3. 转到​Content > Elements > Pages,单击​Add New Page,输入Test作为​Page Title,展开​Content,然后打开页面生成器。
  4. 向页面中添加一行,展开​Add Content,然后将​ Block ​拖入该行。
  5. 打开块设置,单击​Select Block,选择TEST块,保存设置,然后单击页面的​Save & Close。
  6. 转到​System > 工具 > Cache Management,选择​Translations,将​ Actions ​设置为​禁用,然后单击​Submit。 在生产模式下,Disable​操作不可用,请改为运行bin/magento cache:disable translate。
  7. 返回​内容 > Elements > Pages,编辑Test页面,并展开​内容。 在浏览器的网络面板中,检查对pagebuilder/stage/preview/?isAjax=true的响应。

预期的结果:

Page Builder预览呈现,请求返回HTTP 200。

实际结果:

预览请求返回HTTP 500,预览未呈现;Commerce记录异常Required parameter 'theme_dir' was not passed。

应用修补程序

要应用单独的修补程序,请根据您的部署方法使用以下链接:

相关阅读

要了解有关Quality Patches Tool的更多信息,请参阅:

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