[8] ErrorException in News.php line 84

未定义数组索引: up

  1. }else{
  2. $idData['down']['id'] = '';
  3. $idData['down']['title'] = '';
  4. }
  5. }else{
  6. continue;
  7. }
  8. }
  9. $this->assign('categoryList', $categoryList);
  10. $this->assign('previousData', $idData['up']);//上一篇
  11. $this->assign('nextData', $idData['down']);//下一篇
  12. $this->assign('newsData',$newsData);
  13. $this->assign('getClass',$this->getClass(1));
  14. return $this->fetch();
  15. }
  16. /**
  17. public function index()
  18. {

Call Stack

  1. in News.php line 84
  2. at Error::appError(8, 'Undefined index: up', 'F:\phpstudy\phpstudy...', 84, ['id' => '83', 'idData' => [], 'categoryList' => [['id' => 24, 'name' => ' 2020年', 'alias' => '', ...], ['id' => 2, 'name' => '2019年', 'alias' => '', ...], ['id' => 3, 'name' => '2018年', 'alias' => '', ...], ...], ...]) in News.php line 84
  3. at News->show('83')
  4. at ReflectionMethod->invokeArgs(object(News), ['83']) in App.php line 224
  5. at App::invokeMethod([object(News), 'show'], []) in App.php line 389
  6. at App::module(['index', 'news', 'show'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('F:\phpstudy\phpstudy...') in index.php line 17

Exception Datas

Error Context
id
83
idData
[]
categoryList
[ { "id": 24, "name": " 2020\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 11, "pid": 1, "path": "0,1,", "create_time": "2020-01-02 09:22:07" }, { "id": 2, "name": "2019\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 10, "pid": 1, "path": "0,1,", "create_time": "2019-11-26 14:17:34" }, { "id": 3, "name": "2018\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 9, "pid": 1, "path": "0,1,", "create_time": "2019-11-26 14:17:45" }, { "id": 4, "name": "2017\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 7, "pid": 1, "path": "0,1,", "create_time": "2019-11-26 14:17:54" }, { "id": 5, "name": "2016\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 6, "pid": 1, "path": "0,1,", "create_time": "2019-11-26 14:18:04" }, { "id": 6, "name": "2015\u5e74", "alias": "", "content": "", "thumb": "", "icon": "", "list_template": "", "detail_template": "", "type": 1, "sort": 5, "pid": 1, "path": "0,1,", "create_time": "2019-11-26 14:18:43" } ]
newsData
Resource
newsIds
[]

Environment Variables

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

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
TJST-20200624
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_121
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
16
OS
Windows_NT
Path
C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\soft\Redis\;F:\soft\mysql-5.7.17-winx64\bin;C:\Program Files\Java\jdk1.8.0_121\bin;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
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
TJST-20200624$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_X_REMOTE_PORT
20000
HTTP_X_FORWARDED_FOR
154.210.127.85
HTTP_X_FORWARDED_SERVER
www.tjstgroup.com
HTTP_X_FORWARDED_HOST
www.tjstgroup.com
HTTP_X_REAL_IP
154.210.127.85
HTTP_HOST
www.tjstgroup.com
REDIRECT_STATUS
200
SERVER_NAME
127.0.0.1
SERVER_PORT
8001
SERVER_ADDR
192.168.0.11
REMOTE_PORT
14576
REMOTE_ADDR
117.25.139.53
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
F:/phpstudy/phpstudy_pro/WWW/www.tjstgroup.com
DOCUMENT_URI
/index.php
REQUEST_URI
/index/news/show/id/83.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/news/show/id/83.html
PATH_TRANSLATED
F:/phpstudy/phpstudy_pro/WWW/www.tjstgroup.com
PATH_INFO
/index/news/show/id/83.html
SCRIPT_FILENAME
F:/phpstudy/phpstudy_pro/WWW/www.tjstgroup.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1596474356.7524
REQUEST_TIME
1596474356
Environment Variables
empty

ThinkPHP Constants

APP_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com/application/
THINK_VERSION
5.0.7
THINK_START_TIME
1596474356.7545
THINK_START_MEM
395392
EXT
.php
DS
\
THINK_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\thinkphp\
LIB_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\thinkphp\library\
CORE_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\thinkphp\library\think\
TRAIT_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\thinkphp\library\traits\
ROOT_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\
EXTEND_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\extend\
VENDOR_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\vendor\
RUNTIME_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\runtime\
LOG_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\runtime\log\
CACHE_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\runtime\cache\
TEMP_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com\runtime\temp\
CONF_PATH
F:\phpstudy\phpstudy_pro\WWW\www.tjstgroup.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true