Jump to content

you must install the Mcrypt extension


JoelWebsites

Recommended Posts

From PS .1.6.0.9 controllers/admin/AdminPerformanceController.php:449

 

 

                        array(
                            'id' => 'PS_CIPHER_ALGORITHM_1',
                            'value' => 1,
                            'label' => $this->l('Use Rijndael with mcrypt lib.').(!function_exists('mcrypt_encrypt') ? '' : $warning_mcrypt)
                        ),

 

it looks like a check is being done to decide whether to display the warning.

 

joel, how exactly did you install the mcrypt extension on your server? Also, in the phpinfo output, scroll down a bit more. Do you see something like the first screenshot in this article?

Link to comment
Share on other sites

I had used amazon server i had used sudo yum install memcached in ssh and then you need to load the dynamic extension on the php.ini you can even contact your hosting provider to get this done .. And that is not an infomative message

are we talking about memcache?  or are we talking about mcrypt?

 

According to your screen shot, it appears that mcrypt is installed and enabled, however for some unknown reason the mcrypt_encrypt function is not being found.  Maybe a bug in the php version you are using?  Or maybe the AWS server has some sort of security configured to avoid providing this information.

function_exists('mcrypt_encrypt')

Are you having an issue logging into the back office and front office?  If you are not having issues, then it sounds like mcrypt is working properly, and you can just ignore this 'notice'. 

 

Alternatively, you can change the function_exists statement to use a different mcrypt function during the test.  One that might be located?

Link to comment
Share on other sites

  • 2 weeks later...

I had similar issue with mcrypt ext. on ubuntu and found out it's a reported bug:
 

The current php5-mcrypt package puts the mcrypt.ini in /etc/php5/conf.d which in no longer processed by default.

The correct location for that file is /etc/php5/mods-available

https://bugs.launchpad.net/ubuntu/+source/php-mcrypt/+bug/1240590

 

so I just had to copy it to the correct folder,

sudo php5enmod mcrypt (enable it),

sudo service apache2 restart (restart apache)_

 

this is what worked for me !

Link to comment
Share on other sites

  • 10 months later...

Hi, This is somit using prestashop v1.5.6 English version. and my website is http://www.slmobileprice.com

 

I am trying to configure Performance - Ciphering option but getting error -  The PHP "Mcrypt" extension is not activated on this server.

 

Could you please tell me how to enable Rijndael with mcrypt lib.

 

Mcrypt is faster than our custom BlowFish class, but requires the PHP extension "mcrypt". If you change this configuration, all cookies will be reset.

Algorithm

 Use Rijndael with mcrypt lib. 
 Keep the custom BlowFish class. 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...