#0 [0]Exception in Index.php line 301

页面未找到

  1. public function show(){
  2. $issubmit = '';
  3. $id = $this->request->get('id')?:$this->request->param('id/d');
  4. if($id){
  5. $list = Forum::where('status',1)->find($id);
  6. }else{
  7. $list = Forum::where('cateid',$this->cateid)->find();
  8. }
  9. if(!$list || !$this->tablename) {
  10. throw new \Exception('页面未找到');
  11. }
  12. // if(!$list) $this->redirect(__u('error/notice',['message'=>'NotFind'],true,request()->domain()));
  13. // if(!$this->tablename) $this->redirect(__u('error/notice',['message'=>'NotFindTable'],true,request()->domain()));
  14. $tableContent = Db::name($this->tablename)->find($list['id']);
  15. if($tableContent){
  16. $field = Field::where('moduleid',$this->moduleid)->column('field','field');
  17. $field = array_merge($this->fieldList,$field);
  18. foreach ($tableContent as $k=>$item) {
  19. if(is_string($item) && json_decode($item,true) && Str::contains($item,'{')){

Call Stack

  1. in Index.php line 301
  2. at Index->show()
  3. at ReflectionMethod->invokeArgs() in Container.php line 345
  4. at Container->invokeReflectMethod() in Controller.php line 110
  5. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  6. at Pipeline->think\{closure}() in ViewNode.php line 46
  7. at ViewNode->handle()
  8. at call_user_func() in Middleware.php line 134
  9. at Middleware->think\{closure}() in Pipeline.php line 85
  10. at Pipeline->think\{closure}() in Pipeline.php line 66
  11. at Pipeline->then() in Controller.php line 113
  12. at Controller->exec() in Dispatch.php line 52
  13. at Dispatch->run() in Route.php line 755
  14. at Route->think\{closure}() in Pipeline.php line 59
  15. at Pipeline->think\{closure}() in Pipeline.php line 66
  16. at Pipeline->then() in Route.php line 756
  17. at Route->dispatch() in Http.php line 208
  18. at Http->dispatchToRoute() in Http.php line 198
  19. at Http->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in MultiApp.php line 51
  21. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in Pipeline.php line 66
  23. at Pipeline->then() in MultiApp.php line 52
  24. at MultiApp->handle()
  25. at call_user_func() in Middleware.php line 134
  26. at Middleware->think\{closure}() in Pipeline.php line 85
  27. at Pipeline->think\{closure}() in Install.php line 19
  28. at Install->handle()
  29. at call_user_func() in Middleware.php line 134
  30. at Middleware->think\{closure}() in Pipeline.php line 85
  31. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  32. at AllowCrossDomain->handle()
  33. at call_user_func() in Middleware.php line 134
  34. at Middleware->think\{closure}() in Pipeline.php line 85
  35. at Pipeline->think\{closure}() in SessionInit.php line 58
  36. at SessionInit->handle()
  37. at call_user_func() in Middleware.php line 134
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in TraceDebug.php line 71
  40. at TraceDebug->handle()
  41. at call_user_func() in Middleware.php line 134
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in Pipeline.php line 66
  44. at Pipeline->then() in Http.php line 199
  45. at Http->runWithRequest() in Http.php line 162
  46. at Http->run() in index.php line 28

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
site_lang zh-cn
Server/Request Data
USER www
HOME /home/www
HTTP_CONNECTION Keep-Alive
HTTP_HOST c2.funcmf.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME c1.funcmf.com
SERVER_PORT 80
SERVER_ADDR 172.18.75.237
REMOTE_PORT 57382
REMOTE_ADDR 44.222.134.250
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/c1.funcmf.com/public
DOCUMENT_URI /index.php
REQUEST_URI /show/23/426
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/show/23/426
SCRIPT_FILENAME /www/wwwroot/c1.funcmf.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1728526946.9935
REQUEST_TIME 1728526946