V4.0 后台网址分类出现如下错误

BUG反馈
3 64
[0] ThrowableError in Category.php line 31
类型错误: Too few arguments to function app\admin\model\Category::catetree(), 0 passed in /www/users/HK488891/WEB/application/admin/controller/Category.php on line 18 and exactly 1 expected
  1. function edit($data)
  2. {
  3. $result = $this->isUpdate(true)->allowField(true)->save($data);
  4. if ($result) {
  5. return true;
  6. } else {
  7. return false;
  8. }
  9. }
  10. public function catetree($sn)
  11. {
  12. $tptc = $this->where(array('sn'=>$sn))->order('sort desc')->select();
  13. return $this->sort($tptc);
  14. }
  15. public function sort($data, $tid = 0, $level = 0)
  16. {
  17. static $arr = array();
  18. foreach ($data as $k => $v) {
  19. if ($v['tid'] == $tid) {
Call Stack
  1. in Category.php line 31
  2. at Category->catetree() in Category.php line 18
  3. at Category->index()
  4. at ReflectionMethod->invokeArgs(object(Category), []) in App.php line 343
  5. at App::invokeMethod([object(Category), 'index'], []) in App.php line 611
  6. at App::module(['admin', 'category', 'index'], ['app_host' => '', 'app_debug' => 'true', 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['admin', 'category', 'index']], ['app_host' => '', 'app_debug' => 'true', 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/users/HK488891/...') in admin.php line 17
Environment Variables
GET Data
empty
POST Data
empty
Files
empty
Cookies
__guid
27590970.2214645867347443500.1602388242983.3318
PHPSESSID
f5gfe7mcd3s01jdo5ie1av75lf
tpl
index_index.html
monitor_count
128
Session
refresh_times
3
last_time
1605325728
think
{ "userhead": "\/public\/img\/touxiang.jpg", "username": "admin", "userid": 1, "point": 1, "usermail": "admin@admin.com", "kouling": "admin" }
checkkey
3577
Server/Request Data
REDIRECT_UNIQUE_ID
X69TwX8AAAEAAHmamH4AAAAi
REDIRECT_HANDLER
application/x-httpd-php7
REDIRECT_STATUS
200
UNIQUE_ID
X69TwX8AAAEAAHmamH4AAAAi
HTTP_HOST
www.jilihr.com
HTTP_CONNECTION
keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
HTTP_REFERER
http://www.jilihr.com/admin.php/index/index.html
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
zh-CN,zh;q=0.9
HTTP_COOKIE
__guid=27590970.2214645867347443500.1602388242983.3318; PHPSESSID=f5gfe7mcd3s01jdo5ie1av75lf; tpl=index_index.html; monitor_count=128
PATH
/usr/local/jdk/bin:/sbin:/usr/sbin:/bin:/usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.jilihr.com
SERVER_ADDR
129.227.60.87
SERVER_PORT
80
REMOTE_ADDR
61.140.193.178
DOCUMENT_ROOT
/www/users/HK488891/WEB
SERVER_ADMIN
vhost@zzidc.com
SCRIPT_FILENAME
/www/users/HK488891/WEB/admin.php
REMOTE_PORT
9700
REDIRECT_URL
/admin.php/category/index.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/admin.php/category/index.html
SCRIPT_NAME
/admin.php
PATH_INFO
/category/index.html
PATH_TRANSLATED
/www/users/HK488891/WEB/category/index.html
ORIG_PATH_INFO
/admin.php/category/index.html
ORIG_SCRIPT_NAME
/php71-cgi
ORIG_SCRIPT_FILENAME
/usr/local/zend/php7.1/bin/php-cgi
ORIG_PATH_TRANSLATED
/www/users/HK488891/WEB/admin.php/category/index.html
PHP_SELF
/admin.php/category/index.html
REQUEST_TIME_FLOAT
1605325761.223
REQUEST_TIME
1605325761
Environment Variables
empty
ThinkPHP Constants
WEB_URL
APP_PATH
./application/
BIND_MODULE
admin
THINK_VERSION
5.0.24
THINK_START_TIME
1605325761.2243
THINK_START_MEM
359176
EXT
.php
DS
/
THINK_PATH
/www/users/HK488891/WEB/thinkphp/
LIB_PATH
/www/users/HK488891/WEB/thinkphp/library/
CORE_PATH
/www/users/HK488891/WEB/thinkphp/library/think/
TRAIT_PATH
/www/users/HK488891/WEB/thinkphp/library/traits/
ROOT_PATH
/www/users/HK488891/WEB/
EXTEND_PATH
/www/users/HK488891/WEB/extend/
VENDOR_PATH
/www/users/HK488891/WEB/vendor/
RUNTIME_PATH
/www/users/HK488891/WEB/runtime/
LOG_PATH
/www/users/HK488891/WEB/runtime/log/
CACHE_PATH
/www/users/HK488891/WEB/runtime/cache/
TEMP_PATH
/www/users/HK488891/WEB/runtime/temp/
CONF_PATH
./application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
  • 心云 心云
    2020-11-14 02:11:49
    #1楼 回复

    已找到解决办法,谢谢

  • jayon jayon
    2020-11-14 09:12:29
    #2楼 回复

    ž怎么解决的?分享一下呗

    心云 心云
    2020-11-15 12:02:47

    你的也遇到这种情况吗,伪静态问题

  • 自助授权 官方qq群826939491 Guojiz成功案例展示
    精选帖子
    国际导航30多款模板进行免费 1196
    国际导航采集扩展 3121
    api接口使用教程【v3.1.3】 1587
    使用本系统搭建违法,触犯,站点公告 1648
    虚拟主机安装出现数据连接失败解决方案 1816
    国际网址导航新版标签大全 4043
    关于2.4之前版本想转3.0新版教程 2679
    国际网址导航全新V4.0(2020-11-11) 14598
    Guojiz网址导航系统V2.3.7正式版 2576
    热门帖子
    把这个帖子删了吧 991
    3.1升级3.1.1 988
    不能通过后台更换logo的情况反馈。 979
    社区反馈 975
    3.0系统bug 974
    社区系统如何安装? 962
    安装导航系统出现错误或者搬家提示错误请看 961
    充值记录出现错误问题 952
    2.3.7补丁 920