[0] InvalidArgumentException in Model.php line 626

类的属性不存在:app\index\model\Cate->desc

  1. } elseif ($notFound) {
  2. $relation = Loader::parseName($name, 1, false);
  3. if (method_exists($this, $relation)) {
  4. $modelRelation = $this->$relation();
  5. // 不存在该字段 获取关联数据
  6. $value = $this->getRelationData($modelRelation);
  7. // 保存关联对象值
  8. $this->relation[$name] = $value;
  9. } else {
  10. throw new InvalidArgumentException('property not exists:' . $this->class . '->' . $name);
  11. }
  12. }
  13. return $value;
  14. }
  15. /**
  16. * 获取关联模型数据
  17. * @access public
  18. * @param Relation $modelRelation 模型关联对象

Call Stack

  1. in Model.php line 626
  2. at Model->getAttr('desc') in Model.php line 2294
  3. at Model->offsetGet('desc') in b6501a296617d0b742d7e8f3c3ebae60.php line 7
  4. at include('/www/wwwroot/haotian...') in File.php line 53
  5. at File->read('/www/wwwroot/haotian...', ['posArr' => [['id' => 3, 'pid' => 0, 'catename' => 'News']], 'confres' => ['sitename' => 'FunTrip', 'keywords' => '...', 'descs' => '...', ...], 'cateres' => [['id' => 1, 'catename' => 'Products', 'catename_cn' => null, ...], ['id' => 2, 'catename' => 'Videos', 'catename_cn' => null, ...], ['id' => 3, 'catename' => 'News', 'catename_cn' => null, ...], ...], ...]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/haotian...', ['posArr' => [['id' => 3, 'pid' => 0, 'catename' => 'News']], 'confres' => ['sitename' => 'FunTrip', 'keywords' => '...', 'descs' => '...', ...], 'cateres' => [['id' => 1, 'catename' => 'Products', 'catename_cn' => null, ...], ['id' => 2, 'catename' => 'Videos', 'catename_cn' => null, ...], ['id' => 3, 'catename' => 'News', 'catename_cn' => null, ...], ...], ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/haotian...', ['posArr' => [['id' => 3, 'pid' => 0, 'catename' => 'News']], 'confres' => ['sitename' => 'FunTrip', 'keywords' => '...', 'descs' => '...', ...], 'cateres' => [['id' => 1, 'catename' => 'Products', 'catename_cn' => null, ...], ['id' => 2, 'catename' => 'Videos', 'catename_cn' => null, ...], ['id' => 3, 'catename' => 'News', 'catename_cn' => null, ...], ...], ...], []) in View.php line 163
  8. at View->fetch('artlist', ['posArr' => [['id' => 3, 'pid' => 0, 'catename' => 'News']], 'confres' => ['sitename' => 'FunTrip', 'keywords' => '...', 'descs' => '...', ...], 'cateres' => [['id' => 1, 'catename' => 'Products', 'catename_cn' => null, ...], ['id' => 2, 'catename' => 'Videos', 'catename_cn' => null, ...], ['id' => 3, 'catename' => 'News', 'catename_cn' => null, ...], ...], ...], ['__ROOT__' => '', '__URL__' => '/index/artlist', '__STATIC__' => '/static', ...]) in View.php line 36
  9. at View->output('artlist') in Response.php line 309
  10. at Response->getContent() in Response.php line 94
  11. at Response->send() in start.php line 19
  12. at require('/www/wwwroot/haotian...') 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
haotian999.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/news/rz/110.html
REDIRECT_STATUS
200
SERVER_NAME
www.haotian999.com
SERVER_PORT
80
SERVER_ADDR
172.18.58.28
REMOTE_PORT
55318
REMOTE_ADDR
54.173.43.215
SERVER_SOFTWARE
nginx/1.14.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/haotian999/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news/rz/110.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/rz/110.html
SCRIPT_FILENAME
/www/wwwroot/haotian999/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711647772.3278
REQUEST_TIME
1711647772
Environment Variables
empty

ThinkPHP Constants

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