The only possible cause of such an error Fatal error: Call to undefined function mcrypt_create_iv()
is that mcrypt
PHP extension is either 1. not loaded or 2. not installed at all.
Things to do:
- make sure the
mcrypt
is installed on the server - if not, install it if possible (if not, ask Your provider to install it for You). - if yes or after installing make sure it is loaded by PHP in
php.ini
- remove the leading semicolon;
from the line;extension=mcrypt...
On Debian system (Debian, (K|U|X)buntu) You can install it using this commands:
sudo apt-get install php5-mcrypt
sudo service apache2 restart