昨天晚上刚安装的typecho今天早上登录显示 Return value of Widget\User::login() must be of the type bool, null returned
有没有大佬帮帮我
typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned
Re: typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned
遇到了同样的问题,试着删掉 typecho/var/Widget/User.php 里面的这几行代码以后恢复正常,但是不明白是什么原理
代码: 全选
//插件接口
$result = self::pluginHandle()->trigger($loginPluggable)->login($name, $password, $temporarily, $expire);
if ($loginPluggable) {
return $result;
}
-
- 帖子: 1
- 注册时间: 2023年 1月 24日 13:56
Re: typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned
I just want to say that this error message suggests that there is a problem with the login function in the User widget of your Typecho installation. It appears that the function is not returning a Boolean value as expected, and instead is returning a null value.
It could be caused by a bug in the User widget or a problem with the way the widget is being used.
You may try to check the User widget's code, if you are familiar with it, or check the website's log files for more information. If you are not familiar with the code, you may consider contact the Typecho community or consult with a developer for help ACE Flare
It could be caused by a bug in the User widget or a problem with the way the widget is being used.
You may try to check the User widget's code, if you are familiar with it, or check the website's log files for more information. If you are not familiar with the code, you may consider contact the Typecho community or consult with a developer for help ACE Flare