[8] ErrorException in Document.php line 56

Trying to access array offset on value of type null

  1. $info = DocumentModel::getOne($id, $model, $map);
  2. if (isset($info['tags'])) {
  3. $info['tags'] = explode(',', $info['tags']);
  4. }
  5. $this->assign('document', $info);
  6. $this->assign('model', $model);
  7. $this->assign('related', $this->getRelated($info['cid'],$model));
  8. $this->assign('breadcrumb', $this->getBreadcrumb($info['cid']));
  9. $this->assign('prev', $this->getPrev($id, $model));
  10. $this->assign('next', $this->getNext($id, $model));
  11. $template = $info['detail_template'] == '' ? 'detail' : substr($info['detail_template'], 0, strpos($info['detail_template'], '.'));
  12. if (is_mobile_visit()) {
  13. return $this->fetch('/wap/document/'.$template); // 渲染模板
  14. }else{
  15. return $this->fetch($template);

Call Stack

  1. in Document.php line 56
  2. at Error::appError() in Document.php line 56
  3. at Document->detail()
  4. at ReflectionMethod->invokeArgs() in Container.php line 395
  5. at Container->invokeReflectMethod() in Module.php line 131
  6. at Module->think\route\dispatch\{closure}()
  7. at call_user_func_array() in Middleware.php line 185
  8. at Middleware->think\{closure}()
  9. at call_user_func() in Middleware.php line 130
  10. at Middleware->dispatch() 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}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in App.php line 435
  18. at App->run() in index.php line 35

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
dolphin_think_var en-us
Session
b_ { "lang": "en" }
Server/Request Data
USER www
HOME /home/www
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 3.234.177.119
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 86b824db0a7c5a0f-IAD
HTTP_X_FORWARDED_FOR 3.234.177.119
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CONNECTION Keep-Alive
HTTP_HOST brgproduct.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME brgproduct.com
SERVER_PORT 80
SERVER_ADDR 153.126.194.39
REMOTE_PORT 39966
REMOTE_ADDR 172.70.34.178
SERVER_SOFTWARE nginx/1.21.4
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/brgproduct.com/www/public
DOCUMENT_URI /index.php
REQUEST_URI /cms/document/detail/id/194/model/2.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/cms/document/detail/id/194/model/2.html
SCRIPT_FILENAME /www/wwwroot/brgproduct.com/www/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711634400.7688
REQUEST_TIME 1711634400
Environment Variablesempty
ThinkPHP Constants
ADMIN_FILE admin.php
__MODULE_PIC__ /static/cms/picture
HTMLPURIFIER_PREFIX /www/wwwroot/brgproduct.com/www/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH /