最近我在wordpress上发出了此警告错误消息:
警告:hash_equals():预期的user_string是一个字符串,在1662行的C:\ xampp3\htdocs\Plurielles\wordpress\wp-includes\pluggable.php中给出null
警告:hash_equals():预期的user_string是一个字符串,在1668行的C:\ xampp3\htdocs\Plurielles\wordpress\wp-includes\pluggable.php中给出null
它在我的网站上禁用了很多功能(添加图像等等......)我一直在php文件中查找这两行,它们是:
第1662行:
if ( hash_equals( $expected, $nonce ) ) {
return 1;
}
Run Code Online (Sandbox Code Playgroud)
1668行:
if ( hash_equals( $expected, $nonce ) ) {
return 2;
}
Run Code Online (Sandbox Code Playgroud)
你知道我怎么解决它吗?我是PHP的新手,所以我很抱歉,如果这很容易解决(你可以扔我摇滚).
非常感谢我在网站上找到的帮助,我找到了解决方案,并将其发布在这里供与我情况相同的人使用。
在我的例子中,你只需使用settype ($variable ="string")
:
settype ($expected ="string")
settype ($nonce="string")
在 WordPress 上应该可以解决问题。
| 归档时间: |
|
| 查看次数: |
4395 次 |
| 最近记录: |