[8] ErrorException in Collection.php line 486

未定义数组下标: 0

  1. // ArrayAccess
  2. public function offsetExists($offset)
  3. {
  4. return array_key_exists($offset, $this->items);
  5. }
  6. public function offsetGet($offset)
  7. {
  8. return $this->items[$offset];
  9. }
  10. public function offsetSet($offset, $value)
  11. {
  12. if (is_null($offset)) {
  13. $this->items[] = $value;
  14. } else {
  15. $this->items[$offset] = $value;
  16. }

Call Stack

  1. in Collection.php line 486
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/test.ev...', 486, ['offset' => 0]) in Collection.php line 486
  3. at Collection->offsetGet(0) in IndexController.php line 79
  4. at IndexController->detail()
  5. at ReflectionMethod->invokeArgs(object(IndexController), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(IndexController), object(ReflectionMethod), ['id' => '654', 'convert' => false]) in Module.php line 131
  7. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  8. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  9. at Middleware->think\{closure}(object(Request))
  10. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  11. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 484
  14. at App->think\{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)) in App.php line 487
  19. 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_detail/654.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /expo_detail/654.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 3.90.187.11
REMOTE_PORT 60134
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 www.eventsguide.cn
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711653958.8451
REQUEST_TIME 1711653958
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