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

讨论程序使用中的问题
回复
shidang
帖子: 1
注册时间: 2022年 4月 2日 07:00

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

帖子 shidang »

昨天晚上刚安装的typecho今天早上登录显示 Return value of Widget\User::login() must be of the type bool, null returned
有没有大佬帮帮我
maemolee
帖子: 8
注册时间: 2017年 11月 16日 00:42

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

帖子 maemolee »

遇到了同样的问题,呼叫管理员
iMaeGoo
帖子: 1
注册时间: 2016年 6月 3日 16:20

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

帖子 iMaeGoo »

遇到了同样的问题,试着删掉 typecho/var/Widget/User.php 里面的这几行代码以后恢复正常,但是不明白是什么原理

代码: 全选

        //插件接口
        $result = self::pluginHandle()->trigger($loginPluggable)->login($name, $password, $temporarily, $expire);
        if ($loginPluggable) {
            return $result;
        }
Susanfarland
帖子: 1
注册时间: 2023年 1月 24日 13:56

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

帖子 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
回复