安装成功后,进后台点击任何页面报错
Closed this issue · 7 comments
winhave commented
ErrorException: count(): Parameter must be an array or an object that implements Countable in file
执行composer update后,问题依然没得到解决,请指教!
Deleted user commented
1.composer install试一下;
2.php7.1以上版本。
winhave commented
初始时,是通过composer install安装的;
目前:
Laravel Framework 5.8.23
PHP 7.2.5-1
网上搜索原因,说的是 count 只能 countable type 的变量
你的环境没遇到过这个问题吗?
Deleted user commented
昨天晚上刚刚安装的,没有问题。
winhave commented
ErrorException: count(): Parameter must be an array or an object that implements Countable in file /home/vagrant/Code/app/Http/Controllers/Controller.php on line 55
winhave commented
我把55行的这个 count 去掉就正常了;
另外还有个错误:GET http://fullstack.qasl.cn/api/auth_routes 404 (Not Found)
Deleted user commented
这个错误:GET http://fullstack.qasl.cn/api/auth_routes 404 (Not Found)
暂时先不用管,因为用的ant pro2.0有些废弃代码没有删除;现在正准备更新ant pro4.0。
winhave commented
55行改用:if( !empty($search) )
进行判断了