[0] InvalidArgumentException in Model.php line 626

类的属性不存在:addons\cms\model\Archives->park_course

  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('park_course') in Model.php line 2294
  3. at Model->offsetGet('park_course') in 55e7b0c446d93a0b27e6f85d8115ab48.php line 216
  4. at include('/www/wwwroot/miangon...') in File.php line 53
  5. at File->read('/www/wwwroot/miangon...', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'sitelogo' => '/uploads/20220527/06...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '蜀ICP备15030115号...', 'cdnurl' => '', ...], ...]) in Template.php line 188
  6. at Template->fetch('/www/wwwroot/miangon...', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'sitelogo' => '/uploads/20220527/06...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '蜀ICP备15030115号...', 'cdnurl' => '', ...], ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/miangon...', ['config' => ['system_user_id' => '1', 'sitename' => '...', 'sitelogo' => '/uploads/20220527/06...', ...], 'user' => null, 'site' => ['name' => '...', 'beian' => '蜀ICP备15030115号...', 'cdnurl' => '', ...], ...], []) in View.php line 163
  8. at View->fetch('/show_yszs') in Archives.php line 74
  9. at Archives->index()
  10. at call_user_func_array([object(Archives), 'index'], []) in Route.php line 76
  11. at Route->execute('cms', 'archives', 'index')
  12. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'archives', 'index']) in App.php line 343
  13. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => '499', 'addon' => 'cms', 'controller' => 'archives', ...]) in App.php line 470
  14. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'archives', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/www/wwwroot/miangon...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "__searchtoken__": "694610cf5e4dfd5d9ff3e877679ab019" }

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.mggj.com.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/a/499.html
REDIRECT_STATUS
200
SERVER_NAME
mg.xiaojunhao.top
SERVER_PORT
80
SERVER_ADDR
172.27.0.2
REMOTE_PORT
51686
REMOTE_ADDR
3.235.154.65
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/miangong/public
DOCUMENT_URI
/index.php/a/499.html
REQUEST_URI
/index.php/a/499.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/miangong/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/a/499.html
REQUEST_TIME_FLOAT
1711713051.1686
REQUEST_TIME
1711713051
Environment Variables
empty

ThinkPHP Constants

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