[仅限PaaS]{class="badge informative" title="仅适用于云项目(Adobe管理的PaaS基础架构)和内部部署项目上的Adobe Commerce 。"}
ACSD-68759:当Date of Birth在店面可见时,在阿拉伯语(沙特阿拉伯)区域设置下创建客户帐户失败
The ACSD-68759 patch fixes the issue where the Customer Create an Account page fails to load when the Locale is set to Arabic (Saudi Arabia) and the Date of Birth attribute is displayed on the storefront. 安装Quality Patches Tool (QPT) 1.1.77时,此修补程序可用。 The patch ID is ACSD-68759. 请注意,此问题计划在Adobe Commerce 2.4.9中修复。
受影响的产品和版本
为Adobe Commerce版本创建了修补程序:
- Adobe Commerce (all deployment methods) 2.4.7-p5
与Adobe Commerce版本兼容:
- Adobe Commerce (all deployment methods) 2.4.4-p2 - 2.4.4-p16, 2.4.5-p1 - 2.4.8-p3
magento/quality-patches包更新到最新版本,并在Quality Patches Tool:搜索修补程序页面上检查兼容性。 使用修补程序ID作为搜索关键字来查找修补程序。问题
The Create an Account page fails to load when the Locale is set to Arabic (Saudi Arabia) and the Date of Birth attribute is visible on the storefront, resulting in a TypeError.
重现步骤:
- Log in to the Admin.
- Go to Stores > Attributes > Customer.
- Edit the dob attribute code.
- Set Show on Storefront to Yes.
- 单击Save Attribute。
- Go to Stores > Settings > Configuration > General > Locale Options.
- 将 Locale 设置为阿拉伯语(沙特阿拉伯)。
- 去店面。
- 打开 Create an Account 页面。
预期的结果:
The Create an Account page loads without errors when the Locale is set to Arabic (Saudi Arabia) and the Date of Birth attribute is displayed on the storefront.
实际结果:
-
The Create an Account page does not load.
-
The following error is logged:
code language-none [2025-10-31T02:14:35.029229+00:00] report.CRITICAL: TypeError: iterator_to_array(): Argument #1 ($iterator) must be of type Traversable|array, null given in app/code/Magento/Customer/Block/Widget/Dob.php:421
应用修补程序
要应用单独的修补程序,请根据您的部署方法使用以下链接:
- Adobe Commerce或Magento Open Source内部部署: Quality Patches Tool 指南中的>使用情况Quality Patches Tool。
- 云基础架构上的Adobe Commerce:云基础架构上的Commerce指南中的升级和修补程序>应用修补程序。
相关阅读
要了解有关Quality Patches Tool的更多信息,请参阅: