Warning: Module 'mcrypt' already loaded in Unknown on line 0

1

This error occurs when I open the terminal and run Opencart:

  Warning: Module 'mcrypt' already loaded in Unknown on line 0

My version of PHP is 5.4.17., and I'm on a Macbook Pro with Mavericks.

Does anyone know how to fix it?

    
asked by anonymous 29.01.2014 / 19:19

2 answers

1

Verify in your php.ini file if there is more than one call to the mcrupt extension. Search for extension=mcrypt in the file.

On your platform (Max OS X) I think the PHP configuration file can be found in /private/etc/php.ini, but it depends on your installation.

You can also search for something like /etc/php5/conf.d where within this directory you can have several configuration files separated by module like: 20-mcrypt.ini 20-mysql.ini mcrypt.ini .

I hope I have helped.

    
29.01.2014 / 20:41
0

There seems to be something in your php.ini. Could you check if mcrypt is loaded twice on it?

To find out the path of your php.ini:

<?php phpinfo(); ?>
    
29.01.2014 / 19:23