[8] ErrorException in NewsController.php line 1322

Trying to access array offset on value of type null

  1. //企业文化
  2. public function culture() {
  3. $newsModel = new NewsModel();
  4. $columnModel = new ColumnModel();
  5. $pageId = $this->request->param('id', 0, 'intval');
  6. $c_id = $this->request->param('c_id', 0, 'intval');
  7. $column_data = $columnModel->where('id', $c_id)->find();
  8. $column_data['content'] = htmlspecialchars_decode($column_data['content']);
  9. $column_data['text'] = htmlspecialchars_decode($column_data['text']);
  10. $this->assign('news_data', $column_data);
  11. $this->assign('column_data', $column_data);
  12. $this->assign('c_id', $c_id);
  13. $this->common($c_id, $column_data['parent_id']);
  14. return $this->fetch(":culture");
  15. }

Call Stack

  1. in NewsController.php line 1322
  2. at Error::appError(8, 'Trying to access arr...', 'D:\wwwroot\ever-glor...', 1322, ['newsModel' => object(NewsModel), 'columnModel' => object(ColumnModel), 'pageId' => 0, ...]) in NewsController.php line 1322
  3. at NewsController->culture()
  4. at ReflectionMethod->invokeArgs(object(NewsController), []) in Container.php line 399
  5. at Container->invokeReflectMethod(object(NewsController), object(ReflectionMethod), ['col_id' => '1900', 'c_id' => 'culture', 'convert' => false]) 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
col_id 1900
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-2689336b-b131-4fb9-b209-50521b4e8c8d
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/culture/culture.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 /culture/culture.asp?col_id=1900
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 57238
REMOTE_HOST 192.168.51.18
REMOTE_ADDR 192.168.51.18
QUERY_STRING col_id=1900
PATH_TRANSLATED d:\wwwroot\ever-glory.com.cn\public\index.php\culture\culture.asp
PATH_INFO /culture/culture.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 /culture/culture.asp?col_id=1900
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /culture/culture.asp?col_id=1900
HTTP_X_FORWARDED_FOR 3.235.243.45
HTTP_X_REAL_IP 3.235.243.45
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/culture/culture.asp
REQUEST_TIME_FLOAT 1711654732.6972
REQUEST_TIME 1711654732
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