[8] ErrorException in SchoolArticleLogic.php line 460

Trying to get property 'value' of non-object

  1. $classifyInfo = CodeValueLogic::getCodeInfoBySelfCode($code);
  2. $classifyList = CodeValueLogic::getSUbCodeValueInfoList($code);
  3. $arr = [];
  4. foreach ($classifyList as $key => $value) {
  5. $arr[] = $value->value;
  6. }
  7. if($arr) {
  8. $query->where('t0.classify', 'in', $arr);
  9. } else {
  10. $query->where('t0.classify', '=', $classifyInfo->value);
  11. }
  12. }
  13. $query->where('t0.show_time', '<=', date('Y-m-d H:i:s'));
  14. if(!empty($keywords) && $keywords) {
  15. if(strpos($keywords, ',') !== false) {
  16. $keywordArr = explode(',', $keywords);
  17. foreach ( $keywordArr as $key => $value) {

Call Stack

  1. in SchoolArticleLogic.php line 460
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.gxw...', 460, ['classify' => 0, 'type' => 0, 'code' => 'partyed', ...]) in SchoolArticleLogic.php line 460
  3. at SchoolArticleLogic::getArticleList(0, 0, 'partyed', 0, 0, 1, 10, 0) in e0257161357572bc65debe202469f7d4.php line 597
  4. at include('/www/wwwroot/www.gxw...') in File.php line 59
  5. at File->read('/www/wwwroot/www.gxw...', ['userInfo' => null, 'module_name' => 'index', 'controller_name' => 'News', ...]) in Template.php line 226
  6. at Template->fetch('/www/wwwroot/www.gxw...', ['userInfo' => null, 'module_name' => 'index', 'controller_name' => 'News', ...], []) in Think.php line 93
  7. at Think->fetch('/www/wwwroot/www.gxw...', ['userInfo' => null, 'module_name' => 'index', 'controller_name' => 'News', ...], []) in View.php line 192
  8. at View->fetch('', ['userInfo' => null, 'module_name' => 'index', 'controller_name' => 'News', ...], [], false) in View.php line 42
  9. at View->output('') in Response.php line 396
  10. at Response->getContent() in Response.php line 128
  11. at Response->send() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "start": "1" }
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.gxwedu.net
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.gxwedu.net
SERVER_PORT 80
SERVER_ADDR 58.49.151.70
REMOTE_PORT 41470
REMOTE_ADDR 34.228.213.183
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.gxwedu.net/public
DOCUMENT_URI /index.php
REQUEST_URI /xinwen/shizhengyaowen/partyed/10137.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/xinwen/shizhengyaowen/partyed/10137.html
SCRIPT_FILENAME /www/wwwroot/www.gxwedu.net/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711722641.2161
REQUEST_TIME 1711722641
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.gxwedu.net/public\..\application\
BASE_PATH /www/wwwroot/www.gxwedu.net/public\
LOG_PATH /www/wwwroot/www.gxwedu.net/public/../runtime/log/
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256