Ir al contenido principal

Error Use of undefined constant MCRYPT_RIJNDAEL_128

Escrito por Javier Galeote

Si vemos en PrestaShop 1.6 el siguiente error:

Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP)

Hay que correr el comando Mysql:

UPDATE `ps_configuration` SET `value` = '0' WHERE `name` = 'PS_CIPHER_ALGORITHM';

O bien quitar la opción "Algoritmo: Utilizar Rijndael con la librería mcrypt" en:

Parámetros avanzados - Rendimiento - Cifrado

Finalmente cambiaremos la versión de PHP del hosting de 5.6 a 7.0 y el error no debería aparecer.

¿Ha quedado contestada tu pregunta?