[8] ErrorException in Product.php line 596

未定义数组索引: spacePic

  1. $findFristParam['name'] = $paramArr[$k]['son'].",".$findFristParam['name'];
  2. }
  3. $i++;
  4. $paramArr[$k]['son'] = $findFristParam['name'];
  5. }
  6. }
  7. }
  8. $findProduct['addToPic'] = json_decode($findProduct['addToPic'],true);
  9. $findProduct['spacePic'] = json_decode($findProduct['spacePic'],true);
  10. $v = $findProduct['pId'];
  11. $productParamArr = array();
  12. //查找全部产品
  13. $product = Db::name('product')->where('pId',$v)->where('isDisable',0)->select();
  14. foreach ($product as $k2=>$v2){
  15. foreach ($findProductParam2[0]['pId'] as $k3=>$v3){
  16. strstr($v2['pro_parameter'],",") ? $proar = explode(",",$v2['pro_parameter']) : $proar = $v2['pro_parameter'];
  17. if (is_array($proar)){

Call Stack

  1. in Product.php line 596
  2. at Error::appError(8, 'Undefined index: spa...', '/data/work/html/jian...', 596, ['request' => object(Request), 'data' => ['/productsview/221' => '', 'productid' => '221'], 'paramArr' => [['id' => '4', 'pId' => [['id' => '17', 'pId' => '', 'name' => '900×1800mm', ...], ['id' => '14', 'pId' => '', 'name' => '750×1500mm', ...], ['id' => '13', 'pId' => '', 'name' => '600×1200mm', ...]], 'name' => '产品规格', ...], ['id' => '5', 'pId' => [['id' => '18', 'pId' => '', 'name' => '干粒面', ...], ['id' => '19', 'pId' => '', 'name' => '柔抛', ...], ['id' => '20', 'pId' => '', 'name' => '缎光釉', ...], ...], 'name' => '釉面效果', ...], ['id' => '68', 'pId' => [['id' => '151', 'pId' => '', 'name' => '浅蓝色', ...], ['id' => '150', 'pId' => '', 'name' => '浅粉色', ...], ['id' => '135', 'pId' => '', 'name' => '深咖色 ', ...], ...], 'name' => '产品颜色', ...], ...], ...]) in Product.php line 596
  3. at Product->productView(object(Request))
  4. at ReflectionMethod->invokeArgs(object(Product), [object(Request)]) in App.php line 343
  5. at App::invokeMethod([object(Product), 'productView'], []) in App.php line 611
  6. at App::module(['officialweb', 'Product', 'productView'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['officialweb', 'Product', 'productView'], 'convert' => false], ['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('/data/work/html/jian...') in index.php line 18

Environment Variables

GET Data

/productsview/221
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
jianzhidaotc.com
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at jianzhidaotc.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
jianzhidaotc.com
SERVER_ADDR
172.18.104.89
SERVER_PORT
80
REMOTE_ADDR
54.211.203.45
DOCUMENT_ROOT
/data/work/html/jianzhidaotccom
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/data/work/html/jianzhidaotccom/index.php
REMOTE_PORT
53674
REDIRECT_QUERY_STRING
/productsview/221
REDIRECT_URL
/productsview/221
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/productsview/221
REQUEST_URI
/productsview/221
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711655270.22
REQUEST_TIME
1711655270
PATH_INFO
/productsview/221
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/work/html/jianzhidaotccom/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711655270.221
THINK_START_MEM
255304
EXT
.php
DS
/
THINK_PATH
/data/work/html/jianzhidaotccom/thinkphp/
LIB_PATH
/data/work/html/jianzhidaotccom/thinkphp/library/
CORE_PATH
/data/work/html/jianzhidaotccom/thinkphp/library/think/
TRAIT_PATH
/data/work/html/jianzhidaotccom/thinkphp/library/traits/
ROOT_PATH
/data/work/html/jianzhidaotccom/
EXTEND_PATH
/data/work/html/jianzhidaotccom/extend/
VENDOR_PATH
/data/work/html/jianzhidaotccom/vendor/
RUNTIME_PATH
/data/work/html/jianzhidaotccom/runtime/
LOG_PATH
/data/work/html/jianzhidaotccom/runtime/log/
CACHE_PATH
/data/work/html/jianzhidaotccom/runtime/cache/
TEMP_PATH
/data/work/html/jianzhidaotccom/runtime/temp/
CONF_PATH
/data/work/html/jianzhidaotccom/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false