Emoncms Event Module problem [SOLVED]

Hello everyone

Any help from this error when i open Event settings Link

"Fatal error: Call to undefined function mcrypt_decrypt() in /var/www/html/emoncms/Modules/event/event_settings_view.php on line 24"

Am using emonCMS 8.4.0

Thanks

Mandela

HERE IS THE SOLUTION

Note, for Ubuntu, simply installing php5-mcrypt did not get mcrypt to work. You need to execute the following commands as root to enable it:

>apt-get install php5-mcrypt
>mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
>php5enmod mcrypt
>service apache2 restart

If you don't have a /etc/php5/conf.d directory (On Ubuntu 14.04 LTS ), you can simply only do: >php5enmod mcrypt

Should be working fine.