#0 [0]InvalidArgumentException in Driver.php line 120

only array cache can be push

  1. * @param string $name 缓存变量名
  2. * @param mixed $value 存储数据
  3. * @return void
  4. */
  5. public function push($name, $value): void
  6. {
  7. $item = $this->get($name, []);
  8. if (!is_array($item)) {
  9. throw new InvalidArgumentException('only array cache can be push');
  10. }
  11. $item[] = $value;
  12. if (count($item) > 1000) {
  13. array_shift($item);
  14. }
  15. $item = array_unique($item);

Call Stack (折叠)

  1. in Driver.php line 120
  2. at Driver->push() in Driver.php line 143
  3. at Driver->append() in TagSet.php line 62
  4. at TagSet->append() in TagSet.php line 45
  5. at TagSet->set() in Connection.php line 306
  6. at Connection->cacheData() in PDOConnection.php line 755
  7. at PDOConnection->pdoQuery() in PDOConnection.php line 925
  8. at PDOConnection->find() in BaseQuery.php line 1492
  9. at BaseQuery->find() in Api.php line 99
  10. at Api->product()
  11. at ReflectionMethod->invokeArgs() in Container.php line 348
  12. at Container->invokeReflectMethod() in Dispatch.php line 178
  13. at Dispatch->think\route\{closure}() in Pipeline.php line 59
  14. at Pipeline->think\{closure}() in Pipeline.php line 66
  15. at Pipeline->then() in Dispatch.php line 152
  16. at Dispatch->responseWithMiddlewarePipeline() in Controller.php line 88
  17. at Controller->exec() in Dispatch.php line 56
  18. at Dispatch->run() in Route.php line 713
  19. at Route->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in RbacAccess.php line 71
  21. at RbacAccess->handle()
  22. at call_user_func() in Middleware.php line 134
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in Route.php line 712
  26. at Route->dispatch() in Http.php line 208
  27. at Http->dispatchToRoute() in Http.php line 198
  28. at Http->think\{closure}() in Pipeline.php line 59
  29. at Pipeline->think\{closure}() in MultAccess.php line 77
  30. at MultAccess->think\admin\support\middleware\{closure}() in Pipeline.php line 59
  31. at Pipeline->think\{closure}() in Pipeline.php line 66
  32. at Pipeline->then() in MultAccess.php line 76
  33. at MultAccess->handle()
  34. at call_user_func() in Middleware.php line 134
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in LoadLangPack.php line 53
  37. at LoadLangPack->handle()
  38. at call_user_func() in Middleware.php line 134
  39. at Middleware->think\{closure}() in Pipeline.php line 85
  40. at Pipeline->think\{closure}() in JwtSession.php line 101
  41. at JwtSession->handle()
  42. at call_user_func() in Middleware.php line 134
  43. at Middleware->think\{closure}() in Pipeline.php line 85
  44. at Pipeline->think\{closure}() in Library.php line 140
  45. at Library->think\admin\{closure}()
  46. at call_user_func() in Middleware.php line 134
  47. at Middleware->think\{closure}() in Pipeline.php line 85
  48. at Pipeline->think\{closure}() in Pipeline.php line 66
  49. at Pipeline->then() in Http.php line 197
  50. at Http->runWithRequest() in Http.php line 162
  51. at Http->run() in RuntimeService.php line 234
  52. at RuntimeService::doWebsiteInit() in index.php line 23

Environment Variables

GET Dataempty
POST Data
domain http://nannythecaregiver.in
http_type http://
id 298670
Filesempty
Cookies
ssid 73c19cdc322e41501ea3769bb21c4672
lang zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONTENT_TYPE application/x-www-form-urlencoded
HTTP_CONTENT_LENGTH 74
HTTP_ACCEPT */*
HTTP_HOST 173.255.249.89
PATH_INFO //b/api/product
REDIRECT_STATUS 200
SERVER_NAME 173.255.249.89
SERVER_PORT 80
SERVER_ADDR 173.255.249.89
REMOTE_PORT 38270
REMOTE_ADDR 202.164.35.172
SERVER_SOFTWARE nginx/1.26.3
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/black/public
DOCUMENT_URI /index.php//b/api/product
REQUEST_URI /b/api/product
SCRIPT_NAME /index.php
CONTENT_LENGTH 74
CONTENT_TYPE application/x-www-form-urlencoded
REQUEST_METHOD POST
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/black/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php//b/api/product
REQUEST_TIME_FLOAT 1746098818.4131
REQUEST_TIME 1746098818