我想为社区做出贡献,因为这个问题很烦人。没有一种解决方案对我有效。在它发生之前,我没有安装任何插件,所以我肯定认为这是一个Wordpress bug!
我的确切错误:通过WP调试器。登录屏幕之后出现了带有此错误的白色屏幕。
Fatal error: Class \'PasswordHash\' not found in /var/www/public_html/example.net/wp-includes/pluggable.php on line 2079
通过apache错误日志。
PHP Fatal error: Class \'PasswordHash\' not found in /var/www/public_html/example.net/wp-includes/pluggable.php on line 2138, referer: http://example.net/wp-login.php?redirect_to=http%3A%2F%2Fexample.net%2Fwp-admin%2F&reauth=1
我是如何解决这个问题的。在DB中,我将我的管理员密码编辑为纯文本密码。2、将这些代码行添加到pluggable。php。现在WP基本上可以识别非哈希密码。以下是编辑后的pluggable摘录。php
function wp_check_password($password, $hash, $user_id = \'\') {
<------>global $wp_hasher;
<------>//20170713 Added by Stefan
<------>$check=($hash==$password);
<------>return apply_filters(\'check_password\', $check, $password, $hash, $user_id);
。。。再低一点
function wp_set_password( $password, $user_id ) {
<------>global $wpdb;
<------>//$hash = wp_hash_password( $password );
<------>//20170713 Changed by Stefan
<------>$hash=$password;
希望这对别人有帮助,因为google帮不了我。