Closed
Description
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 (*)
- Open the create account page
- 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)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Activity