php - Prestashop won't work when migrating to a new domain -
i moved prestashop 1.7.0 new web hosting , error:
fatal error: uncaught exception 'defuse\crypto\exception\environmentisbrokenexception' message 'your system not have secure random number generator.' in /membri/gbdns/vendor/defuse/php-encryption/src/core.php:110 stack trace: #0 /membri/gbdns/vendor/defuse/php-encryption/src/key.php(23): defuse\crypto\core::securerandom(32) #1 /membri/gbdns/classes/phpencryptionengine.php(101): defuse\crypto\key::createnewrandomkey() #2 /membri/gbdns/classes/phpencryption.php(97): phpencryptionenginecore::createnewrandomkey() #3 /membri/gbdns/config/bootstrap.php(131): phpencryptioncore::createnewrandomkey() #4 /membri/gbdns/config/config.inc.php(56): require_once('/membri/gbdns/c...') #5 /membri/gbdns/index.php(27): require('/membri/gbdns/c...') #6 {main} thrown in /membri/gbdns/vendor/defuse/php-encryption/src/core.php on line 110
i have php 5.6 , mysql running
i tried disabling flag ps_cipher_algorithm
maybe don't have crypt in new domain, problem still persists
the issue has been reported prestashop , have said fixed in 1.7.0.1 other things.
http://forge.prestashop.com/browse/boom-1735
to temporarily fix can follow instructions below:
- you can set random_compat version 1.4 , use composer install, need have ssh access server.
or
- to fix can update /vendor/paragonie/random_compat/ last version available here: https://github.com/paragonie/random_compat/releases/tag/v2.0.4
Comments
Post a Comment