phpMyAdmin mcrypt error on PHP7.1

后端 未结 3 439
遇见更好的自我
遇见更好的自我 2020-12-22 00:04

Apache/2.4.23 (Win64) PHP/7.1.0

PhpMyAdmin: 4.6.5.2

Error Image:

\"\"

Any idea?

相关标签:
3条回答
  • 2020-12-22 00:12

    This was a problem regarding compatibility with such a new PHP version, technically with the library function that phpMyAdmin uses for various encryption functions.

    The problem was fixed in phpMyAdmin and will be part of the next release (which will be phpMyAdmin 4.6.6)

    0 讨论(0)
  • 2020-12-22 00:19

    Just to add to Alex's answer, the code has a typo which makes it invalid, it should look like this:

    public function handleError($errno, $errstr, $errfile, $errline)
    {
        if (error_reporting() == 0 || $errno == E_DEPRECATED) { // added – $errno == E_DEPRECATED
            return;
        }
        $this->addError($errstr, $errno, $errfile, $errline, true);
    }
    
    0 讨论(0)
  • 2020-12-22 00:27

    in php.ini error_reporting = E_ALL & ~E_DEPRECATED

    If does not work, that is, the hard method – change code phpMyadmin. set_error_handler in phpMyadmin does not take into account error_reporting.

    To exclude E_DEPRECATED, in ../phpMyadmin/libraties/ErrorHandler.php

    change this method

    public function handleError($errno, $errstr, $errfile, $errline)
    {
    if (error_reporting() == 0 || $ Errno == E_DEPRECATED) { // added – $errno == E_DEPRECATED
    return;
    }
    
    $this->addError($errstr, $errno, $errfile, $errline, true);
    }
    
    0 讨论(0)
提交回复
热议问题