[8] ErrorException in Article.php line 14

Undefined property: app\school\controller\Article::$school_id

  1. use think\facade\Cache;
  2. use think\facade\Request;
  3. use think\facade\Cookie;
  4. class Article extends Base
  5. {
  6. public function index($catid){
  7. $cat = model('category')->where('id',$catid)->find();
  8. $list = model('article')->get_page($catid,$this->school_id,$this->school_info['school_url'].$cat['ename'].'/',$cat['page']);
  9. $this->assign('list',$list);
  10. $this->assign('cat',$cat);
  11. $this->assign('cat_type',$cat['ename']);
  12. if($this->ismobile){
  13. return $this->fetch('m/school/article');
  14. }else{
  15. return $this->fetch('pc/school/article');
  16. }
  17. }

Call Stack

  1. in Article.php line 14
  2. at Error::appError(8, 'Undefined property: ...', '/www/wwwroot/www.kao...', 14, ['catid' => '19', 'cat' => object(Category)]) in Article.php line 14
  3. at Article->index('19')
  4. at ReflectionMethod->invokeArgs(object(Article), ['19']) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Article), object(ReflectionMethod), ['catid' => '19', 'ename' => 'sjzjxhbbxy', 'convert' => false]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_ALICDN_DA_VIA 58.218.215.165,123.183.234.121
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 3.238.62.119
HTTP_ALI_SWIFT_STAT_HOST m.kaoyanying.com
HTTP_ALI_SWIFT_LOG_HOST m.kaoyanying.com
HTTP_ALI_CDN_REAL_IP 3.238.62.119
HTTP_ALI_CDN_REAL_PORT 52926
HTTP_EAGLEEYE_TRACEID 3adad01917116695364606597e
HTTP_VIA cn192.l1, l2na63-1.l2
HTTP_HOST m.kaoyanying.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME m.kaoyanying.com
SERVER_PORT 443
SERVER_ADDR 172.29.248.70
REMOTE_PORT 38322
REMOTE_ADDR 39.100.171.204
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.kaoyanying.com/public
DOCUMENT_URI /index.php
REQUEST_URI /sjzjxhbbxy/chachengji/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/sjzjxhbbxy/chachengji/
SCRIPT_FILENAME /www/wwwroot/www.kaoyanying.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711669536.4846
REQUEST_TIME 1711669536
Environment Variablesempty
ThinkPHP Constants
PHP_FLOAT_DIG 15
PHP_FLOAT_EPSILON 2.2204460492503E-16
PHP_FLOAT_MIN 2.2250738585072E-308
PHP_FLOAT_MAX 1.7976931348623E+308
PHP_OS_FAMILY Linux
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
QINIU_FUNCTIONS_VERSION 7.4.1