[8] ErrorException in Product.php line 155

未定义数组索引: content

  1. $this->view->assign("infos",$infos);
  2. $this->view->assign("industrys",$industrys);
  3. $this->view->assign("certs",$certs);
  4. $this->view->assign("detail",$detail);
  5. if (!$detail["images"]){
  6. $detail["images"] = $detail["image"];
  7. }
  8. $this->view->assign("images",parselist($detail["images"]));
  9. $this->view->assign("content",parselist($detail["content"]));
  10. // 相似产品
  11. $related_products = db('shopro_goods')->where('category_ids',$detail['category_ids'])->order("views desc")->limit(8)->select();
  12. $this->view->assign("relatedProducts",$related_products);
  13. // 产品属性
  14. $this->view->assign("attr",json_decode($detail['params'],true));
  15. // 父类名称
  16. $main = tb($detail['category_ids'],'shopro_category','name');
  17. $this->view->assign("main",$main);

Call Stack

  1. in Product.php line 155
  2. at Error::appError(8, 'Undefined index: con...', '/www/wwwroot/shop/ap...', 155, ['id' => 'detail', 'product_image' => ['id' => 146, 'category' => '', 'admin_id' => 3, ...], 'detail' => ['images' => null], ...]) in Product.php line 155
  3. at Product->detail('detail')
  4. at ReflectionMethod->invokeArgs(object(Product), ['detail']) 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' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'product', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/shop/th...') in index.php line 23

Environment Variables

GET Data

id
14
POST Data
empty
Files
empty

Cookies

think_var
zh-cn
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
think_var=zh-cn
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.liangjing.com
HTTP_USER_AGENT
netEstate NE Crawler (+http://www.website-datenbank.de/)
PATH_INFO
/index/product/detail/id/detail.html
REDIRECT_STATUS
200
SERVER_NAME
liangjing.com
SERVER_PORT
80
SERVER_ADDR
10.0.4.16
REMOTE_PORT
35580
REMOTE_ADDR
104.140.12.242
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/shop/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/product/detail/id/detail.html?id=14
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/product/detail/id/detail.html&id=14
SCRIPT_FILENAME
/www/wwwroot/shop/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716150257.6034
REQUEST_TIME
1716150257
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/shop/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1716150257.6037
THINK_START_MEM
405424
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/shop/thinkphp/
LIB_PATH
/www/wwwroot/shop/thinkphp/library/
CORE_PATH
/www/wwwroot/shop/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/shop/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/shop/
EXTEND_PATH
/www/wwwroot/shop/extend/
VENDOR_PATH
/www/wwwroot/shop/vendor/
RUNTIME_PATH
/www/wwwroot/shop/runtime/
LOG_PATH
/www/wwwroot/shop/runtime/log/
CACHE_PATH
/www/wwwroot/shop/runtime/cache/
TEMP_PATH
/www/wwwroot/shop/runtime/temp/
CONF_PATH
/www/wwwroot/shop/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/shop/addons/
XML 地图