Backrgound shape | Mage H.D.

How to fix Deprecated Functionality: Function mcrypt_module_open() is deprecated in Magento 2

Fix m-crypt module open is deprecated | Mage H.D.

Table of Contents

If you’re like me, you prefer to keep things updated as often as possible. Besides, keeping things updated is a part of preventing security breaches and taking advantage of bug fixes. Unfortunately, this can cause a headache with Magento 2.

The issue

Magento 2 fails to load and reports 1 exception(s):Exception #0 (Exception): Deprecated Functionality: Function mcrypt_module_open() is deprecated.

The Solution

This isn’t really a fix but a work around. It appears the mcrypt extension has been deprecated in PHP 7.1. Unfortunately, it appears Magento 2 still utilizes functions derived from the extension. For the time being, you will need to revert to PHP 7.0.

If you would like to see any additional changes, check out the PHP 7.1 change log Here

Related Articles

Start your Free SEO audit

Let's locate your SEO issues.

 | Mage H.D.