新葡萄娱乐官网版(中国)有限公司-官方网站

#0 [8]ErrorException in Article.php line 102

未定义数组索引: parent_id

  1. //获得栏目模板信息
  2. $articleCate= DB::name('DataArticleCate')->where(["id" => $id])->find(); //分类信息
  3. $this->assign('catInfo',$articleCate); //当前分类信息
  4. if(empty($articleCate['link_name'])){
  5. $articleCate['link_name'] = "List";
  6. }
  7. $this->assign('linkName',$articleCate['link_name']); //当前分类的静态名称
  8. if($articleCate['parent_id'] == 0 && empty($articleCate['content_template_id'])){
  9. //如果是顶级栏目
  10. $catIds = Db::name('DataArticleCate')->where(['parent_id'=>$id])->column('id');
  11. if(empty($catIds[0])){
  12. dump("此分未设置内容模板或下级分类!");die();
  13. }
  14. $childCate= DB::name('DataArticleCate')->where(["id" => $catIds[0]])->find(); //第一个分类信息
  15. //获得指定栏目所在的所有同级栏目
  16. $this->assign('catTreeList',$GLOBALS['function']->getCatList($catIds[0]));

Call Stack

  1. in Article.php line 102
  2. at Error->appError(8, 'Undefined index: par...', '/home/wwwroot/jinlin...', 102, ['id' => '20', 'articleCate' => ['link_name' => 'List']]) in Article.php line 102
  3. at Article->list()
  4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 344
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['listName' => 'List', 'id' => '20']) in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  7. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  8. at Pipeline->then(object(Closure)) in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 90
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  12. at Pipeline->think\{closure}(object(Request)) in Library.php line 139
  13. at Library->think\admin\{closure}(object(Request), object(Closure))
  14. at call_user_func(object(Closure), object(Request), object(Closure)) in Middleware.php line 142
  15. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  16. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  17. at Pipeline->then(object(Closure)) in Route.php line 773
  18. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  19. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  20. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in Multiple.php line 72
  22. at Multiple->think\admin\multiple\{closure}(object(Request)) in Pipeline.php line 59
  23. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  24. at Pipeline->then(object(Closure)) in Multiple.php line 73
  25. at Multiple->handle(object(Request), object(Closure))
  26. at call_user_func([object(Multiple), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  27. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  28. at Pipeline->think\{closure}(object(Request)) in LoadLangPack.php line 57
  29. at LoadLangPack->handle(object(Request), object(Closure))
  30. at call_user_func([object(LoadLangPack), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  31. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  32. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  33. at SessionInit->handle(object(Request), object(Closure))
  34. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  35. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  36. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  37. at Pipeline->then(object(Closure)) in Http.php line 207
  38. at Http->runWithRequest(object(Request)) in Http.php line 170
  39. at Http->run() in SystemService.php line 484
  40. at SystemService->doInit() in index.php line 10

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
_wtsexp 1728225228
_wtscpk 5644145150
_wtsuid ee392bcb-ae71-4bbf-911b-7363eda8930b
_wtspurl /5.php
ssid 3c49cf4df966656e8155ddf6e61de6bb
lang zh-cn
Session
lang cn
Server/Request Data
USER jinlin
HOME /home/wwwroot/jinlin
SCRIPT_NAME /index.php
REQUEST_URI /site-List-20.html
QUERY_STRING s=/site-List-20.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=/site-List-20.html
REDIRECT_URL /site-List-20.html
REMOTE_PORT 45346
SCRIPT_FILENAME /home/wwwroot/jinlin/wwwroot/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/wwwroot/jinlin/wwwroot
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/wwwroot/jinlin/wwwroot
REMOTE_ADDR 107.158.249.130
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME www.ling-jiang.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_COOKIE _wtsexp=1728225228; _wtscpk=5644145150; _wtsuid=ee392bcb-ae71-4bbf-911b-7363eda8930b; _wtspurl=/5.php; ssid=3c49cf4df966656e8155ddf6e61de6bb; lang=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_CONNECTION close
HTTP_HOST www.ling-jiang.com
HTTP_X_REAL_IP 107.158.249.130
HTTP_X_FORWARDED_FOR 107.158.249.130
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1728748990.6657
REQUEST_TIME 1728748990
XML 地图