[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/web/sh/public_h...', 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 132
  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 137
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  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 435
  21. at App->run() in index.php line 19

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/dev/null
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.shuanghui.net
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.shuanghui.net
SERVER_PORT
443
SERVER_ADDR
172.16.52.149
REMOTE_PORT
20001
REMOTE_ADDR
154.220.65.220
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/web/sh/public_html/public
DOCUMENT_URI
/index.php
REQUEST_URI
/newslist-27.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//newslist-27.html
SERVER_SOFTWARE
nginx
GATEWAY_INTERFACE
CGI/1.1
PATH_INFO
SCRIPT_FILENAME
/www/web/sh/public_html/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1619027948.2745
REQUEST_TIME
1619027948
Environment Variablesempty
ThinkPHP Constants
APPLICATION_VERSION
v1.8.1
DS
/
__MY_HTTP__
https
__MY_ROOT__
__MY_ROOT_PUBLIC__
/
__MY_HOST__
www.shuanghui.net
__MY_URL__
https://www.shuanghui.net/
__MY_PUBLIC_URL__
https://www.shuanghui.net/
__MY_VIEW_URL__
https://www.shuanghui.net/newslist-27.html
ROOT_PATH
/www/web/sh/public_html/public/
ROOT
/www/web/sh/public_html/
APP_PATH
/www/web/sh/public_html/application/
APPLICATION
web
APPLICATION_CLIENT_TYPE
pc
IS_AJAX
false