[8] ErrorException in Index.php line 583

未定义数组索引: category

  1. $info = HomeModel::getArticle(['id' => $id], [], false, 1);
  2. if (!$info) {
  3. header("HTTP/1.0 404 Not Found");
  4. }
  5. // $info['content'] = preg_replace('/(table.*?style=".*?)width:.*\d+(px|pt|em)(.*?">)/', '$1width: 100%$3', $info['content']);
  6. $info['content'] = preg_replace('/ +?/', '', $info['content']);
  7. // $info['content'] = preg_replace('#\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}#', '***', $info['content']);
  8. //添加点击量
  9. Db::name('article')->where('id', $id)->setInc('click');
  10. $top_cate = HomeModel::getTopNavigate($info['category']);
  11. $center_menu = $this->publicCenterMenu($info['category'], $top_cate);
  12. $cateInfo = HomeModel::getNavigateInfo(['id' => $info['category']]);
  13. return $this->fetch(HOME_VIEW_PATH . 'public_des.html', [
  14. 'top_cate' => $top_cate,
  15. 'center_menu' => $center_menu,
  16. 'article' => $info,
  17. 'info' => $info,
  18. 'page_title' => $cateInfo['name'],
  19. ]);

Call Stack

  1. in Index.php line 583
  2. at Error::appError(8, 'Undefined index: cat...', '/d/www/qjfy.gov.cn/a...', 583, ['id' => '8320', 'info' => ['content' => '']]) in Index.php line 583
  3. at Index->public_web()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '8320', 'convert' => false]) in Module.php line 131
  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 136
  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))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.qjfy.gov.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME qjfy.gov.cn
SERVER_PORT 80
SERVER_ADDR 192.168.0.193
REMOTE_PORT 45212
REMOTE_ADDR 44.222.129.73
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /d/www/qjfy.gov.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /article/public/description/8320.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/article/public/description/8320.html
SCRIPT_FILENAME /d/www/qjfy.gov.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711706912.9241
REQUEST_TIME 1711706912
Environment Variablesempty
ThinkPHP Constants
ADMIN_CONTROLLER_PATH ch_admin_manage/
ADMIN_VIEW_PATH admin/
API_CONTROLLER_PATH api/
HOME_CONTROLLER_PATH home/
HOME_VIEW_PATH home/
UPLOAD_PATH /d/www/qjfy.gov.cn/public/uploads/