[8] ErrorException in Product.php line 248

未定义数组索引: part2

  1. $one = Db::name(TABLE)
  2. ->where($map)
  3. ->find();
  4. if(cookie('think_var') != 'zh-cn'){
  5. $one['title'] = $one['title_'.$this->lang_sign];
  6. }
  7. $one['part'][] = Lucn::getCate($one['part1'],'part');
  8. $one['part'][] = Lucn::getCate($one['part2'],'part');
  9. $cid = $one['category_id'];
  10. $category_all = $this->cache['category'];
  11. $category = Lucn::getCategoryFromType($category_all,SIGN);
  12. $category_one = Lucn::getCategoryFromType($category,$cid,'id');
  13. if(empty($category_one)){
  14. $category_one['id'] = 0;
  15. $category_one['name'] = 'manbetx官网电脑版大全';
  16. $category_one['nickname'] = $category_one['name'];

Call Stack

  1. in Product.php line 248
  2. at Error::appError(8, 'Undefined index: par...', 'D:\web\fastadmin\app...', 248, ['id' => 74, 'map' => ['id' => 74], 'one' => ['part' => [['id' => 1, 'title' => '...', 'content' => '...']]]]) in Product.php line 248
  3. at Product->view()
  4. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  5. at App::invokeMethod([object(Product), 'view'], []) in App.php line 611
  6. at App::module(['home', 'product', 'view'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['home', 'product', 'view']], ['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('D:\web\fastadmin\thi...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
zh-cn
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-f6ce0f56-a145-4234-a2ab-7c90180c7357
PHPRC
E:\soft\php_7.1.4\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\hnsnpump.com\hnsnpump.com.config
APP_POOL_ID
hnsnpump.com
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
KavvveJSHlr5
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\;D:\webroot\zzidcconf\mysql56\bin;E:\soft\php_7.1.4;C:\Program Files\Microsoft\Web Platform Installer\;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 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
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
E:\TEMP
TMP
E:\TEMP
USERDOMAIN
WORKGROUP
USERNAME
KavvveJSHlr5$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/home-product-view-id-74.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.hnsnpump.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\web\fastadmin\public\index.php
REQUEST_URI
/home-product-view-id-74.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
154.88.83.154
REMOTE_ADDR
154.88.83.154
QUERY_STRING
PATH_TRANSLATED
D:\web\fastadmin\public\index.php\home-product-view-id-74.html
PATH_INFO
/home-product-view-id-74.html
LOGON_USER
LOCAL_ADDR
122.114.110.200
INSTANCE_META_PATH
/LM/W3SVC/1
INSTANCE_NAME
HNSNPUMP.COM
INSTANCE_ID
1
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\web\fastadmin\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:\web\fastadmin\public\
APPL_MD_PATH
/LM/W3SVC/1/ROOT
IIS_UrlRewriteModule
7.1.1952.0
WEBSOCKET_VERSION
13
UNENCODED_URL
/home-product-view-id-74.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/home-product-view-id-74.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.hnsnpump.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/home-product-view-id-74.html
REQUEST_TIME_FLOAT
1590674822.7337
REQUEST_TIME
1590674822
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\web\fastadmin\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1590674822.738
THINK_START_MEM
366792
EXT
.php
DS
\
THINK_PATH
D:\web\fastadmin\thinkphp\
LIB_PATH
D:\web\fastadmin\thinkphp\library\
CORE_PATH
D:\web\fastadmin\thinkphp\library\think\
TRAIT_PATH
D:\web\fastadmin\thinkphp\library\traits\
ROOT_PATH
D:\web\fastadmin\
EXTEND_PATH
D:\web\fastadmin\extend\
VENDOR_PATH
D:\web\fastadmin\vendor\
RUNTIME_PATH
D:\web\fastadmin\runtime\
LOG_PATH
D:\web\fastadmin\runtime\log\
CACHE_PATH
D:\web\fastadmin\runtime\cache\
TEMP_PATH
D:\web\fastadmin\runtime\temp\
CONF_PATH
D:\web\fastadmin\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
ADDON_PATH
D:\web\fastadmin\addons\
TABLE
product
SIGN
product