[0] InvalidArgumentException in Model.php line 626

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

  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('year') in Model.php line 2294
  3. at Model->offsetGet('year') in 67120c9acce3c769d544a7b4c7342d7b.php line 77
  4. at include('D:\wwwroot\scbofan.com\...') in File.php line 53
  5. at File->read('D:\wwwroot\scbofan.com\...', ['config' => ['system_user_id' => '0', 'sitename' => '我的CMS网站', 'sitelogo' => '', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '', ...], ...]) in Template.php line 188
  6. at Template->fetch('D:\wwwroot\scbofan.com\...', ['config' => ['system_user_id' => '0', 'sitename' => '我的CMS网站', 'sitelogo' => '', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '', ...], ...], []) in Think.php line 86
  7. at Think->fetch('D:\wwwroot\scbofan.com\...', ['config' => ['system_user_id' => '0', 'sitename' => '我的CMS网站', 'sitelogo' => '', ...], 'user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '', ...], ...], []) in View.php line 163
  8. at View->fetch('/show_news_en') in Archives.php line 87
  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'], ['catename' => 'news_en', 'id' => '98', 'addon' => 'cms', ...]) 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('D:\wwwroot\scbofan.com\...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

_vstime
1631781310
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-0f4c405f-8b62-443c-92db-29992fe12e10
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\scbofan.com\scbofan.com.config
APP_POOL_ID
scbofan.com
BT_PANEL
D:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-JLLV5HCQKDC
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
WIN-JLLV5HCQKDC$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/news_en/98.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.scbofan.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\scbofan.com\public\index.php
REQUEST_URI
/news_en/98.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
52703
REMOTE_HOST
45.115.243.161
REMOTE_ADDR
45.115.243.161
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\scbofan.com\public\index.php\news_en\98.html
PATH_INFO
/news_en/98.html
LOGON_USER
LOCAL_ADDR
114.113.227.68
INSTANCE_META_PATH
/LM/W3SVC/44
INSTANCE_NAME
MEPRO.CN
INSTANCE_ID
44
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\scbofan.com\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\wwwroot\scbofan.com\public\
APPL_MD_PATH
/LM/W3SVC/44/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/news_en/98.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/news_en/98.html
HTTP_REFERER
/
HTTP_HOST
www.scbofan.com
HTTP_COOKIE
_vstime=1631781310
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/news_en/98.html
REQUEST_TIME_FLOAT
1631781312.0075
REQUEST_TIME
1631781312
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\scbofan.com\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1631781312.0109
THINK_START_MEM
430176
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\scbofan.com\thinkphp\
LIB_PATH
D:\wwwroot\scbofan.com\thinkphp\library\
CORE_PATH
D:\wwwroot\scbofan.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\scbofan.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\scbofan.com\
EXTEND_PATH
D:\wwwroot\scbofan.com\extend\
VENDOR_PATH
D:\wwwroot\scbofan.com\vendor\
RUNTIME_PATH
D:\wwwroot\scbofan.com\runtime\
LOG_PATH
D:\wwwroot\scbofan.com\runtime\log\
CACHE_PATH
D:\wwwroot\scbofan.com\runtime\cache\
TEMP_PATH
D:\wwwroot\scbofan.com\runtime\temp\
CONF_PATH
D:\wwwroot\scbofan.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
FILTER_VALIDATE_BOOL
258
ADDON_PATH
D:\wwwroot\scbofan.com\addons\