柳暗花明笔记

    prestashop Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' 解决办法

    所属分类:[ php&web ] 猫哲学家 发表于:2016-10-19 10:26 浏览:281

    Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_'

    Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_'

     

    把:

    $this->_cipherTool = new Blowfish(_COOKIE_KEY_, _COOKIE_IV_);
    $this->_cipherTool = new Rijndael(_RIJNDAEL_KEY_, _RIJNDAEL_IV_);

    改为:

    $this->_cipherTool = new Blowfish('_COOKIE_KEY_', '_COOKIE_IV_');
    $this->_cipherTool = new Rijndael('_RIJNDAEL_KEY_', '_RIJNDAEL_IV_');

     

    ==============20170223update==========

    另一解决办法:

    在config/settings.inc.php添加:

    define('_RIJNDAEL_IV_', 'HR$2pIjH4$2pIj14'); 
    define('_RIJNDAEL_KEY_', 'HR$2pIj5R$2pIj18'); 

    标签: php 
    上一编文章 curl Problem (2) in the Chunked-Encoded data 解决办法 下一编文章 登录失败:未授予用户在此计算机上的请求登录类型 解决办法
    最近文章
    发表评论