[2] ErrorException in ArticleAttrService.php line 69

Attempt to assign property of non-object

  1. * @param $id
  2. * @return array|bool|false|\PDOStatement|string|\think\Model
  3. * @throws \think\db\exception\DataNotFoundException
  4. * @throws \think\db\exception\ModelNotFoundException
  5. * @throws \think\exception\DbException
  6. */
  7. public function getCategoryInfoById($id)
  8. {
  9. $info = $this->article_attr_dao->getInfoById($this->article_attr_model, $id);
  10. $info->show_num = $this->article_dao->getShowNumByAttrId($id);
  11. $info->article_num = $this->article_dao->getArticleNumByAttrId($id);
  12. $info->support_num = $this->article_dao->getSupportNumByAttrId($id);
  13. if ($info) return $info;
  14. return [];
  15. }
  16. /**
  17. *

Call Stack

  1. in ArticleAttrService.php line 69
  2. at Error::appError(2, 'Attempt to assign pr...', '/alidata/www/cqzyt/a...', 69, ['id' => '281', 'info' => []]) in ArticleAttrService.php line 69
  3. at ArticleAttrService->getCategoryInfoById('281') in Article.php line 233
  4. at Article->filterList('all', 'lm_0-0-0-0-0-0-28_pa...')
  5. at ReflectionMethod->invokeArgs(object(Article), ['all', 'lm_0-0-0-0-0-0-28_pa...']) in App.php line 343
  6. at App::invokeMethod([object(Article), 'filterList'], []) in App.php line 611
  7. at App::module(['index', 'Article', 'filterList'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['index', 'Article', 'filterList'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/alidata/www/cqzyt/t...') in index.php line 19

Environment Variables

GET Data

/raiders_all/lm_0-0-0-0-0-0-28_page1_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
cqzyt.com
PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/alidata/server/mysql/bin:/alidata/server/httpd/bin:/alidata/server/php/sbin:/alidata/server/php/bin:/root/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips PHP/5.5.7
SERVER_NAME
cqzyt.com
SERVER_ADDR
172.17.14.253
SERVER_PORT
80
REMOTE_ADDR
44.221.46.132
DOCUMENT_ROOT
/alidata/www/cqzyt/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/alidata/www/cqzyt/public
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
/alidata/www/cqzyt/public/index.php
REMOTE_PORT
40280
REDIRECT_QUERY_STRING
/raiders_all/lm_0-0-0-0-0-0-28_page1.html
REDIRECT_URL
/raiders_all/lm_0-0-0-0-0-0-28_page1.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/raiders_all/lm_0-0-0-0-0-0-28_page1.html
REQUEST_URI
/raiders_all/lm_0-0-0-0-0-0-28_page1.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711669697.435
REQUEST_TIME
1711669697
PATH_INFO
/raiders_all/lm_0-0-0-0-0-0-28_page1.html
Environment Variables
empty

ThinkPHP Constants

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