[8] ErrorException in Index.php line 279

Trying to get property 'browse' of non-object

  1. ];
  2. $tempData1 = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( $map1 )->order ( 'sort DESC,id DESC' )->find ();
  3. $list = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'forpeople', $id )->where ( 'fatherid', 29 )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->select ();
  4. $assignData = [
  5. 'info' => $tempData1,
  6. 'list' => $list
  7. ];
  8. // 访问量新增
  9. model ( 'AefaultArticle' ) -> save ([
  10. 'browse' => $tempData1 -> browse + 1
  11. ], [
  12. 'for_id' => $id
  13. ]);
  14. return viewMobileOrPc ( 'designerInfo', $assignData );
  15. }
  16. /**

Call Stack

  1. in Index.php line 279
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/dl.zhon...', 279, ['id' => '647', 'map1' => ['fatherid' => 24, 'state' => 1, 'type' => 2, ...], 'tempData1' => null, ...]) in Index.php line 279
  3. at Index->designerInfo('647')
  4. at ReflectionMethod->invokeArgs(object(Index), ['647']) in App.php line 343
  5. at App::invokeMethod([object(Index), 'designerInfo'], []) in App.php line 611
  6. at App::module(['index', 'Index', 'designerInfo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'Index', 'designerInfo']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/dl.zhon...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.zczsdl.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index-Index-designerInfo-id-647.html
REDIRECT_STATUS
200
SERVER_NAME
www.zczsdl.com
SERVER_PORT
80
SERVER_ADDR
172.18.137.234
REMOTE_PORT
56248
REMOTE_ADDR
35.172.194.25
SERVER_SOFTWARE
nginx/1.14.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/dl.zhongce.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index-Index-designerInfo-id-647.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index-Index-designerInfo-id-647.html
SCRIPT_FILENAME
/www/wwwroot/dl.zhongce.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711693122.176
REQUEST_TIME
1711693122
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/dl.zhongce.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711693122.1764
THINK_START_MEM
403808
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/dl.zhongce.cn/thinkphp/
LIB_PATH
/www/wwwroot/dl.zhongce.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/dl.zhongce.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/dl.zhongce.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/dl.zhongce.cn/
EXTEND_PATH
/www/wwwroot/dl.zhongce.cn/extend/
VENDOR_PATH
/www/wwwroot/dl.zhongce.cn/vendor/
RUNTIME_PATH
/www/wwwroot/dl.zhongce.cn/runtime/
LOG_PATH
/www/wwwroot/dl.zhongce.cn/runtime/log/
CACHE_PATH
/www/wwwroot/dl.zhongce.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/dl.zhongce.cn/runtime/temp/
CONF_PATH
/www/wwwroot/dl.zhongce.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false