[8] ErrorException in Product.php line 114

未定义数组下标: 1

  1. foreach ($newsDetail['images'] as $key =>$value){
  2. $newsDetail['thisimages'][$key]['images']=$newsDetail['images'][$key];
  3. $newsDetail['thisimages'][$key]['images_alt']=$newsDetail['images_alt'][$key];
  4. }
  5. $newsDetail['part'] = [];
  6. foreach ($newsDetail['partimages'] as $key => $value) {
  7. $newsDetail['part'][$key]['image'] = $value;
  8. $newsDetail['part'][$key]['content'] = $newsDetail['partcontent'][$key];
  9. $newsDetail['part'][$key]['partimages_alt'] = $newsDetail['partimages_alt'][$key];
  10. }
  11. unset($newsDetail['partcontent'],$newsDetail['partimages']);
  12. $this->view->assign('proDetail',$newsDetail);
  13. return $this->view->fetch();
  14. }
  15. /**
  16. * 前台搜索功能

Call Stack

  1. in Product.php line 114
  2. at Error::appError(8, 'Undefined offset: 1', '/www/wwwroot/www.she...', 114, ['where' => ['url' => 'enclosure'], 'newsDetail' => ['id' => 85, 'name' => 'Enclosure', 'item_no' => 'enclosure', ...], 'value' => '/uploads/20190911/e8...', ...]) in Product.php line 114
  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 598
  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/www.she...') in index.php line 21

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

lang
en
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
shenxi.com
PATH_INFO
/product/detail/name/enclosure
REDIRECT_STATUS
200
SERVER_NAME
www.shenxi.com
SERVER_PORT
443
SERVER_ADDR
172.21.93.50
REMOTE_PORT
48390
REMOTE_ADDR
35.172.193.238
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.shenxi.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/product/detail/name/enclosure
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/detail/name/enclosure
SCRIPT_FILENAME
/www/wwwroot/www.shenxi.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711656040.7398
REQUEST_TIME
1711656040
Environment Variables
empty

ThinkPHP Constants

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