[8] ErrorException in Index.php line 185

Trying to get property 'forpeople' of non-object

  1. ];
  2. return viewMobileOrPc ( 'worksAll', $assignData );
  3. }
  4. /**
  5. * 作品详情
  6. */
  7. public function worksInfo($id) {
  8. $info = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'fatherid', 29 )->where ( 'id', $id )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->find ();
  9. $people = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'fatherid', 24 )->where ( 'id', $info->forpeople )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->find ();
  10. $list1 = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'style', $info->style )->where ( 'fatherid', 29 )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->limit ( 6 )->select ();
  11. $list2 = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'loupan', $info->loupan )->where ( 'fatherid', 29 )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->limit ( 6 )->select ();
  12. $list3 = model ( 'Article' )->alias ( 'a' )->join ( '__AEFAULT_ARTICLE__ b', 'a.id = b.for_id' )->where ( 'forpeople', $info->forpeople )->where ( 'fatherid', 29 )->where ( 'state', 1 )->where ( 'type', 2 )->order ( 'sort DESC,id DESC' )->limit ( 6 )->select ();
  13. return viewMobileOrPc ( 'worksInfo', [
  14. 'info' => $info,
  15. 'people' => $people,
  16. 'list1' => $list1,

Call Stack

  1. in Index.php line 185
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/dl.zhon...', 185, ['id' => '734', 'info' => null]) in Index.php line 185
  3. at Index->worksInfo('734')
  4. at ReflectionMethod->invokeArgs(object(Index), ['734']) in App.php line 343
  5. at App::invokeMethod([object(Index), 'worksInfo'], []) in App.php line 611
  6. at App::module(['index', 'Index', 'worksInfo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'Index', 'worksInfo']], ['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
zczsdl.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index-Index-worksInfo-id-734.html
REDIRECT_STATUS
200
SERVER_NAME
www.zczsdl.com
SERVER_PORT
80
SERVER_ADDR
172.18.137.234
REMOTE_PORT
39596
REMOTE_ADDR
3.88.254.50
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-worksInfo-id-734.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index-Index-worksInfo-id-734.html
SCRIPT_FILENAME
/www/wwwroot/dl.zhongce.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711643839.5484
REQUEST_TIME
1711643839
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/dl.zhongce.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711643839.5488
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