yoyo64 Posted September 5 Share Posted September 5 Bonjour j'ai une erreur sur un module label stiker de FME j'ai prestashop 1.6.1.24 et php 7.2.34 PrestaShop 1.6 utilise encore mcrypt pour le chiffrement (via Rijndael.php). Or, mcrypt a été supprimé à partir de PHP 7.2 → j'ai installe le module mais il fonctionne pas dans l'onglet produit en mode dev j'ai Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /home/site4265/web/www/classes/Rijndael.php on line 124 dans /config/defines_custom.inc.php j'ai deja define('_RIJNDAEL_KEY_', 'I0Vhz................ define('_RIJNDAEL_IV_', 'bi2YoIt1ia9............... j'ai vu dans /classes/Rijndael.php que si on rajoute ca ca peut le faire // ---- Compat mcrypt -> openssl (PHP >= 7.2) ---- if (!defined('MCRYPT_RIJNDAEL_128')) { define('MCRYPT_RIJNDAEL_128', 0); } if (!defined('MCRYPT_MODE_CBC')) { define('MCRYPT_MODE_CBC', 0); } que pensez vous ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted September 10 Share Posted September 10 Bonjour, PS 1.6 n'est pas compatible avec PHP 7.2 Donc, basculez sur PHP 7.1 ou sur Phenix Suite ou Thirtybees si vous ne voulez pas évoluer vers les versions plus récentes de PrestaShop. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now