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预览无法呈现。
先决条件:
“页面生成器”为必填项。
重现步骤:
- 在管理员侧边栏中,转到Content > Elements > Blocks并单击Add New Block。
- 输入
TEST作为Block Title,输入test作为Identifier。 使用页面生成器创建包含文本的行,然后单击Save & Close。 - 转到Content > Elements > Pages,单击Add New Page,输入
Test作为Page Title,展开Content,然后打开页面生成器。 - 向页面中添加一行,展开Add Content,然后将 Block 拖入该行。
- 打开块设置,单击Select Block,选择
TEST块,保存设置,然后单击页面的Save & Close。 - 转到System > 工具 > Cache Management,选择Translations,将 Actions 设置为禁用,然后单击Submit。 在生产模式下,Disable操作不可用,请改为运行
bin/magento cache:disable translate。 - 返回内容 > Elements > Pages,编辑
Test页面,并展开内容。 在浏览器的网络面板中,检查对pagebuilder/stage/preview/?isAjax=true的响应。
预期的结果:
Page Builder预览呈现,请求返回HTTP 200。
实际结果:
预览请求返回HTTP 500,预览未呈现;Commerce记录异常Required parameter 'theme_dir' was not passed。
应用修补程序
要应用单独的修补程序,请根据您的部署方法使用以下链接:
- Adobe Commerce或Magento Open Source内部部署: Quality Patches Tool指南中的Quality Patches Tool >使用情况
- 云基础架构上的Adobe Commerce: Commerce on Cloud Infrastructure指南中的升级和修补程序>应用修补程序
相关阅读
要了解有关Quality Patches Tool的更多信息,请参阅:
recommendation-more-help
commerce-operations-help-tools