[0] InvalidArgumentException in Attribute.php line 559

类的属性不存在:app\expo\model\ProductsModel->en_name

  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('en_name', null) in Attribute.php line 515
  3. at Model->getAttr('en_name') in Model.php line 1085
  4. at Model->offsetGet('en_name') in 98c84b352745ad6bd86428ea08854c30.php line 905
  5. at include('/www/wwwroot/test.ev...') in File.php line 59
  6. at File->read('/www/wwwroot/test.ev...', ['site_info' => ['site_name' => '国际参展指南', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'products' => object(Collection), 'theme_vars' => [], ...]) in Template.php line 226
  7. at Template->fetch('/www/wwwroot/test.ev...', ['site_info' => ['site_name' => '国际参展指南', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'products' => object(Collection), 'theme_vars' => [], ...], []) in Think.php line 93
  8. at Think->fetch('/www/wwwroot/test.ev...', ['site_info' => ['site_name' => '国际参展指南', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'products' => object(Collection), 'theme_vars' => [], ...], []) in View.php line 192
  9. at View->fetch('/www/wwwroot/test.ev...', [], []) in HomeBaseController.php line 86
  10. at HomeBaseController->fetch() in ProductsController.php line 30
  11. at ProductsController->index()
  12. at ReflectionMethod->invokeArgs(object(ProductsController), []) in Container.php line 395
  13. at Container->invokeReflectMethod(object(ProductsController), object(ReflectionMethod), []) in Module.php line 131
  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 136
  19. at Module->exec() in Dispatch.php line 168
  20. at Dispatch->run() in App.php line 484
  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 487
  26. at App->run() in index.php line 33

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
lang zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/test.eventsguide.cn/public/index.php
QUERY_STRING s=/expo/products/index.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /expo/products/index.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/test.eventsguide.cn/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 44.222.129.73
REMOTE_PORT 59952
SERVER_ADDR 172.27.221.119
SERVER_PORT 80
SERVER_NAME www.eventsguide.cn
REDIRECT_STATUS 200
PATH_INFO
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST eventsguide.cn
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711698018.6492
REQUEST_TIME 1711698018
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT /www/wwwroot/test.eventsguide.cn/
CMF_DATA /www/wwwroot/test.eventsguide.cn/data/
APP_PATH /www/wwwroot/test.eventsguide.cn/app/
WEB_ROOT /www/wwwroot/test.eventsguide.cn/public/
HTMLPURIFIER_PREFIX /www/wwwroot/test.eventsguide.cn/vendor/ezyang/htmlpurifier/library
EFFECTED_INIT 1