[8] ErrorException in Base.php line 37

Trying to access array offset on value of type null

  1. $this->info = $sys_info;
  2. if (($a=='Index' && $b == 'detail') || ($a=='Index' && $b == 'badetail')){
  3. $id = $this->request->param('id');
  4. $mulu = $this->request->param('mulu');
  5. if ($b == 'detail'){
  6. $info = model('common/Article')->where(['id' => $id])->find();
  7. }else{
  8. $info = model('common/Articlezq')->where(['id' => $id])->find();
  9. }
  10. $title = $info['title'];
  11. $keywords = $info['title'];
  12. $description = str_replace(' ','',strip_tags($info['content']));
  13. if (mb_strlen($description) > 250){
  14. $description = mb_substr($description,0,250).'...';
  15. }
  16. $this->assign('title', $title);
  17. $this->assign('keywords', $keywords);
  18. $this->assign('description', $info['intro'] != '' ? $info['intro'] : $description);
  19. }else{

Call Stack

  1. in Base.php line 37
  2. at Error::appError() in Base.php line 37
  3. at Base->initialize() in Controller.php line 68
  4. at Controller->__construct()
  5. at ReflectionClass->newInstanceArgs() in Container.php line 439
  6. at Container->invokeClass() in Container.php line 284
  7. at Container->make() in App.php line 723
  8. at App->controller() in Module.php line 94
  9. at Module->exec() in Dispatch.php line 168
  10. at Dispatch->run() in App.php line 432
  11. at App->think\{closure}()
  12. at call_user_func_array() in Middleware.php line 185
  13. at Middleware->think\{closure}()
  14. at call_user_func() in Middleware.php line 130
  15. at Middleware->dispatch() in App.php line 435
  16. at App->run() in index.php line 26

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.qqqmw.com/baojitiantiankuaisan/dd56d1.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.qqqmw.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME qqqmw.com
SERVER_PORT 443
SERVER_ADDR 172.19.16.16
REMOTE_PORT 35278
REMOTE_ADDR 34.204.177.148
SERVER_SOFTWARE nginx/1.21.4
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/webroot/www.zhanqun659.com/public
DOCUMENT_URI /index.php
REQUEST_URI /baojitiantiankuaisan/dd56d1.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/baojitiantiankuaisan/dd56d1.html
SCRIPT_FILENAME /www/webroot/www.zhanqun659.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711652113.3908
REQUEST_TIME 1711652113
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/webroot/www.zhanqun659.com/public/../
APP_PATH /www/webroot/www.zhanqun659.com/public/../application/
PUBLIC_PATH /www/webroot/www.zhanqun659.com/public/../public/
EXTEND_PATH /www/webroot/www.zhanqun659.com/public/../extend/
DS /
FILTER_VALIDATE_BOOL 258