在500年代恢复了Wordpress数据库结果

时间:2014-10-10 01:01:06

标签: wordpress

我恢复了我的wordpress MYSQL数据库,我不知道我在做什么,这导致我的整个wordpress目录不再显示任何页面(返回404或500)

当尝试通过浏览器转到安装目录时,错误日志会返回以下错误:

[10-Oct-2014 00:53:40] PHP Fatal error:  Call to undefined function  hash_equals() in /blog/wp-includes/pluggable.php on line 674

这就是第674行

     if ( ! hash_equals( $hash, $hmac ) ) {
 675                 /**
 676                  * Fires if a bad authentication cookie hash is encountered.
 677                  *
 678                  * @since 2.7.0
 679                  *
 680                  * @param array $cookie_elements An array of data for the authentication cookie.
 681                  */
 682                 do_action( 'auth_cookie_bad_hash', $cookie_elements );
 683                 return false;
 684         }

我从plugsins文件夹中删除了所有插件。试图恢复数据库所有没有运气。我也尝试重命名我的默认主题。

当我通过wp_admin

登录时,我也收到同样的错误

2 个答案:

答案 0 :(得分:1)

你错过了一些文件吗? /wp-settings.php,/wp-includes/compat.php?如果在Linux SO上,您的Web服务器用户是否具有读权限?

答案 1 :(得分:0)

感谢上面的评论者,我最终做了一次全新的重新安装,然后迁移了数据库,除了选项表。一切都像新的一样好。