[0] InvalidArgumentException in Attribute.php line 559

类的属性不存在:app\common\model\Article->url

  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('url', null) in Attribute.php line 515
  3. at Model->getAttr('url') in Model.php line 1068
  4. at Model->offsetGet('url') in bc6e7b70e7e345e08e217ddd153dc9f2.php line 299
  5. at include('E:\php\www\rxycompan...') in File.php line 59
  6. at File->read('E:\php\www\rxycompan...', ['users' => null, 'web_site_erweima' => '/uploads/images/2019...', 'web_site_icp_url' => 'http://beian.miit.go...', ...]) in Template.php line 226
  7. at Template->fetch('E:\php\www\rxycompan...', ['users' => null, 'web_site_erweima' => '/uploads/images/2019...', 'web_site_icp_url' => 'http://beian.miit.go...', ...], []) in Think.php line 93
  8. at Think->fetch('E:\php\www\rxycompan...', ['users' => null, 'web_site_erweima' => '/uploads/images/2019...', 'web_site_icp_url' => 'http://beian.miit.go...', ...], []) in View.php line 189
  9. at View->fetch('index', ['users' => null, 'web_site_erweima' => '/uploads/images/2019...', 'web_site_icp_url' => 'http://beian.miit.go...', ...], []) in Controller.php line 161
  10. at Controller->fetch('index') in Login.php line 35
  11. at Login->index()
  12. at ReflectionMethod->invokeArgs(object(Login), []) in Container.php line 395
  13. at Container->invokeReflectMethod(object(Login), object(ReflectionMethod), ['/login' => '', 'convert' => false]) in Module.php line 132
  14. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request))
  17. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  18. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  19. at Module->exec() in Dispatch.php line 168
  20. at Dispatch->run() in App.php line 432
  21. at App->think\{closure}(object(Request), object(Closure), null)
  22. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  23. at Middleware->think\{closure}(object(Request))
  24. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  25. at Middleware->dispatch(object(Request)) in App.php line 435
  26. at App->run() in index.php line 33

Environment Variables

GET Data
/login
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.sunstarcosmos.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;c:\php;c:\php\ext;C:\OpenSSL-Win32\bin;C:\Program Files (x86)\SWFTools;E:\php\mysql56\mysql-56\bin;E:\php\php73;E:\php\php73\ext;E:\php\apache24\Apache24\bin;C:\Program Files\Microsoft\Web Platform Installer\;E:\ruan_jian\postgresql\bin;
SystemRoot
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.10
SERVER_NAME
www.sunstarcosmos.com
SERVER_ADDR
60.214.208.43
SERVER_PORT
80
REMOTE_ADDR
154.209.220.157
DOCUMENT_ROOT
E:/php/www/rxycompany/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
E:/php/www/rxycompany/public
SERVER_ADMIN
admin@example.com
SCRIPT_FILENAME
E:/php/www/rxycompany/public/index.php
REMOTE_PORT
20000
REDIRECT_URL
/login
REDIRECT_QUERY_STRING
/login
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
/login
REQUEST_URI
/login
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1618245136.161
REQUEST_TIME
1618245136
Environment Variablesempty
ThinkPHP Constants
ADMIN_FILE
admin.php
HTMLPURIFIER_PREFIX
E:\php\www\rxycompany\vendor\ezyang\htmlpurifier\library
PUBLIC_PATH
/