#0 [0]TypeError in TreeService.php line 130

array_reverse(): Argument #1 ($array) must be of type array, null given

  1. * @param int
  2. *
  3. * @return array
  4. */
  5. public function get_pos($myid, $pid = 0)
  6. {
  7. $this->arrt = null;
  8. $this->recur_n($this->arr, $myid, $pid);
  9. return array_reverse($this->arrt);
  10. }
  11. private function recur_n($arr, $tid, $pid)
  12. {
  13. foreach ($arr as $v) {
  14. if ($v['id'] == $tid) {
  15. $this->arrt[] = $v;
  16. if ($v['pid'] != $pid) {
  17. $this->recur_n($arr, $v['pid'], $pid);

Call Stack

  1. in TreeService.php line 130
  2. at array_reverse() in TreeService.php line 130
  3. at TreeService->get_pos() in Article.php line 103
  4. at Article->index()
  5. at ReflectionMethod->invokeArgs() in Container.php line 344
  6. at Container->invokeReflectMethod() in Controller.php line 110
  7. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Browers.php line 57
  9. at Browers->handle()
  10. at call_user_func() in Middleware.php line 142
  11. at Middleware->think\{closure}() in Pipeline.php line 85
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Controller.php line 113
  14. at Controller->exec() in Dispatch.php line 90
  15. at Dispatch->run() in Route.php line 785
  16. at Route->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Route.php line 786
  19. at Route->dispatch() in Http.php line 216
  20. at Http->dispatchToRoute() in Http.php line 206
  21. at Http->think\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in MultiApp.php line 71
  23. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in MultiApp.php line 72
  26. at MultiApp->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in SessionInit.php line 67
  30. at SessionInit->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in TraceDebug.php line 71
  34. at TraceDebug->handle()
  35. at call_user_func() in Middleware.php line 142
  36. at Middleware->think\{closure}() in Pipeline.php line 85
  37. at Pipeline->think\{closure}() in Pipeline.php line 66
  38. at Pipeline->then() in Http.php line 207
  39. at Http->runWithRequest() in Http.php line 170
  40. at Http->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.sincomedlaser.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME sincoheren.org
SERVER_PORT 443
SERVER_ADDR 172.31.95.151
REMOTE_PORT 46510
REMOTE_ADDR 3.88.254.50
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /mnt/wwwroot/sincoheren.org/public
DOCUMENT_URI /index.php
REQUEST_URI /product/40.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//product/40.html
SCRIPT_FILENAME /mnt/wwwroot/sincoheren.org/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711644559.0927
REQUEST_TIME 1711644559