Skip to content

[Issue] fix: customer account create page does not work #35490

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #35442: fix: customer account create page does not work


Description (*)

Fixes this exception which made the create account page unusable:

Exception: Deprecated Functionality: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vendor/magento/module-customer/Block/Widget/Name.php on line 110 in /var/www/vendor/magento/framework/App/ErrorHandler.php:61

Reproduction Steps

This is very easily reproducible by:

  • Setting up a clean Magento 2.4.4
  • In the backoffice, going to Stores > Configuration > Customers > Customer Configuration > Name and Address Options
  • Configuring the following 2 fields:
  • Show Prefix: Optional
  • Prefix Dropdown Options: Mr;Mrs
  • In frontend, going to the create account page
  • You immediately get the error as mentioned in the opening post.

Related Pull Requests

Fixed Issues (if relevant)

none.

Manual testing scenarios (*)

  1. Open the create account page
  2. It should work properly

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: AccountIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions