[8] ErrorException in Cultural.php line 123

未定义数组下标: 0

  1. $param=input('param.');
  2. $tag=Db::name('classify')->where('id',$param['pid'])->find();
  3. if($tag['pid']==0){
  4. $list=Db::name('classify')->where('pid',$param['pid'])->order('sort asc')->column('id');
  5. }else{
  6. $tag=Db::name('classify')->where('id',$tag['pid'])->find();
  7. $list=Db::name('classify')->where('pid',$tag['id'])->order('sort asc')->column('id');
  8. }
  9. $jspt=Db::name('classify')->where('pid',$list[0])->order('sort asc')->limit(5)->select();
  10. $jjfa=Db::name('classify')->where('pid',$list[1])->order('sort asc')->limit(6)->select();
  11. if (isset($list[2])) {
  12. $xcsp=Db::name('article')->where('cid',$list[2])->order('sort asc')->find();
  13. } else {
  14. $xcsp = [];
  15. }
  16. if(empty($jspt)){
  17. $jspt='';

Call Stack

  1. in Cultural.php line 123
  2. at Error::appError(8, 'Undefined offset: 0', 'C:\wwwroot\001\schk\...', 123, ['param' => ['pid' => '4', 'pids' => '1'], 'tag' => null, 'list' => []]) in Cultural.php line 123
  3. at Cultural->was()
  4. at ReflectionMethod->invokeArgs(object(Cultural), []) in App.php line 232
  5. at App::invokeMethod([object(Cultural), 'was'], []) in App.php line 397
  6. at App::module(['home', 'cultural', 'was'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 140
  7. at App::run() in start.php line 18
  8. at require('C:\wwwroot\001\schk\...') in index.php line 17

Exception Datas

Error Context
param { "pid": "4", "pids": "1" }
tag Resource
list []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-b28b1763-5d1b-47ec-98c7-48c5510a0d5a
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\101.132.226.46\101.132.226.46.config
APP_POOL_ID 101.132.226.46
BT_PANEL C:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP C:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME iZpu5xccn86czvZ
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 2
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 5507
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Windows\TEMP
TMP C:\Windows\TEMP
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME iZpu5xccn86czvZ$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/home/cultural/was/pid/4/pids/1.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME chinagraphics.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME C:\wwwroot\001\schk\schk\public\index.php
REQUEST_URI /home/cultural/was/pid/4/pids/1.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 43716
REMOTE_HOST 3.230.76.153
REMOTE_ADDR 3.230.76.153
QUERY_STRING
PATH_TRANSLATED C:\wwwroot\001\schk\schk\public\index.php\home\cultural\was\pid\4\pids\1.html
PATH_INFO /home/cultural/was/pid/4/pids/1.html
LOGON_USER
LOCAL_ADDR 172.24.34.1
INSTANCE_META_PATH /LM/W3SVC/4
INSTANCE_NAME 101.132.226.46
INSTANCE_ID 4
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT C:\wwwroot\001\schk\schk\public
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH C:\wwwroot\001\schk\schk\public\
APPL_MD_PATH /LM/W3SVC/4/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /home/cultural/was/pid/4/pids/1.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /home/cultural/was/pid/4/pids/1.html
HTTP_USER_AGENT claudebot
HTTP_HOST chinagraphics.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/home/cultural/was/pid/4/pids/1.html
REQUEST_TIME_FLOAT 1711656744.1236
REQUEST_TIME 1711656744
Environment Variablesempty
ThinkPHP Constants
APP_PATH C:\wwwroot\001\schk\schk\public/../application/
THINK_VERSION 5.0.3
THINK_START_TIME 1711656744.1239
THINK_START_MEM 372200
EXT .php
DS \
THINK_PATH C:\wwwroot\001\schk\schk\thinkphp\
LIB_PATH C:\wwwroot\001\schk\schk\thinkphp\library\
CORE_PATH C:\wwwroot\001\schk\schk\thinkphp\library\think\
TRAIT_PATH C:\wwwroot\001\schk\schk\thinkphp\library\traits\
ROOT_PATH C:\wwwroot\001\schk\schk\
EXTEND_PATH C:\wwwroot\001\schk\schk\extend\
VENDOR_PATH C:\wwwroot\001\schk\schk\vendor\
RUNTIME_PATH C:\wwwroot\001\schk\schk\runtime\
LOG_PATH C:\wwwroot\001\schk\schk\runtime\log\
CACHE_PATH C:\wwwroot\001\schk\schk\runtime\cache\
TEMP_PATH C:\wwwroot\001\schk\schk\runtime\temp\
CONF_PATH C:\wwwroot\001\schk\schk\public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN true