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

Asked

Viewed 1,000 times

1

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

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

My PHP version is 5.4.17. and I’m on a Macbook Pro with Mavericks.

Can anyone tell me how to fix?

2 answers

1

Check that in your php.ini file there is more than one call to the mcrupt extension. Look for extension=mcrypt in the archive.

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 inside this directory can have multiple configuration files separated by module like: 20-mcrypt.ini 20-mysql.ini mcrypt.ini.

I hope I’ve helped.

  • The existence of more than one line carrying extensions in PHP configuration files is what usually causes this error.

0

There seems to be something in your php.ini. I could check if mcrypt is loaded twice in it?

To find out your php.ini path:

<?php phpinfo(); ?>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.