[8] ErrorException in Article.php line 111

      未定义变量: pcate

      1. $params['time_start'] = date("Y-m-d",$time['begin']);
      2. $params['time_end'] = date("Y-m-d",$time['end']);
      3. }
      4. $where = ArticleService::ArticleListWhere($params);
      5. // 获取总数
      6. $total = ArticleService::ArticleTotal($where);
      7. // 分页
      8. $params['page'] = input('page');
      9. //栏目树
      10. $catelist = ArticleService::ArticleCategoryAllbypid(['pid'=>$pcate['id']]);
      11. $this->assign('catelist', $catelist);
      12. $page_params = array(
      13. 'number' => $number,
      14. 'total' => $total,
      15. 'where' => $params,
      16. 'page' => isset($params['page']) ? intval($params['page']) : 1,
      17. // 'url' => "",
      18. );

      Call Stack

      1. in Article.php line 111
      2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/www.shu...', 111, ['id' => '27', 'wherecate' => ['id' => 27, 'is_enable' => 1], 'catemodel' => object(Articlecategory), ...]) in Article.php line 111
      3. at Article->Index()
      4. at ReflectionMethod->invokeArgs(object(Article), []) in Container.php line 395
      5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['id' => '27', 'convert' => false]) in Module.php line 143
      6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
      7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
      8. at Middleware->think\{closure}(object(Request))
      9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
      10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 148
      11. at Module->exec() in Dispatch.php line 168
      12. at Dispatch->run() in App.php line 423
      13. at App->think\{closure}(object(Request), object(Closure), null)
      14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
      15. at Middleware->think\{closure}(object(Request)) in SystemEnvCheck.php line 42
      16. at SystemEnvCheck->handle(object(Request), object(Closure), null)
      17. at call_user_func_array([object(SystemEnvCheck), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
      18. at Middleware->think\{closure}(object(Request))
      19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
      20. at Middleware->dispatch(object(Request)) in App.php line 425
      21. at App->run() in index.php line 52

      Environment Variables

      GET Dataempty
      POST Dataempty
      Filesempty
      Cookiesempty
      Sessionempty
      Server/Request Data
      USER www
      HOME /home/www
      HTTP_X_MICROSOFTAJAX Delta=true
      HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
      HTTP_CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
      HTTP_CACHE_CONTROL no-cache
      HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
      HTTP_ACCEPT_ENCODING gzip, deflate
      HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      HTTP_X_APPLE_STORE_FRONT 143444,12
      HTTP_X_APPLE_TZ 0
      HTTP_REFERER https://www.baidu.com/search/spider.htm
      HTTP_HOST www.ryxkjx.com
      PATH_INFO
      REDIRECT_STATUS 200
      SERVER_NAME www.ryxkjx.com
      SERVER_PORT 80
      SERVER_ADDR 192.168.0.114
      REMOTE_PORT 55790
      REMOTE_ADDR 45.41.83.2
      SERVER_SOFTWARE nginx/1.22.1
      GATEWAY_INTERFACE CGI/1.1
      REQUEST_SCHEME http
      SERVER_PROTOCOL HTTP/1.1
      DOCUMENT_ROOT /www/wwwroot/www.ryxkjx.com/public
      DOCUMENT_URI /index.php
      REQUEST_URI /newslist-27.html
      SCRIPT_NAME /index.php
      CONTENT_LENGTH
      CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
      REQUEST_METHOD GET
      QUERY_STRING s=/newslist-27.html
      SCRIPT_FILENAME /www/wwwroot/www.ryxkjx.com/public/index.php
      FCGI_ROLE RESPONDER
      PHP_SELF /index.php
      REQUEST_TIME_FLOAT 1728288042.4792
      REQUEST_TIME 1728288042
      Environment Variablesempty
      ThinkPHP Constants
      APPLICATION_VERSION v1.8.1
      DS /
      __MY_HTTP__ http
      __MY_ROOT__
      __MY_ROOT_PUBLIC__ /
      __MY_HOST__ www.ryxkjx.com
      __MY_URL__ https://www.ryxkjx.com/
      __MY_PUBLIC_URL__ https://www.ryxkjx.com/
      __MY_VIEW_URL__ https://www.ryxkjx.com/newslist-27.html
      ROOT_PATH /www/wwwroot/www.ryxkjx.com/public/
      ROOT /www/wwwroot/www.ryxkjx.com/
      APP_PATH /www/wwwroot/www.ryxkjx.com/application/
      APPLICATION web
      APPLICATION_CLIENT_TYPE pc
      IS_AJAX false


        XML地图