好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

wordpress3.9时报Fatal error: Argument 2 passed to ha

wordpress3.9时报Fatal error: Argument 2 passed to hash_equals() ...

下面给各位重要要介绍的是hhvm上运行wordpress3.9.2时报Fatal error: Argument 2 passed to hash_equals() must be an instance of string, null given in问题的解决办法吧。

域名前几天备案好了,今天把博客迁移到国内某云主机上,然后用了Nginx+HHVM+MariaDB,另外一个低版本的博客,迁移后没问题,wordpress3.9.2这个版本迁移后前台查看文章也没有异常,但是登录的时候报错:

Status Code:500 hphp_invoke

查看hhvm错误日志:

root@54im:~# cat /var/log/hhvm/error.log  nFatal error: Argument 2 passed  to  hash_equals() must be an instance  of  string,  null  given  in  /data/htdocs/54im.com/wp-includes/pluggable.php  on  line 1662 

这行有问题,google了吧,发现国外也有朋友和我一样的问题:

后来看到wordpress官网有同学已经出了补丁:

修改wordpress的wp-includes/pluggable.php文件 在1661行上面添加如下内容:

1655                  $uid  = apply_filters(  'nonce_user_logged_out' ,  $uid ,  $action  );  1656         }  1657          if  (  empty empty (  $nonce  ) ) {  1658                                  return  false;  1659                 }         1660            //phpfensi.com   1661          $i  = wp_nonce_tick(); 

再次访问wordpress后台,就正常了.

查看更多关于wordpress3.9时报Fatal error: Argument 2 passed to ha的详细内容...

  阅读:57次