[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', 'C:\phpstudy_pro\WWW\...', 486, ['offset' => 0]) in Collection.php line 486
  3. at Collection->offsetGet(0) in ProductController.php line 108
  4. at ProductController->index()
  5. at ReflectionMethod->invokeArgs(object(ProductController), []) in Container.php line 395
  6. at Container->invokeReflectMethod(object(ProductController), object(ReflectionMethod), ['categoryId' => '23']) in Module.php line 132
  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 137
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 475
  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 478
  19. at App->run() in index.php line 30

Environment Variables

GET Data
categoryId 23
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHPRC C:/phpstudy_pro/Extensions/php/php7.3.4nts
_FCGI_SHUTDOWN_EVENT_ 8860
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /portal/product/index?categoryId=23
QUERY_STRING s=portal/product/index&categoryId=23
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=portal/product/index&categoryId=23
REDIRECT_URL /portal/product/index
REMOTE_PORT 48674
SCRIPT_FILENAME C:/phpstudy_pro/WWW/thinkcmf/public/index.php
SERVER_ADMIN admin@example.com
CONTEXT_DOCUMENT_ROOT C:/phpstudy_pro/WWW/thinkcmf/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT C:/phpstudy_pro/WWW/thinkcmf/public
REMOTE_ADDR 3.229.122.112
SERVER_PORT 80
SERVER_ADDR 172.18.83.253
SERVER_NAME east1993.com
SERVER_SOFTWARE Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a
SERVER_SIGNATURE
SystemRoot C:\Windows
HTTP_HOST east1993.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710835859.7935
REQUEST_TIME 1710835859
Environment Variablesempty
ThinkPHP Constants
APP_DEBUG true
CMF_ROOT C:\phpstudy_pro\WWW\thinkcmf/
APP_PATH C:\phpstudy_pro\WWW\thinkcmf/app/
WEB_ROOT C:\phpstudy_pro\WWW\thinkcmf\public/
HTMLPURIFIER_PREFIX C:\phpstudy_pro\WWW\thinkcmf\vendor\ezyang\htmlpurifier\library
0.078126s