Jump to content

Fatal error: Call to undefined function mcrypt_encrypt()


Recommended Posts

Hi everyone,

 

Can anyone please help me;

I did transfer my second website from a sharing hosting onto VPS, I was doing everything exactly the same as with the previous transfer of my other website, but unfortunately now getting this message;

 

Fatal error: Call to undefined function mcrypt_encrypt() in /var/www/vhosts/topshelves.co.uk/httpdocs/classes/Rijndael.php on line 46

 

Any help will be much appreciated.

 

Thanks,

Topshelves

Link to comment
Share on other sites

  • 10 months later...
  • 2 years later...
  • 4 months later...
  • 1 month later...

After upgrade php to php70 i got error:

 

PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt()...

 

If some get same problem for centos 6 and php70 do the following as root on my vps server:

 

service httpd stop

yum install php70-php-mcrypt.x86_64 (use yum list php70-*cryp* to find exact name if this is not exist)

service httpd start

Link to comment
Share on other sites

×
×
  • Create New...