[0] InvalidArgumentException in Model.php line 626

类的属性不存在:addons\ask\model\User->title

  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('title') in Model.php line 2294
  3. at Model->offsetGet('title') in 08ee217a1581a595adf2b8b91b0a929e.php line 156
  4. at include('/mnt/oa.jclab.net/fa...') in File.php line 53
  5. at File->read('/mnt/oa.jclab.net/fa...', ['config' => ['wxappid' => 'wxdc3d91607a5d07e5', 'wxappsecret' => '5b6c6576ef12c60a40cc...', 'app_id' => 'wx68f404458739af45', ...], 'user' => null, 'site' => ['name' => '基层检验网', 'beian' => '渝ICP备15009376号...', 'cdnurl' => '', ...], ...]) in Template.php line 188
  6. at Template->fetch('/mnt/oa.jclab.net/fa...', ['config' => ['wxappid' => 'wxdc3d91607a5d07e5', 'wxappsecret' => '5b6c6576ef12c60a40cc...', 'app_id' => 'wx68f404458739af45', ...], 'user' => null, 'site' => ['name' => '基层检验网', 'beian' => '渝ICP备15009376号...', 'cdnurl' => '', ...], ...], []) in Think.php line 86
  7. at Think->fetch('/mnt/oa.jclab.net/fa...', ['config' => ['wxappid' => 'wxdc3d91607a5d07e5', 'wxappsecret' => '5b6c6576ef12c60a40cc...', 'app_id' => 'wx68f404458739af45', ...], 'user' => null, 'site' => ['name' => '基层检验网', 'beian' => '渝ICP备15009376号...', 'cdnurl' => '', ...], ...], []) in View.php line 163
  8. at View->fetch() in User.php line 117
  9. at User->question() in User.php line 91
  10. at User->dispatch()
  11. at call_user_func_array([object(User), 'dispatch'], []) in Route.php line 76
  12. at Route->execute('ask', 'user', 'dispatch')
  13. at ReflectionMethod->invokeArgs(object(Route), ['ask', 'user', 'dispatch']) in App.php line 343
  14. at App::invokeMethod(['\think\addons\Route', 'execute'], ['id' => '2', 'dispatch' => 'question', 'addon' => 'ask', ...]) in App.php line 470
  15. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'ask', 'controller' => 'user', 'action' => 'dispatch']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/mnt/oa.jclab.net/fa...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/u/2/question/2/question
PATH_INFO
/u/2/question
SCRIPT_NAME
/index.php
REQUEST_URI
/u/2/question
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/u/2/question
REMOTE_PORT
52580
SCRIPT_FILENAME
/mnt/oa.jclab.net/fastadmin/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/mnt/oa.jclab.net/fastadmin/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/mnt/oa.jclab.net/fastadmin/public
REMOTE_ADDR
54.89.70.161
SERVER_PORT
443
SERVER_ADDR
172.17.11.8
SERVER_NAME
jclab.net
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at jclab.net Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
jclab.net
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
275-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
jclab.net
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
275-3
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
jclab.net
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/u/2/question
REQUEST_TIME_FLOAT
1711662742.1175
REQUEST_TIME
1711662742
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/oa.jclab.net/fastadmin/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711662742.1179
THINK_START_MEM
404096
EXT
.php
DS
/
THINK_PATH
/mnt/oa.jclab.net/fastadmin/thinkphp/
LIB_PATH
/mnt/oa.jclab.net/fastadmin/thinkphp/library/
CORE_PATH
/mnt/oa.jclab.net/fastadmin/thinkphp/library/think/
TRAIT_PATH
/mnt/oa.jclab.net/fastadmin/thinkphp/library/traits/
ROOT_PATH
/mnt/oa.jclab.net/fastadmin/
EXTEND_PATH
/mnt/oa.jclab.net/fastadmin/extend/
VENDOR_PATH
/mnt/oa.jclab.net/fastadmin/vendor/
RUNTIME_PATH
/mnt/oa.jclab.net/fastadmin/runtime/
LOG_PATH
/mnt/oa.jclab.net/fastadmin/runtime/log/
CACHE_PATH
/mnt/oa.jclab.net/fastadmin/runtime/cache/
TEMP_PATH
/mnt/oa.jclab.net/fastadmin/runtime/temp/
CONF_PATH
/mnt/oa.jclab.net/fastadmin/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/mnt/oa.jclab.net/fastadmin/addons/