ACSD-68759: Customer account creation fails with Arabic (Saudi Arabia) locale when Date of Birth is visible on storefront
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. This patch is available when the Quality Patches Tool (QPT) 1.1.77 is installed. The patch ID is ACSD-68759. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4-p2 - 2.4.4-p16, 2.4.5-p1 - 2.4.8-p3
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
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.
Steps to reproduce:
- Log in to the Admin.
- Go to Stores > Attributes > Customer.
- Edit the dob attribute code.
- Set Show on Storefront to Yes.
- Click Save Attribute.
- Go to Stores > Settings > Configuration > General > Locale Options.
- Set Locale to Arabic (Saudi Arabia).
- Go to the storefront.
- Open the Create an Account page.
Expected results:
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.
Actual results:
-
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
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.