This article provides a solution for the issue when all error messages on the storefront display with a "+" sign instead of a space. This solution helps error messages remain readable.
Affected products and versions
- Magento Commerce Cloud 2.4.0.
- Magento Commerce 2.4.0.
Issue
Steps to reproduce:
- Go to Create New Account page on the storefront.
- Create a new account using a registered email. The following message is displayed:
There+is+already+an+account+with+this+email+address.+If+you+are+sure+that+it+is+your+email+address,+click+here+to+get+your+password+and+access+your+account.
Cause
The issue is caused by a PHP 7.4.2 issue related to set\read cookies. See PHP BUG #79174 setcookie() encodes space as `+`, but $_COOKIE no longer decodes them.
Solution
To solve this issue, use another version of PHP 7.4.x. PHP 7.4.2 is not supported by Magento 2.4.0.
Related reading
- KB Magento 2.4.0 known issue: Braintree payment methods do not show up in Multiple Addresses checkout
- KB Shipping labels creation known issue in Magento 2.4.0
- KB Magento 2.4.0 known issue - refresh on Customer's Activities does not work
- KB Magento 2.4.0 known issue - Export Tax Rates does not work
- KB Magento 2.4.0 known issue: “Add selections to my cart” button does not work