[8] ErrorException in Goods.php line 139

未定义数组索引: pid

  1. $this->assign('total',$total);
  2. $this->assign('firstgoods',$firstgoods);
  3. $this->assign('secondgoods',$secondgoods);
  4. $this->assign('nav',$nav);
  5. $this->assign('parentid',$parentid);
  6. $this->assign('paramsLsit',$paramsLsit);
  7. $this->assign('paramsValue',$paramsvalue);
  8. $this->assign('paramsid',$paramsid);
  9. $this->assign('catelist',$catelist);
  10. if($parentid=='sfdkpiwxin'||$parentid=='evkzrjmgrt'||$goodcate['pid']=='sfdkpiwxin'||$goodcate['pid']=='evkzrjmgrt'){
  11. return $this->fetch($this->template_dir.'newsearch');
  12. }else{
  13. return $this->fetch($this->template_dir.'search');
  14. }
  15. }
  16. public function detail()
  17. {
  18. $parentid = trim(input('parentid'));

Call Stack

  1. in Goods.php line 139
  2. at Error::appError(8, 'Undefined index: pid', '/opt/rossum-robot/ro...', 139, ['num' => 8, 'page' => null, 'parentid' => 'fkaiefnkau', ...]) in Goods.php line 139
  3. at goods->search()
  4. at ReflectionMethod->invokeArgs(object(goods), []) in App.php line 343
  5. at App::invokeMethod([object(goods), 'search'], []) in App.php line 611
  6. at App::module(['index', 'goods', 'search'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'goods', 'search']], ['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('/opt/rossum-robot/ro...') in index.php line 25

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

home_lang
zh-cn

Session

think
{ "siteid": 15, "siteStatus": 1 }

Server/Request Data

USER
nobody
HOME
/
HTTP_HOST
rossum-robot.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PHP_VALUE
open_basedir=/opt/rossum-robot/rossum-robot/:/tmp/:/proc/
REDIRECT_STATUS
200
SERVER_NAME
rossum-robot.com
SERVER_PORT
443
SERVER_ADDR
172.18.232.231
REMOTE_PORT
37338
REMOTE_ADDR
3.88.254.50
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/opt/rossum-robot/rossum-robot/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/goods/search/parentid/fkaiefnkau.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/goods/search/parentid/fkaiefnkau.html
SCRIPT_FILENAME
/opt/rossum-robot/rossum-robot/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711637944.3069
REQUEST_TIME
1711637944
PATH_INFO
/index/goods/search/parentid/fkaiefnkau.html
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/opt/rossum-robot/rossum-robot/public
APP_PATH
/opt/rossum-robot/rossum-robot/public/../application/
UPLOAD_PATH
/opt/rossum-robot/rossum-robot/public/public/upload/
PUBLIC_PATH
/opt/rossum-robot/rossum-robot/public/public/
__PUBLIC__
HTTP
https://
NOWTIME
1711637944
SITE_URL
https://rossum-robot.com
THINK_VERSION
5.0.24
THINK_START_TIME
1711637944.3073
THINK_START_MEM
415296
EXT
.php
DS
/
THINK_PATH
/opt/rossum-robot/rossum-robot/thinkphp/
LIB_PATH
/opt/rossum-robot/rossum-robot/thinkphp/library/
CORE_PATH
/opt/rossum-robot/rossum-robot/thinkphp/library/think/
TRAIT_PATH
/opt/rossum-robot/rossum-robot/thinkphp/library/traits/
EXTEND_PATH
/opt/rossum-robot/rossum-robot/publicextend/
VENDOR_PATH
/opt/rossum-robot/rossum-robot/publicvendor/
RUNTIME_PATH
/opt/rossum-robot/rossum-robot/publicruntime/
LOG_PATH
/opt/rossum-robot/rossum-robot/publicruntime/log/
CACHE_PATH
/opt/rossum-robot/rossum-robot/publicruntime/cache/
TEMP_PATH
/opt/rossum-robot/rossum-robot/publicruntime/temp/
CONF_PATH
/opt/rossum-robot/rossum-robot/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SESSION_ID
SITEID
15
WEBCODE
rossum9ED2
HASMOBILE
0
GOODSNUM
8
NEWSNUM
9
CASESNUM
8
BACKGROUD
COLOR
Resource
WEBCODEDIR
rossum9ED2/
MODULE
index
CONTROLLER
Goods
ACTION
search
TIMESTAMP
1711637944
SESSIONID
sb1affi42b4lu5o8rv8rrq17bl
SALTSTR
sd45wt5^&*%$%1248``;sb1affi42b4lu5o8rv8rrq17bl
IS_AJAX
false
IS_POST
false
IS_GET
true