[8] ErrorException in Fuwu.php line 250

未定义数组索引: id

  1. $arrFatherId[0] = 7;
  2. $arrFatherId[1] = 63;
  3. $thisId = 63;
  4. $this->assign('arrFatherId', $arrFatherId);
  5. $this->assign('thisId', $thisId);
  6. $viewid = $_GET['id'];
  7. // $res_view['pId'] = 11;
  8. $res_view = Db::name('product_writing')->where('id', $viewid)->find();
  9. if( isset($res_view['addToPic']) ){
  10. //追加图 json转化为数组
  11. $res_view['addToPic'] = json_decode($res_view['addToPic'],true);
  12. }
  13. $cpzn_cateName = $res_view['cateName'];
  14. $cpzn_recommend = Db::name('product_writing')

Call Stack

  1. in Fuwu.php line 250
  2. at Error::appError(8, 'Undefined index: id', '/data/work/html/mei-...', 250, ['arrFatherId' => [7, 63], 'thisId' => 63]) in Fuwu.php line 250
  3. at Fuwu->cpznview()
  4. at ReflectionMethod->invokeArgs(object(Fuwu), []) in App.php line 343
  5. at App::invokeMethod([object(Fuwu), 'cpznview'], []) in App.php line 611
  6. at App::module(['officialweb', 'Fuwu', 'cpznview'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['officialweb', 'Fuwu', 'cpznview'], '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/mei-...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
qadsr793ea8t0bdr27kmb360u6
Session
empty

Server/Request Data

REDIRECT_PATH_INFO
cpznview
REDIRECT_HTTPS
on
REDIRECT_SSL_TLS_SNI
www.mei-wo.com
REDIRECT_STATUS
200
HTTPS
on
SSL_TLS_SNI
www.mei-wo.com
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_HOST
www.mei-wo.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=qadsr793ea8t0bdr27kmb360u6
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
Apache Server at www.mei-wo.com Port 443
SERVER_SOFTWARE
Apache
SERVER_NAME
www.mei-wo.com
SERVER_ADDR
172.24.37.242
SERVER_PORT
443
REMOTE_ADDR
23.231.76.82
DOCUMENT_ROOT
/data/work/html/mei-wocom
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/data/work/html/mei-wocom/index.php
REMOTE_PORT
58574
REDIRECT_URL
/cpznview
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/cpznview
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1736222371.819
REQUEST_TIME
1736222371
PATH_INFO
cpznview
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/work/html/mei-wocom/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1736222371.8197
THINK_START_MEM
230808
EXT
.php
DS
/
THINK_PATH
/data/work/html/mei-wocom/thinkphp/
LIB_PATH
/data/work/html/mei-wocom/thinkphp/library/
CORE_PATH
/data/work/html/mei-wocom/thinkphp/library/think/
TRAIT_PATH
/data/work/html/mei-wocom/thinkphp/library/traits/
ROOT_PATH
/data/work/html/mei-wocom/
EXTEND_PATH
/data/work/html/mei-wocom/extend/
VENDOR_PATH
/data/work/html/mei-wocom/vendor/
RUNTIME_PATH
/data/work/html/mei-wocom/runtime/
LOG_PATH
/data/work/html/mei-wocom/runtime/log/
CACHE_PATH
/data/work/html/mei-wocom/runtime/cache/
TEMP_PATH
/data/work/html/mei-wocom/runtime/temp/
CONF_PATH
/data/work/html/mei-wocom/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
XML 地图