[0] InvalidArgumentException in Attribute.php line 559

类的属性不存在:app\cms\model\CmsContent->content

  1. }
  2. // 保存关联对象值
  3. $this->relation[$name] = $value;
  4. return $value;
  5. }
  6. }
  7. throw new InvalidArgumentException('property not exists:' . static::class . '->' . $name);
  8. }
  9. /**
  10. * 数据读取 类型转换
  11. * @access protected
  12. * @param mixed $value 值
  13. * @param string|array $type 要转换的类型
  14. * @return mixed
  15. */

Call Stack

  1. in Attribute.php line 559
  2. at Model->getRelationAttribute('content', null) in Attribute.php line 515
  3. at Model->getAttr('content') in Model.php line 1085
  4. at Model->offsetGet('content') in aeb7deb987f9b7e8d5efb7b79d280274.php line 238
  5. at include('/www/wwwroot7/m.nmgy...') in File.php line 59
  6. at File->read('/www/wwwroot7/m.nmgy...', ['nav' => ['id' => 0, 'title' => ''], 'content' => object(CmsContent), 'category' => ['id' => 24, 'pid' => 8, 'mid' => 2, ...]]) in Template.php line 226
  7. at Template->fetch('theme/cms/default/sh...', ['nav' => ['id' => 0, 'title' => ''], 'content' => object(CmsContent), 'category' => ['id' => 24, 'pid' => 8, 'mid' => 2, ...]], []) in Think.php line 93
  8. at Think->fetch('theme/cms/default/sh...', ['nav' => ['id' => 0, 'title' => ''], 'content' => object(CmsContent), 'category' => ['id' => 24, 'pid' => 8, 'mid' => 2, ...]], []) in View.php line 192
  9. at View->fetch('show/news_o', ['nav' => ['id' => 0, 'title' => ''], 'content' => object(CmsContent), 'category' => ['id' => 24, 'pid' => 8, 'mid' => 2, ...]], [], false) in View.php line 42
  10. at View->output('show/news_o') in Response.php line 396
  11. at Response->getContent() in Response.php line 128
  12. at Response->send() in index.php line 34

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
hisi_language zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /hangyezixun/449.html
QUERY_STRING s=/hangyezixun/449.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=/hangyezixun/449.html
REDIRECT_URL /hangyezixun/449.html
REMOTE_PORT 40840
SCRIPT_FILENAME /www/wwwroot7/m.nmgyunso.com/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot7/m.nmgyunso.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot7/m.nmgyunso.com/public
REMOTE_ADDR 54.144.81.21
SERVER_PORT 80
SERVER_ADDR 172.24.205.16
SERVER_NAME nmgbaidu.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at nmgbaidu.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST nmgbaidu.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711630864.9206
REQUEST_TIME 1711630864
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot7/m.nmgyunso.com/public/application/
ROOT_PATH /www/wwwroot7/m.nmgyunso.com/
IN_SYSTEM true
ROOT_DIR /
HISI_LANG zh-cn