[0] ThrowableError in Index.php line 181

致命错误: Call to a member function getData() on null

  1. }
  2. function details()
  3. {
  4. $this->import('action', 'zixun');
  5. $id = input('id', 0, 'intval');
  6. $find = Article::where('status', 1)->where('id', $id)->find();
  7. $find->time = date('m-d-Y', $find->getData('create_time'));
  8. $this->import('find', $find);
  9. $zixun = Article::where('status', 1)->where('type', $find->type)->limit(3)->order('id desc')->select();
  10. $this->import('zixun', $zixun);
  11. return $this->output();
  12. }
  13. function hugong()

Call Stack

  1. in Index.php line 181
  2. at Index->details()
  3. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  4. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '324']) in Module.php line 132
  5. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  6. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  7. at Middleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  9. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 433
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 436
  17. at App->run() in index.php line 22

Environment Variables

GET Data
id 324
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-df857818-306c-45f4-b28c-56a1dfb4014f
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\guangson.com\guangson.com.config
APP_POOL_ID guangson.com
BT_PANEL C:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP C:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME YISU-65F2CF5322
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 2
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\python;C:\Program Files\python\Scripts;;C:\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 AMD64 Family 23 Model 49 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL 23
PROCESSOR_REVISION 3100
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 YISU8165F2CF
USERNAME YISU-65F2CF5322$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/index/index/details.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.guangson.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME c:\wwwroot\guangson.com\index.php
REQUEST_URI /index/index/details.html?id=324
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 60354
REMOTE_HOST 44.204.218.79
REMOTE_ADDR 44.204.218.79
QUERY_STRING id=324
PATH_TRANSLATED c:\wwwroot\guangson.com\index.php\index\index\details.html
PATH_INFO /index/index/details.html
LOGON_USER
LOCAL_ADDR 154.221.25.18
INSTANCE_META_PATH /LM/W3SVC/39
INSTANCE_NAME GUANGSON.COM
INSTANCE_ID 39
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT c:\wwwroot\guangson.com
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH c:\wwwroot\guangson.com\
APPL_MD_PATH /LM/W3SVC/39/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /index/index/details.html?id=324
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /index/index/details.html?id=324
HTTP_USER_AGENT claudebot
HTTP_HOST www.guangson.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/index/details.html
REQUEST_TIME_FLOAT 1711663194.843
REQUEST_TIME 1711663194
Environment Variablesempty
ThinkPHP Constants
PHP_OS_FAMILY Windows