Fatal error: Call to undefined function mcrypt_encrypt()
What had worked for me with PHP version 5.2.8, was to open up php.ini
and allow the php_mcrypt.dll
extension by removing the ;
, i.e. changing:
;extension=php_mcrypt.dll
to extension=php_mcrypt.dll
can't find mcrypt = Call to undefined function Laravel\mcrypt_create_iv()
You need to enable it in your php.ini
file as well and probably restart Apache.
In php.ini
you will find ;mcrypt.so
and remove the ;
from it.
Or, if it's not in there, just add mcrypt.so
somewhere.
Also the salt option has been deprecated as of PHP 7.0.0. It is now preferred to simply use the salt that is generated by default.
Call to undefined function mcrypt_decrypt() - even when php5-mcrypt installed
Installing is one thing. Enabling is another. Please make sure your /etc/php.ini
file contains the following line :
extension=mcrypt.so
If you can't find your php.ini
, create a test.php
file containing :
<?php phpinfo(); ?>
Execute it with php test.php | grep ".ini"
, and you'll find the paths to your ini files. One of them must include the extension=
line above.
Call to undefined function mcrypt_module_open
It's probably due to your magento version not being compatible with your php version.
php - Fatal error: Call to undefined function mcrypt_get_iv_size() in AppServ
in case of php-7:
sudo apt-get install mcrypt php7.1-mcrypt
Related Topics
PHP Preg_Match - Only Allow Alphanumeric Strings and - _ Characters
How to Display All the Images Stored Inside a Database
Display Single Column Value of MySQLi Query
Checking for Empty Arrays: Count VS Empty
Setting Up a Ubuntu/Apache/PHP MAChine to Send Email
How to Add Additional PHP Versions to Mamp
PHP Filter_Validate_Email Does Not Work Correctly
Preparing PHP Application to Use with Utf-8
Find Duplicate Value in Multi-Dimensional Array
How to Get List of Defined Namespaces
How to Run Composer from Anywhere
Mssql Query Issue in PHP and Querying Text Data
PHP How to Go One Level Up on Dirname(_File_)
How to Implement MVC from Scratch in PHP
How to Get All Keys of an Multi Level Associative Arrays in PHP