[8] ErrorException in News.php line 26

Trying to get property of non-object

  1. $this->assign('page',$res->render());
  2. $news = news()->where('status',0)->order('browse desc,list_order desc,id desc')->limit(6)->select();
  3. $this->assign('news',$news);
  4. return $this->fetch();
  5. }
  6. public function info(){
  7. $id = input('id');
  8. $list_category = newscate()->where(['status'=>0])->select();
  9. $article = news()->find($id);
  10. $article->browse = ($article->browse) +1;
  11. $article->save();
  12. $this->assign('list',$article);
  13. $cate = newscate()->find($article['cid']);
  14. $this->assign('cate',$cate);
  15. $this->assign('list_category',$list_category);
  16. $prev = news()->where('cid',$cate['id'])->where('status',0)->where('id','>',$article['id'])->order('id asc')->find();
  17. $next = news()->where('cid',$cate['id'])->where('status',0)->where('id','<',$article['id'])->order('id desc')->find();
  18. $this->assign('prev',$prev);
  19. $this->assign('next',$next);

Call Stack

  1. in News.php line 26
  2. at Error::appError(8, 'Trying to get proper...', 'C:\wwwroot\xapvec.co...', 26, ['id' => 'contact', 'list_category' => object(Collection), 'article' => null]) in News.php line 26
  3. at News->info()
  4. at ReflectionMethod->invokeArgs(object(News), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(News), object(ReflectionMethod), ['id' => 'contact', '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 432
  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 435
  18. at App->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-e2ccdc16-9be1-4f09-b886-db762f9f6c82
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\xapvec.com\xapvec.com.config
APP_POOL_ID xapvec.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 iZgiwpnzf4kfrdZ
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
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 iZgiwpnzf4kfrdZ$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/news/info/contact.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/8.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME xapvec.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME c:\wwwroot\xapvec.com\index.php
REQUEST_URI /news/info/contact.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 49254
REMOTE_HOST 52.91.0.68
REMOTE_ADDR 52.91.0.68
QUERY_STRING
PATH_TRANSLATED c:\wwwroot\xapvec.com\index.php\news\info\contact.html
PATH_INFO /news/info/contact.html
LOGON_USER
LOCAL_ADDR 172.31.62.133
INSTANCE_META_PATH /LM/W3SVC/37
INSTANCE_NAME XAPVEC.COM
INSTANCE_ID 37
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT c:\wwwroot\xapvec.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\xapvec.com\
APPL_MD_PATH /LM/W3SVC/37/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /news/info/contact.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /news/info/contact.html
HTTP_USER_AGENT claudebot
HTTP_HOST xapvec.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/news/info/contact.html
REQUEST_TIME_FLOAT 1711654995.5138
REQUEST_TIME 1711654995
Environment Variablesempty
ThinkPHP Constantsempty