[8] ErrorException in NewsController.php line 26

Trying to access array offset on value of type null

  1. $pageId = $this->request->param('id', 0, 'intval');
  2. $c_id = $this->request->param('c_id', 0, 'intval');
  3. if (empty($pageId)) {
  4. $column_data = $columnModel->alias('c')
  5. ->join('column_type ct', 'ct.id = c.type and ct.status = 1', 'left')
  6. ->where('c.id', $c_id)
  7. ->field('c.id, c.title, c.keywords, c.description, c.parent_id,ct.template')
  8. ->find();
  9. $template = $column_data['template'];
  10. $tplName = 'news';
  11. if ($template != 'news') {
  12. $tplName = empty($template) ? 'news' : $template;
  13. $redirect_url = cmf_url("ddcms/News/$tplName", ['c_id' => $c_id]);
  14. $this->redirect($redirect_url);
  15. }
  16. $this->assign('column_data', $column_data);
  17. //获取当前栏目下的列表
  18. $page = $this->request->param('page', 0, 'intval');

Call Stack

  1. in NewsController.php line 26
  2. at Error::appError(8, 'Trying to access arr...', 'D:\wwwroot\ever-glor...', 26, ['newsModel' => object(NewsModel), 'columnModel' => object(ColumnModel), 'pageId' => 0, ...]) in NewsController.php line 26
  3. at NewsController->index()
  4. at ReflectionMethod->invokeArgs(object(NewsController), []) in Container.php line 399
  5. at Container->invokeReflectMethod(object(NewsController), object(ReflectionMethod), ['mykeyword' => '', 'ClassID' => '13', 'page' => '13', ...]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 485
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 488
  18. at App->run() in index.php line 34

Environment Variables

GET Data
mykeyword
ClassID 13
page 13
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-031d35e1-b019-4f30-b14e-fbffd8b0cf43
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\ever-glory.com.cn\ever-glory.com.cn.config
APP_POOL_ID ever-glory.com.cn
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WEBSERVERNEW1
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 12
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\python;C:\Program Files\python\Scripts;D:\BtSoft\panel\script;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 165 Stepping 3, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION a503
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 C:\Windows\TEMP
TMP C:\Windows\TEMP
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME WEBSERVERNEW1$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ZES_ENABLE_SYSMAN 1
ORIG_PATH_INFO /index.php/news.asp
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.ever-glory.com.cn
SCRIPT_NAME /index.php
SCRIPT_FILENAME d:\wwwroot\ever-glory.com.cn\public\index.php
REQUEST_URI /news.asp?mykeyword=&ClassID=13&page=13
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 59181
REMOTE_HOST 192.168.51.18
REMOTE_ADDR 192.168.51.18
QUERY_STRING mykeyword=&ClassID=13&page=13
PATH_TRANSLATED d:\wwwroot\ever-glory.com.cn\public\index.php\news.asp
PATH_INFO /news.asp
LOGON_USER
LOCAL_ADDR 192.168.51.112
INSTANCE_META_PATH /LM/W3SVC/4
INSTANCE_NAME EVER-GLORY.COM.CN
INSTANCE_ID 4
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT d:\wwwroot\ever-glory.com.cn\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\ever-glory.com.cn\public\
APPL_MD_PATH /LM/W3SVC/4/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /news.asp?mykeyword=&ClassID=13&page=13
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /news.asp?mykeyword=&ClassID=13&page=13
HTTP_X_FORWARDED_FOR 34.238.138.162
HTTP_X_REAL_IP 34.238.138.162
HTTP_USER_AGENT claudebot
HTTP_HOST www.ever-glory.com.cn
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
HTTP_CONNECTION close
FCGI_ROLE RESPONDER
PHP_SELF /index.php/news.asp
REQUEST_TIME_FLOAT 1711657493.5313
REQUEST_TIME 1711657493
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT D:\wwwroot\ever-glory.com.cn/
CMF_DATA D:\wwwroot\ever-glory.com.cn/data/
APP_PATH D:\wwwroot\ever-glory.com.cn/app/
WEB_ROOT D:\wwwroot\ever-glory.com.cn\public/
HTMLPURIFIER_PREFIX D:\wwwroot\ever-glory.com.cn\vendor\ezyang\htmlpurifier\library