[1] ErrorException in News.php line 103

Call to a member function setInc() on a non-object

  1. // $nav_img = $this->nav_model->where('id',14)->find();
  2. // $this->assign('nav_img',$nav_img);
  3. $id = $this->request->param('id');
  4. $cid = $this->request->param('nid');
  5. $article = $this->article_model->get($id);
  6. $article->setInc('hits');
  7. $this->assign('article', $article);
  8. return $this->fetch('news_detail');
  9. }
  10. public function photo()
  11. {

Call Stack

  1. in News.php line 103
  2. at Error::appShutdown()

Environment Variables

GET Data

Menu
yes
uin
648860948
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-b8b03a6a-9cc6-431b-b47e-4648763869fc
PHP_FCGI_MAX_REQUESTS
200
PHPRC
C:\php-5-5-fastcgi\
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
d:\inetpub\temp\appPools\AP_v2.0Classic1\AP_v2.0Classic1.config
APP_POOL_ID
AP_v2.0Classic1
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
CW8012
ComSpec
C:\Windows\system32\cmd.exe
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Program Files (x86)\PHP\v7.4;C:\Windows\system32\inetsrv;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
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
D:\temp
TMP
D:\temp
USERDOMAIN
WORKGROUP
USERNAME
CW8012$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/news_detail/105/tencent:/message/
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.gringsid.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\index.php
REQUEST_URI
/news_detail/105/tencent:/message/?Menu=yes&uin=648860948
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
55816
REMOTE_HOST
192.168.0.223
REMOTE_ADDR
192.168.0.223
QUERY_STRING
Menu=yes&uin=648860948
PATH_TRANSLATED
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\index.php\news_detail\105\tencent:\message\
PATH_INFO
/news_detail/105/tencent:/message/
LOGON_USER
LOCAL_ADDR
192.168.0.168
INSTANCE_META_PATH
/LM/W3SVC/21
INSTANCE_NAME
GRINGSID
INSTANCE_ID
21
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\
APPL_MD_PATH
/LM/W3SVC/21/ROOT
IIS_UrlRewriteModule
7.1.1980.0
UNENCODED_URL
/news_detail/105/tencent:/message/?Menu=yes&uin=648860948
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/news_detail/105/tencent:/message/?Menu=yes&uin=648860948
HTTP_X_FORWARDED_PROTO
http
HTTP_X_FORWARDED_FOR
10.1.31.135, 216.73.216.141, 125.77.197.56
HTTP_X_REAL_IP
10.1.31.135
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_HOST
www.gringsid.com
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_VIA
1.1 squid-proxy-5b5d847c96-4swr9 (squid/6.13)
HTTP_CACHE_CONTROL
max-age=0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/news_detail/105/tencent:/message/
REQUEST_TIME_FLOAT
1775405826.7523
REQUEST_TIME
1775405826
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1775405826.7529
THINK_START_MEM
154576
EXT
.php
DS
\
THINK_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\thinkphp\
LIB_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\thinkphp\library\
CORE_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\thinkphp\library\think\
TRAIT_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\thinkphp\library\traits\
ROOT_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\
EXTEND_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\extend\
VENDOR_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\vendor\
RUNTIME_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\runtime\
LOG_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\runtime\log\
CACHE_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\runtime\cache\
TEMP_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot\runtime\temp\
CONF_PATH
D:\webhosting\clients\fde6ed95-65d1-4337-a505-42d96143ddc3\wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true