[8] ErrorException in Index.php line 43

未定义数组下标: 1

  1. $ye = $matches[1];
  2. //获取栏目信息
  3. $user=new Bzt_channel();
  4. $channelinfo=$user->where('deletestatu',0)->where('ename',$ye)->order('sortrank asc')->find();
  5. $this->assign('channelinfo',$channelinfo);
  6. //判断当前页码
  7. preg_match('~/a/[A-Za-z0-9]*/list_'.$channelinfo['Id'].'_([A-Za-z0-9]*).html~', $url, $matches);
  8. $yema=$matches[1];
  9. //栏目列表
  10. $user=new Bzt_channel();
  11. $channel=$user->where('deletestatu',0)->where('topid','0')->where('ishide','0')->where('level','0')->order('sortrank asc')->select();
  12. $this->assign('channel',$channel);
  13. $this->assign('ye',$ye);
  14. $this->assign('yeinfo',$yema);
  15. //文章

Call Stack

  1. in Index.php line 43
  2. at Error::appError(8, 'Undefined offset: 1', 'C:\wwwroot\xd\applic...', 43, ['req' => object(Request), 'url' => 'http://xdhuntergroup...', 'user' => object(Bzt_channel), ...]) in Index.php line 43
  3. at Index->index()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  6. at App::module(['index', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'index'], 'convert' => false], ['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:\wwwroot\xd\thinkp...') in index.php line 17

Environment Variables

GET Data

/a/xinwenzhongxin/list_2_3_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QCloud\Monitor\Barad;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
_FCGI_SHUTDOWN_EVENT_
25108
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/a/xinwenzhongxin/list_2_3.html
QUERY_STRING
/a/xinwenzhongxin/list_2_3.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/a/xinwenzhongxin/list_2_3.html
REDIRECT_URL
/a/xinwenzhongxin/list_2_3.html
REMOTE_PORT
42356
SCRIPT_FILENAME
C:/wwwroot/xd/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
C:/wwwroot/xd/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
C:/wwwroot/xd/public
REMOTE_ADDR
54.144.233.198
SERVER_PORT
80
SERVER_ADDR
172.16.255.6
SERVER_NAME
xdhuntergroup.com
SERVER_SOFTWARE
Apache/2.4.51 (Win64) OpenSSL/1.1.1l mod_fcgid/2.3.9a
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_HOST
xdhuntergroup.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711652032.0061
REQUEST_TIME
1711652032
PATH_INFO
/a/xinwenzhongxin/list_2_3.html
Environment Variables
empty

ThinkPHP Constants

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