[8] ErrorException in InfoImg.php line 136

未定义数组索引: classid

  1. 'id' => $id
  2. ];
  3. // 数据
  4. $field = 'id,classid,title,picurl,author,keywords,linkurl,description,content,hits,posttime';
  5. $info = $Infoimg_M->where($map)
  6. ->field($field)
  7. ->find();
  8. $info['classname'] = Db::name('infoclass')->where('id', $info['classid'])->value('classname');
  9. $info['class_picurl'] = Db::name('infoclass')->where('id', $info['classid'])->value('picurl');
  10. return $info;
  11. }
  12. /**
  13. * 上一页与下一页
  14. *
  15. * @param int $id
  16. * 文章ID
  17. * @return array

Call Stack

  1. in InfoImg.php line 136
  2. at Error::appError(8, 'Undefined index: cla...', 'D:\wwwroot\hnymyx.co...', 136, ['id' => null, 'Infoimg_M' => object(Query), 'map' => ['checkinfo' => '1', 'delstate' => '', 'id' => null], ...]) in InfoImg.php line 136
  3. at InfoImg->info(null) in Image.php line 92
  4. at Image->info(null)
  5. at ReflectionMethod->invokeArgs(object(Image), [null]) in App.php line 343
  6. at App::invokeMethod([object(Image), 'info'], []) in App.php line 611
  7. at App::module(['index', 'image', 'info'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'image', 'info']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('D:\wwwroot\hnymyx.co...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-5906d99c-0472-4840-804d-ef71bd4e1183
PHPRC
D:\PHPSource\php-7.0.31-nts-Win32-VC14-x64\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config
APP_POOL_ID
DefaultAppPool
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-21BKHACQMMH
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
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:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;D:\PHPSource\php-7.3.3-nts-Win32-VC15-x64;C:\ProgramData\ComposerSetup\bin;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
WIN-21BKHACQMMH$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/index-image-info.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
hnymyx.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\hnymyx.com\public\index.php
REQUEST_URI
/index-image-info.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
45.196.91.173
REMOTE_ADDR
45.196.91.173
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\hnymyx.com\public\index.php\index-image-info.html
PATH_INFO
/index-image-info.html
LOGON_USER
LOCAL_ADDR
116.255.177.223
INSTANCE_META_PATH
/LM/W3SVC/24
INSTANCE_NAME
HNYMYX.COM
INSTANCE_ID
24
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\hnymyx.com\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
D:\wwwroot\hnymyx.com\public\
APPL_MD_PATH
/LM/W3SVC/24/ROOT
IIS_UrlRewriteModule
7.1.1980.0
WEBSOCKET_VERSION
13
UNENCODED_URL
/index-image-info.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/index-image-info.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
hnymyx.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index-image-info.html
REQUEST_TIME_FLOAT
1624035590.8843
REQUEST_TIME
1624035590
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\hnymyx.com\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1624035590.8876
THINK_START_MEM
393712
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\hnymyx.com\thinkphp\
LIB_PATH
D:\wwwroot\hnymyx.com\thinkphp\library\
CORE_PATH
D:\wwwroot\hnymyx.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\hnymyx.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\hnymyx.com\
EXTEND_PATH
D:\wwwroot\hnymyx.com\extend\
VENDOR_PATH
D:\wwwroot\hnymyx.com\vendor\
RUNTIME_PATH
D:\wwwroot\hnymyx.com\runtime\
LOG_PATH
D:\wwwroot\hnymyx.com\runtime\log\
CACHE_PATH
D:\wwwroot\hnymyx.com\runtime\cache\
TEMP_PATH
D:\wwwroot\hnymyx.com\runtime\temp\
CONF_PATH
D:\wwwroot\hnymyx.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true