I have an issue with the reindex of Magento. I have try to do this with the terminal and this is the response error

  Notice: Use of undefined constant MCRYPT_RIJNDAEL_256 - assumed 'MCRYPT_RIJ  
  NDAEL_256' in /Applications/MAMP/htdocs/Magentooo/vendor/magento/framework/  
  Encryption/Encryptor.php on line 394

Is there somebody who can help me with this issue?

  • please check mcrypt is installed or not :: php -m | grep mcrypt Oct 5, 2018 at 5:06
  • @AdityaShah I checked if the mcrypt is loaded and this is true. Oct 5, 2018 at 11:31

1 Answer 1


Magento 2 does not support PHP 7.2. Are you using PHP 7.2? If so, mcrypt is disabled in that version and Magento 2 doesn't yet fully support libsodium, its replacement.

There is a github for that however: https://github.com/magento-engcom/php-7.2-support.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.