[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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
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

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:

  1. Log in to the Admin.
  2. Go to Stores > Attributes > Customer.
  3. Edit the dob attribute code.
    • Set Show on Storefront to Yes.
  4. Click Save Attribute.
  5. Go to Stores > Settings > Configuration > General > Locale Options.
    • Set Locale to Arabic (Saudi Arabia).
  6. Go to the storefront.
  7. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3