Magento 2.2 and PHP 7.2

Are you facing issues after upgrading magento 2.2 to PHP 7.2? Follow below steps to resolve the same. Migrating Magento 2.2 to server with PHP version 7.2 , many issues faced and so we have approached many files to solve this. Keep patient and follow steps one by one. 1) PHP 7.2 does not contain 4 the mcrypt extension 8. In Debian pecl install mcrypt-snapshot In Windows composer require phpseclib/mcrypt_compat:* 2) Warning: ini_set(): A session is active. You cannot change the session module’s ini settings at this time in lib/internal/Magento/Framework/Session/SessionManager.php on line 129 Replace the lines: lib/internal/Magento/Framework/Session/SessionManager.php #Line128-Line129 // Enable session.use_only_cookies ini_set(‘session.use_only_cookies’, ‘1’); with the following ones: if (!$this->isSessionExists()) { // Enable session.use_only_cookies ini_set(‘session.use_only_cookies’, ‘...