[1] ErrorException in Loupan.php line 281

Call to a member function toArray() on null

  1. }
  2. //沙盘
  3. private function getProperty($id){
  4. $pro_img = model('house_property_pic')->where(['house_id'=>$id])->find();
  5. $this->assign('property_pic',$pro_img);
  6. }
  7. //楼盘详细
  8. private function getHouseInfo($id){
  9. $info = model('house')->where(['id'=>$id,'status'=>1])->find()->toArray();
  10. //$info_data = model('house_data')->where(['id'=>$id])->find()->toArray();
  11. $info_data = model('house_data')->where(['id'=>$id])->find();
  12. if($info_data){
  13. $info_data = $info_data->toArray();
  14. }else{
  15. $info_data = [];
  16. }
  17. return array_merge($info,$info_data);
  18. }

Call Stack

  1. in Loupan.php line 281
  2. at Error::appShutdown()

Environment Variables

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

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Users\Administrator\AppData\Roaming
CLIENTNAME
BERRY-PC
CommonProgramFiles
C:\Program Files\Common Files
COMPUTERNAME
AY130922113240Z
ComSpec
C:\Windows\system32\cmd.exe
DFSTRACINGON
FALSE
FP_NO_HOST_CHECK
NO
HOMEDRIVE
C:
HOMEPATH
\Users\Administrator
LOCALAPPDATA
C:\Users\Administrator\AppData\Local
LOGONSERVER
\\AY130922113240Z
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;d:\Program Files\Microsoft SQL Server\100\Tools\Binn\;d:\Program Files\Microsoft SQL Server\100\DTS\Binn\;d:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\wnmp\mysql\bin
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_IDENTIFIER
x86 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
PROMPT
$P$G
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SESSIONNAME
RDP-Tcp#0
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
TRACE_FORMAT_SEARCH_PATH
\\winseqfe\release\Windows6.0\lh_sp2rtm\6002.18005.090410-1830\x86fre\symbols.pri\TraceFormat
USERDOMAIN
AY130922113240Z
USERNAME
Administrator
USERPROFILE
C:\Users\Administrator
windir
C:\Windows
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
chancewayhk.com
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS
200
SERVER_NAME
www.chancewayhk.com
SERVER_PORT
80
SERVER_ADDR
118.190.71.95
REMOTE_PORT
56940
REMOTE_ADDR
44.192.10.166
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:\WebHosts\hydc\public
DOCUMENT_URI
/index.php
REQUEST_URI
/loupan/86.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/loupan/86.html
PATH_TRANSLATED
D:\WebHosts\hydc\public
PATH_INFO
/loupan/86.html
SCRIPT_FILENAME
D:\WebHosts\hydc\public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1615049045.3188
REQUEST_TIME
1615049045
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\WebHosts\hydc\public/../application/
THINK_VERSION
5.0.10
THINK_START_TIME
1615049045.3188
THINK_START_MEM
150584
EXT
.php
DS
\
THINK_PATH
D:\WebHosts\hydc\thinkphp\
LIB_PATH
D:\WebHosts\hydc\thinkphp\library\
CORE_PATH
D:\WebHosts\hydc\thinkphp\library\think\
TRAIT_PATH
D:\WebHosts\hydc\thinkphp\library\traits\
ROOT_PATH
D:\WebHosts\hydc\
EXTEND_PATH
D:\WebHosts\hydc\extend\
VENDOR_PATH
D:\WebHosts\hydc\vendor\
RUNTIME_PATH
D:\WebHosts\hydc\runtime\
LOG_PATH
D:\WebHosts\hydc\runtime\log\
CACHE_PATH
D:\WebHosts\hydc\runtime\cache\
TEMP_PATH
D:\WebHosts\hydc\runtime\temp\
CONF_PATH
D:\WebHosts\hydc\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true