分页: 1 / 1

typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned

发表于 : 2022年 4月 2日 07:04
shidang
昨天晚上刚安装的typecho今天早上登录显示 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

发表于 : 2022年 11月 8日 14:32
maemolee
遇到了同样的问题,呼叫管理员

Re: typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned

发表于 : 2022年 11月 9日 09:21
iMaeGoo
遇到了同样的问题,试着删掉 typecho/var/Widget/User.php 里面的这几行代码以后恢复正常,但是不明白是什么原理

代码: 全选

        //插件接口
        $result = self::pluginHandle()->trigger($loginPluggable)->login($name, $password, $temporarily, $expire);
        if ($loginPluggable) {
            return $result;
        }

Re: typecho1.2.0登录Return value of Widget\User::login() must be of the type bool, null returned

发表于 : 2023年 1月 24日 13:58
Susanfarland
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