红宝石hbs0022(中国)搜狗百科

[8] ErrorException in Message.php line 25

Trying to access array offset on value of type null

  1. if(isset($data['content']))
  2. {
  3. $data['content'] = remove_xss(strip_tags($data['content']));
  4. }
  5. $meassage = new \app\index\model\Message();
  6. $res = $meassage->checkCode($data);
  7. return json($res);
  8. } else {
  9. $message = db('nav')->where('url','message/guestbook')->where('is_check', 1)->find();
  10. $t = $message['seo_title'];
  11. $k = $message['seo_keywords'];
  12. $d = $message['seo_description'];
  13. $this->set_system($t, $k, $d);
  14. return view('message/guestbook')->filter(function ($content) {
  15. return str_replace('[dq]', config('cityName'), $content);
  16. });
  17. }
  18. }
  19. }

Call Stack

  1. in Message.php line 25
  2. at Error::appError() in Message.php line 25
  3. at Message->guestBook()
  4. at ReflectionMethod->invokeArgs() in Container.php line 395
  5. at Container->invokeReflectMethod() in Module.php line 131
  6. at Module->think\route\dispatch\{closure}()
  7. at call_user_func_array() in Middleware.php line 185
  8. at Middleware->think\{closure}()
  9. at call_user_func() in Middleware.php line 130
  10. at Middleware->dispatch() in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in App.php line 435
  18. at App->run() in index.php line 30

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID a507nv8asslmiil1n9s62e0ib4
BAEID FEC8DA2EBFE2DA615D0390B7A8C52B41
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=a507nv8asslmiil1n9s62e0ib4; BAEID=FEC8DA2EBFE2DA615D0390B7A8C52B41
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 104.206.148.110
HTTP_X_REAL_IP 104.206.148.110
HTTP_HOST www.ahldf.com.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME 127.0.0.1_8007
SERVER_PORT 8007
SERVER_ADDR 192.168.0.126
REMOTE_PORT 57030
REMOTE_ADDR 192.168.0.9
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /www/wwwroot/ahldf.com.cn
DOCUMENT_URI /index.php
REQUEST_URI /guestbook.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/guestbook.html
SCRIPT_FILENAME /www/wwwroot/ahldf.com.cn/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1729603588.8515
REQUEST_TIME 1729603588
Environment Variablesempty
ThinkPHP Constants
DS /
APP_PATH /www/wwwroot/ahldf.com.cn/./application/
CONF_PATH /www/wwwroot/ahldf.com.cn/./config/
PUBILC_PATH /www/wwwroot/ahldf.com.cn/
ROOT_PATH /www/wwwroot/ahldf.com.cn
CACHE_PATH /www/wwwroot/ahldf.com.cn/./runtime/
CONFIG_PATH /www/wwwroot/ahldf.com.cn/./config/
UPLOAD_PATH uploads