[0] InvalidArgumentException in Model.php line 461

类的属性不存在:app\index\model\Category->seotitle

  1. $method = Loader::parseName($name, 1, false);
  2. if (method_exists($this, $method) && $this->$method() instanceof Relation) {
  3. // 清空之前的查询参数
  4. $this->$method()->removeOption();
  5. // 不存在该字段 获取关联数据
  6. $value = $this->$method()->getRelation();
  7. // 保存关联对象值
  8. $this->data[$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 mixed $value 值

Call Stack

  1. in Model.php line 461
  2. at Model->getAttr('seotitle') in Model.php line 1821
  3. at Model->offsetGet('seotitle') in News.php line 21
  4. at News->lists()
  5. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 224
  6. at App::invokeMethod([object(News), 'lists'], []) in App.php line 392
  7. at App::module(['index', 'news', 'lists'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  8. at App::run() in start.php line 18
  9. at require('/home/www/fredamdcom...') in index.php line 17

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
apache
HOME
/usr/share/httpd
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.fredamd.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.fredamd.com
SERVER_PORT
80
SERVER_ADDR
172.16.3.26
REMOTE_PORT
20000
REMOTE_ADDR
154.214.180.29
SERVER_SOFTWARE
nginx/1.16.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/etc/nginx/html
DOCUMENT_URI
/index.php//news/cid/495
REQUEST_URI
/news/cid/495
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/home/www/fredamdcom/public/index.php
PATH_TRANSLATED
/etc/nginx/html//news/cid/495
PATH_INFO
//news/cid/495
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//news/cid/495
REQUEST_TIME_FLOAT
1623441324.2258
REQUEST_TIME
1623441324
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/home/www/fredamdcom/public/../application/
THINK_VERSION
5.0.5
THINK_START_TIME
1623441324.2259
THINK_START_MEM
355960
EXT
.php
DS
/
THINK_PATH
/home/www/fredamdcom/thinkphp/
LIB_PATH
/home/www/fredamdcom/thinkphp/library/
CORE_PATH
/home/www/fredamdcom/thinkphp/library/think/
TRAIT_PATH
/home/www/fredamdcom/thinkphp/library/traits/
ROOT_PATH
/home/www/fredamdcom/
EXTEND_PATH
/home/www/fredamdcom/extend/
VENDOR_PATH
/home/www/fredamdcom/vendor/
RUNTIME_PATH
/home/www/fredamdcom/runtime/
LOG_PATH
/home/www/fredamdcom/runtime/log/
CACHE_PATH
/home/www/fredamdcom/runtime/cache/
TEMP_PATH
/home/www/fredamdcom/runtime/temp/
CONF_PATH
/home/www/fredamdcom/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
NOW_TIME
1623441324