How to fix the «Email has a wrong format» failure while upgrading Magento from 2.1.x to 2.2.x?

validation
upgrade
email
magento22

(Dmitry Fedyuk) #1

Locate the line:

Add the following line above:

$orderAddress['email'] = $orderAddress['email'] ?: 'empty@empty.com';

How did I upgrade gymstar.ca from Magento 2.1.9 to 2.2.6?