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

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

Share this post

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on print
Share on email



Submit your e-mail for internet business tips and discounts

Get insight on the proper strategy for your project.