[8] ErrorException in Category.php line 47

未定义数组下标: 20

  1. $psid = $sid;
  2. if(array_key_exists($sid, $this->classTwo))
  3. {
  4. $sorts = $this->classTwo[$sid];
  5. }
  6. $condition .= ' and (sid='.$sid.' or sid in (select id from vm_template_sort where parentid='.$sid.'))';
  7. }
  8. else
  9. {
  10. $psid = $this->classArray[$sid]['parentid'] ;
  11. $sorts = $this->classTwo[$psid];;
  12. $this->assign('sorts',$sorts);
  13. $condition .= ' and sid='.$sid;
  14. }
  15. /*$sortinfo = $sortModel->getById($sid);
  16. if($sortinfo){
  17. $condition .= ' and type="diy"';
  18. if($sortinfo->parentid == 0){
  19. $psid = $sid;

Call Stack

  1. in Category.php line 47
  2. at Error::appError(8, 'Undefined offset: 20', 'C:\wamp64\www\new23v...', 47, ['condition' => 'isaudit="y" and isde...', 'templateModel' => object(Template), 'sortModel' => object(Sort), ...]) in Category.php line 47
  3. at Category->index()
  4. at ReflectionMethod->invokeArgs(object(Category), []) in App.php line 343
  5. at App::invokeMethod([object(Category), 'index'], []) in App.php line 611
  6. at App::module(['index', 'category', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'category', 'index']], ['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('C:\wamp64\www\new23v...') in index.php line 22

Environment Variables

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

Server/Request Data

REDIRECT_SCRIPT_URL
/index/category/index/sid/20.html
REDIRECT_SCRIPT_URI
http://6dmv.23vcr.com/index/category/index/sid/20.html
REDIRECT_PATH_INFO
index/category/index/sid/20.html
REDIRECT_STATUS
200
SCRIPT_URL
/index/category/index/sid/20.html
SCRIPT_URI
http://6dmv.23vcr.com/index/category/index/sid/20.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
6dmv.23vcr.com
PATH
C:\Windows\System32\curl\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
SystemRoot
C:\windows
COMSPEC
C:\windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\windows
SERVER_SIGNATURE
<address>Apache/2.4.37 (Win64) PHP/7.2.14 Server at 6dmv.23vcr.com Port 80</address>
SERVER_SOFTWARE
Apache/2.4.37 (Win64) PHP/7.2.14
SERVER_NAME
6dmv.23vcr.com
SERVER_ADDR
10.26.94.132
SERVER_PORT
80
REMOTE_ADDR
44.211.49.158
DOCUMENT_ROOT
C:/wamp64/www/new23vcr/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
C:/wamp64/www/new23vcr/public
SERVER_ADMIN
admin@23vcr.com
SCRIPT_FILENAME
C:/wamp64/www/new23vcr/public/index.php
REMOTE_PORT
35116
REDIRECT_URL
/index/category/index/sid/20.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/index/category/index/sid/20.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711708342.532
REQUEST_TIME
1711708342
PATH_INFO
index/category/index/sid/20.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wamp64\www\new23vcr\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711708342.5442
THINK_START_MEM
401648
EXT
.php
DS
\
THINK_PATH
C:\wamp64\www\new23vcr\thinkphp\
LIB_PATH
C:\wamp64\www\new23vcr\thinkphp\library\
CORE_PATH
C:\wamp64\www\new23vcr\thinkphp\library\think\
TRAIT_PATH
C:\wamp64\www\new23vcr\thinkphp\library\traits\
ROOT_PATH
C:\wamp64\www\new23vcr\
EXTEND_PATH
C:\wamp64\www\new23vcr\extend\
VENDOR_PATH
C:\wamp64\www\new23vcr\vendor\
RUNTIME_PATH
C:\wamp64\www\new23vcr\runtime\
LOG_PATH
C:\wamp64\www\new23vcr\runtime\log\
CACHE_PATH
C:\wamp64\www\new23vcr\runtime\cache\
TEMP_PATH
C:\wamp64\www\new23vcr\runtime\temp\
CONF_PATH
C:\wamp64\www\new23vcr\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
ADDON_PATH
C:\wamp64\www\new23vcr\addons\