[8] ErrorException in Drive.php line 65

Trying to access array offset on value of type null

  1. $pid = $this->request->param('fid');
  2. $faqinfo = DB::name('productsziliao')
  3. ->field('*')
  4. ->order('id desc')
  5. ->where('id=' . $pid . '')
  6. // ->cache(true)
  7. ->find();
  8. $hostUrl="http://www.helpass.com";
  9. $hostUrlBase = 'http://127.0.0.1/helpass202166/public/';
  10. $faqinfo['wenjian']=$hostUrlBase.$faqinfo['wenjian'];
  11. // print '<pre>';
  12. // print_r($faqinfo);
  13. // exit();
  14. $this->view->assign("faqinfo", $faqinfo);
  15. return $this->view->fetch();
  16. }
  17. }

Call Stack

  1. in Drive.php line 65
  2. at Error::appError(8, 'Trying to access arr...', 'C:\wwwroot\helpass.c...', 65, ['pid' => '37', 'faqinfo' => null]) in Drive.php line 65
  3. at Drive->detail()
  4. at ReflectionMethod->invokeArgs(object(Drive), []) in App.php line 343
  5. at App::invokeMethod([object(Drive), 'detail'], []) in App.php line 611
  6. at App::module(['index', 'drive', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'drive', 'detail']], ['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\helpass.c...') in index.php line 23

Environment Variables

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

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
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
iZbp15no5pw8i5h
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\TortoiseSVN\bin;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
PHP_FCGI_MAX_REQUESTS
2000
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
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
iZbp15no5pw8i5h$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_HOST
helpass.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
helpass.com
SERVER_PORT
80
SERVER_ADDR
172.16.172.44
REMOTE_PORT
46590
REMOTE_ADDR
3.128.78.41
SERVER_SOFTWARE
nginx/1.21.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
c:/wwwroot/helpass.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/drive/detail/fid/37.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/drive/detail/fid/37.html
PATH_INFO
/index/drive/detail/fid/37.html
SCRIPT_FILENAME
c:/wwwroot/helpass.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713460220.9984
REQUEST_TIME
1713460220
Environment Variables
empty

ThinkPHP Constants

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