威尼斯(wns.8885556·China)官方网站-Venice Platform

#0 [2]ErrorException in Index.php line 102

Trying to access array offset on value of type null

  1. // 栏目页(如 /xx/xx.html)
  2. $filename = str_replace('.html', '', $segments[2] ?? '');
  3. if (!$filename) {
  4. return View::fetch('404.html');
  5. }
  6. $category = Db::name('category')->where('filename', $filename)->whereOr('id', $filename)->find();
  7. $model = Db::name('model')->where('id', $category['model'])->find();
  8. if (!$model) {
  9. return View::fetch('404.html');
  10. }
  11. // 单页模型
  12. if ($model['type'] == '1') {
  13. $this->getAbout($category);
  14. return $this->renderForDevice($this->cleanFilename($category['contenttpl']), $config);

Call Stack

  1. in Index.php line 102
  2. at Error->appError() in Index.php line 102
  3. at Index->_empty()
  4. at ReflectionMethod->invokeArgs() in Container.php line 345
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 52
  10. at Dispatch->run() in Route.php line 755
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 756
  14. at Route->dispatch() in Http.php line 208
  15. at Http->dispatchToRoute() in Http.php line 198
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 51
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in LoadLangPack.php line 53
  20. at LoadLangPack->handle()
  21. at call_user_func() in Middleware.php line 134
  22. at Middleware->think\{closure}() in Pipeline.php line 85
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultiApp.php line 52
  25. at MultiApp->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in SessionInit.php line 58
  29. at SessionInit->handle()
  30. at call_user_func() in Middleware.php line 134
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in LoadLangPack.php line 53
  33. at LoadLangPack->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 TraceDebug.php line 71
  37. at TraceDebug->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 Pipeline.php line 66
  41. at Pipeline->then() in Http.php line 199
  42. at Http->runWithRequest() in Http.php line 162
  43. at Http->run() in index.php line 25

Environment Variables

GET Data
/article/smj/978_html
POST Dataempty
Filesempty
Cookies
PHPSESSID 2e0cbfe78917cadbde16b5129692bcf9
think_lang en
Session
captcha { "key": "$2y$10$Ul0XCKffDtMI5mtTtu6qru5FpJ\/IhTnGubggHhbMzngZGiq5i4yAa" }
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /article/smj/978.html
QUERY_STRING /article/smj/978.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /article/smj/978.html
REDIRECT_URL /article/smj/978.html
REMOTE_PORT 51230
SCRIPT_FILENAME /www/wwwroot/120.26.195.31/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/120.26.195.31/
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /www/wwwroot/120.26.195.31/
REMOTE_ADDR 50.2.184.114
SERVER_PORT 443
SERVER_ADDR 172.18.87.41
SERVER_NAME www.hanglorygroup.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
Apache Server at www.hanglorygroup.com Port 443
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE PHPSESSID=2e0cbfe78917cadbde16b5129692bcf9; think_lang=en
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.hanglorygroup.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; DataForSeoBot/1.0; +https://dataforseo.com/dataforseo-bot)
proxy-nokeepalive 1
SSL_TLS_SNI www.hanglorygroup.com
HTTPS on
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.hanglorygroup.com
REDIRECT_HTTPS on
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1762525903.1945
REQUEST_TIME 1762525903
0.312885s
XML 地图