[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
B9-4
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ948e0t73qZ
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
HOMEDRIVE
C:
HOMEPATH
\Users\Administrator
LOCALAPPDATA
C:\Users\Administrator\AppData\Local
LOGONSERVER
\\iZ948e0t73qZ
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 (x86)\WebEnv\mysql5.6.25\bin;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
php
D:\Program Files (x86)\WebEnv\php5.6.10
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
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
USERDOMAIN
iZ948e0t73qZ
USERDOMAIN_ROAMINGPROFILE
iZ948e0t73qZ
USERNAME
Administrator
USERPROFILE
C:\Users\Administrator
windir
C:\Windows
HTTP_ACCEPT_ENCODING
gzip
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.chancewayhk.com
HTTP_IF_MODIFIED_SINCE
Thu, 21 Feb 2019 05:01:49 CET
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
172.18.1.58
REMOTE_PORT
44690
REMOTE_ADDR
18.234.111.56
SERVER_SOFTWARE
nginx/1.9.3
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
E:/wwwroot/hydc/public
DOCUMENT_URI
/index.php
REQUEST_URI
/loupan/75.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/loupan/75.html
PATH_TRANSLATED
E:/wwwroot/hydc/public
PATH_INFO
/loupan/75.html
SCRIPT_FILENAME
E:/wwwroot/hydc/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1555627228.6563
REQUEST_TIME
1555627228
Environment Variables
empty

ThinkPHP Constants

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