#0 [8]ErrorException in common.php line 181

未定义变量: id

  1. if ($cateid <= 0) {
  2. $cateid = input('cateid', 0);
  3. }
  4. if ($cateid == 0) {
  5. return [];
  6. }
  7. $model = new ArticleCategoryModel();
  8. $result = $model->find($cateid);
  9. if (!$result) {
  10. throw new \Exception(sprintf('函数: %s, 参数 id = %s 数据不存在!', __FUNCTION__, $id));
  11. } else {
  12. return $result->toArray();
  13. }
  14. }
  15. }
  16. if (!function_exists('sp_article')) {
  17. /**
  18. * 文章列表.

Call Stack

  1. in common.php line 181
  2. at Error->appError() in common.php line 181
  3. at sp_cate_details() in 1b7733ef0705eacba41e7a698195d9fd.php line 2
  4. at include('/www/wwwroot/tpadhes...') in File.php line 59
  5. at File->read() in Template.php line 255
  6. at Template->fetch() in Think.php line 149
  7. at Think->fetch() in View.php line 90
  8. at View->think\{closure}() in View.php line 126
  9. at View->getContent() in View.php line 91
  10. at View->fetch()
  11. at call_user_func_array() in Facade.php line 96
  12. at Facade::__callStatic() in ErrorController.php line 12
  13. at ErrorController->__call()
  14. at ReflectionMethod->invokeArgs() in Container.php line 344
  15. at Container->invokeReflectMethod() in Controller.php line 110
  16. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Controller.php line 113
  19. at Controller->exec() in Dispatch.php line 80
  20. at Dispatch->run() in Route.php line 793
  21. at Route->think\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in Stat.php line 19
  23. at Stat->handle()
  24. at call_user_func() in Middleware.php line 142
  25. at Middleware->think\{closure}() in Pipeline.php line 85
  26. at Pipeline->think\{closure}() in Pipeline.php line 66
  27. at Pipeline->then() in Route.php line 794
  28. at Route->dispatch() in Http.php line 216
  29. at Http->dispatchToRoute() in Http.php line 206
  30. at Http->think\{closure}() in Pipeline.php line 59
  31. at Pipeline->think\{closure}() in MultiApp.php line 51
  32. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in MultiApp.php line 52
  35. at MultiApp->handle()
  36. at call_user_func() in Middleware.php line 142
  37. at Middleware->think\{closure}() in Pipeline.php line 85
  38. at Pipeline->think\{closure}() in SessionInit.php line 67
  39. at SessionInit->handle()
  40. at call_user_func() in Middleware.php line 142
  41. at Middleware->think\{closure}() in Pipeline.php line 85
  42. at Pipeline->think\{closure}() in Pipeline.php line 66
  43. at Pipeline->then() in Http.php line 207
  44. at Http->runWithRequest() in Http.php line 170
  45. at Http->run() in index.php line 20

Environment Variables

GET Data
/products/details-1815_shtml
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /products/details-1815.shtml
QUERY_STRING /products/details-1815.shtml
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /products/details-1815.shtml
REDIRECT_URL /products/details-1815.shtml
REMOTE_PORT 32894
SCRIPT_FILENAME /www/wwwroot/tpadhesivetape.com/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/tpadhesivetape.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/tpadhesivetape.com/public
REMOTE_ADDR 34.228.7.237
SERVER_PORT 80
SERVER_ADDR 172.24.43.136
SERVER_NAME tpadhesivetape.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at tpadhesivetape.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
HTTP_HOST tpadhesivetape.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710846508.395
REQUEST_TIME 1710846508