The Encrypt Library Requires The Mcrypt Extension Mac

  
  1. The Encrypt Library Requires The Mcrypt Extension Mac Os
  2. The Encrypt Library Requires The Mcrypt Extension Mac Mojave
11-25-2014, 08:46 AM

Typically, the logfile will contain a series of status messages sent by myFunction. But since the upgrade to CI 2.2, the logfile contains only the output of the mcrypt extension error: 'The Encrypt library requires the Mcrypt extension.' So maybe it's a configuration problem after all?

  1. So if you log into phpMyAdmin and it says Cannot load mcrypt extension. Please check your PHP configuration, then you have to do the following: Go to.path to XAMPP. Apache bin php.ini and cahnge Code: Select all;extension=phpmcrypt.dll;extension=phpmcryptfilter.dll to extension=phpmcrypt.dll extension=phpmcryptfilter.dll.
  2. Dependencies; Release 1.0.4: PHP Version: PHP version 8.1.0 or older PHP Version: PHP 7.2.0 or newer PEAR Package: PEAR 1.4.0 or newer Release 1.0.3: PHP Version: PHP.
(11-25-2014, 08:38 AM)Chroma Wrote:
(11-21-2014, 09:41 AM)marksalvatore Wrote: Codeigniter 2.2 displays error, “The Encrypt library requires the Mcrypt extension.”
I’m running PHP 5.6.2 (via MAMP) on Yosemite 10.10.1.
Phpinfo says mcrypt is enabled. The php log shows no error. Apache log shows no error. This issue occurs only in my local environment. My dev and production environments don’t throw the error (Ubuntu 11.10)
I know this has been a common snag with the CI 2.2 upgrade, but mcrypt problems appear resolved when PHP is upgraded, or mcrypt is installed. What am I missing?

I don't know if this is related to your problem, but when I upgraded to CI 3.0, I found a bug in the CI library, which was very kindly fixed for me.
https://github.com/bcit-ci/CodeIgniter/issues/3317
This might be what you are seeing, and XAMPP and MAMP are not massively different.

Your issue was with a library that doesn't even exist in CI 2.2, it has nothing to do with this.
Hello everyone!
I have posted this topic to explain to anyone who might have been as confused as i was for a while on how to setup mcryt, because sincerily there arn't many recent topics explaining this.
so if you log into phpMyAdmin and it says Cannot load mcrypt extension. Please check your PHP configuration, then you have to do the following:
The Encrypt Library Requires The Mcrypt Extension MacGo to *path to XAMPP*Apachebinphp.ini and cahnge
The encrypt library requires the mcrypt extension mac os
Code: Select all
;extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll
to
extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll

The Encrypt Library Requires The Mcrypt Extension Mac Os

Now go to *path to XAMPP*phpphp.ini and change
Code: Select all
;extension=php_mcrypt.dll
;extension=php_mcrypt_filter.dll
to
extension=php_mcrypt.dll
extension=php_mcrypt_filter.dll

Save both files, close and voila!
that should make mcrypt work now

The Encrypt Library Requires The Mcrypt Extension Mac Mojave

P-S: For those of you that are REALLY new to this, you are basically only taking the semi-colons ( ; ) off from the begining of the line.