[8] ErrorException in Product.php line 91

Undefined index: content

  1. //$this->model->incView($this->gid);
  2. if($this->gid && $res) $this->model->where('id', $this->gid)->setInc('view');
  3. // ModelProduct::where('id', $this->gid)->inc('view');
  4. $product = $this->model->find($this->gid);
  5. $collect = new Collect();
  6. $product = $collect->checkCollectAndCart($this->auth->getUser(), $product);
  7. //校验违禁词,替换为**
  8. $product['content'] = $this->checkIllegalword($product['content']);
  9. $this->view->assign('product', $product);
  10. $this->view->assign('title', $product['title']);
  11. return $this->attachment();
  12. }
  13. private function attachment()

Call Stack

  1. in Product.php line 91
  2. at Error::appError(8, 'Undefined index: con...', '/www/wwwroot/001yixu...', 91, ['res' => null, 'res2' => null, 'res3' => null, ...]) in Product.php line 91
  3. at Product->detail()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  5. at App::invokeMethod([object(Product), 'detail'], []) in App.php line 611
  6. at App::module(['index', 'Product', 'detail'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'Product', 'detail']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/001yixu...') in index.php line 27

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.001yixue.com
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO
/index/Product/detail.html
REDIRECT_STATUS
200
SERVER_NAME
001yixue.com
SERVER_PORT
443
SERVER_ADDR
172.19.6.213
REMOTE_PORT
42164
REMOTE_ADDR
3.235.182.206
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/001yixue.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/Product/detail.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/Product/detail.html
SCRIPT_FILENAME
/www/wwwroot/001yixue.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1720839575.7897
REQUEST_TIME
1720839575
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/001yixue.com/public/../application/
CONSTANT_NAME
about
THINK_VERSION
5.0.24
THINK_START_TIME
1720839575.8409
THINK_START_MEM
387184
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/001yixue.com/thinkphp/
LIB_PATH
/www/wwwroot/001yixue.com/thinkphp/library/
CORE_PATH
/www/wwwroot/001yixue.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/001yixue.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/001yixue.com/
EXTEND_PATH
/www/wwwroot/001yixue.com/extend/
VENDOR_PATH
/www/wwwroot/001yixue.com/vendor/
RUNTIME_PATH
/www/wwwroot/001yixue.com/runtime/
LOG_PATH
/www/wwwroot/001yixue.com/runtime/log/
CACHE_PATH
/www/wwwroot/001yixue.com/runtime/cache/
TEMP_PATH
/www/wwwroot/001yixue.com/runtime/temp/
CONF_PATH
/www/wwwroot/001yixue.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/001yixue.com/addons/