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;
        }
回复