[1] ErrorException in ProductController.php line 65

Call to a member function setInc() on null

  1. abort(404);
  2. $where = [
  3. 'create_time' => ['>=', 0],
  4. 'delete_time' => 0,
  5. 'id' => $id,
  6. 'post_status' => 1,
  7. ];
  8. $product = ProductModel::where($where)->find();
  9. $product->setInc('post_hits');
  10. if (!$product) {
  11. abort(404);
  12. }
  13. $SEO = $this->detailSeo($product, 'product');
  14. $this->assign('SEO', $SEO);
  15. $this->assign('product', $product);
  16. return $this->fetch($template);

Call Stack

  1. in ProductController.php line 65
  2. at Error::appShutdown()

Environment Variables

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

Server/Request Data

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_UNIQUE_ID
Yafz7awQBoEAAESX7RUAAABg
REDIRECT_STATUS
200
UNIQUE_ID
Yafz7awQBoEAAESX7RUAAABg
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.novker.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.novker.com
SERVER_ADDR
172.16.6.129
SERVER_PORT
80
REMOTE_ADDR
154.218.147.8
DOCUMENT_ROOT
/home/www/htdocs/novker/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/www/htdocs/novker/public
SERVER_ADMIN
webmaster@serveradmin.com
SCRIPT_FILENAME
/home/www/htdocs/novker/public/index.php
REMOTE_PORT
20001
REDIRECT_URL
/novker/product/showproduct/id/10.html
REDIRECT_QUERY_STRING
s=novker/product/showproduct/id/10.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=novker/product/showproduct/id/10.html
REQUEST_URI
/novker/product/showproduct/id/10.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1638396909.5043
REQUEST_TIME
1638396909
PATH_INFO
novker/product/showproduct/id/10.html

Environment Variables

TEMP
/tmp
TMPDIR
/tmp
TMP
/tmp
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_UNIQUE_ID
Yafz7awQBoEAAESX7RUAAABg
REDIRECT_STATUS
200
UNIQUE_ID
Yafz7awQBoEAAESX7RUAAABg
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.novker.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.novker.com
SERVER_ADDR
172.16.6.129
SERVER_PORT
80
REMOTE_ADDR
154.218.147.8
DOCUMENT_ROOT
/home/www/htdocs/novker/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/www/htdocs/novker/public
SERVER_ADMIN
webmaster@serveradmin.com
SCRIPT_FILENAME
/home/www/htdocs/novker/public/index.php
REMOTE_PORT
20001
REDIRECT_URL
/novker/product/showproduct/id/10.html
REDIRECT_QUERY_STRING
s=novker/product/showproduct/id/10.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=novker/product/showproduct/id/10.html
REQUEST_URI
/novker/product/showproduct/id/10.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1638396909.5043
REQUEST_TIME
1638396909

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/home/www/htdocs/novker/public/../
APP_PATH
/home/www/htdocs/novker/public/../app/
CMF_PATH
/home/www/htdocs/novker/public/../simplewind/cmf/
PLUGINS_PATH
/home/www/htdocs/novker/public/plugins/
EXTEND_PATH
/home/www/htdocs/novker/public/../simplewind/extend/
VENDOR_PATH
/home/www/htdocs/novker/public/../simplewind/vendor/
RUNTIME_PATH
/home/www/htdocs/novker/public/../data/runtime/
THINKCMF_VERSION
5.0.180626
THINK_VERSION
5.0.20
THINK_START_TIME
1638396909.5043
THINK_START_MEM
237312
EXT
.php
DS
/
THINK_PATH
/home/www/htdocs/novker/simplewind/thinkphp/
LIB_PATH
/home/www/htdocs/novker/simplewind/thinkphp/library/
CORE_PATH
/home/www/htdocs/novker/simplewind/thinkphp/library/think/
TRAIT_PATH
/home/www/htdocs/novker/simplewind/thinkphp/library/traits/
ROOT_PATH
/home/www/htdocs/novker/
LOG_PATH
/home/www/htdocs/novker/public/../data/runtime/log/
CACHE_PATH
/home/www/htdocs/novker/public/../data/runtime/cache/
TEMP_PATH
/home/www/htdocs/novker/public/../data/runtime/temp/
CONF_PATH
/home/www/htdocs/novker/public/../app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/home/www/htdocs/novker/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.5
0.010999s