[8] ErrorException in 96b1745d5c76cf7c98cd3e8b71992b7e.php line 241

Trying to access array offset on value of type null

  1. <div class="detail_txt">
  2. <?php echo $data['content']; ?>
  3. </div>
  4. <div class="detail_bott">
  5. <div class="left">
  6. <?php if($prev['title']): ?>
  7. <p><a href="<?php echo url('/newsDetail/'); ?><?php echo htmlentities($prev['n_id']); ?>.html">上一篇:<?php echo htmlentities($prev['title']); ?></a></p>
  8. <?php else: ?>
  9. <p><a href="javascript:;">上一篇:暂无</a></p>
  10. <?php endif; if($next['title']): ?>
  11. <p><a href="<?php echo url('/newsDetail/'); ?><?php echo htmlentities($next['n_id']); ?>.html">下一篇:<?php echo htmlentities($next['title']); ?></a></p>
  12. <?php else: ?>
  13. <p><a href="javascript:;">下一篇:暂无</a></p>
  14. <?php endif; ?>
  15. </div>
  16. <div class="right">
  17. <?php if($data['nc_id'] != 2): ?>
  18. <a href="<?php echo url('/news'); ?>">
  19. <img src="/public/static/web/images/back.png" alt="">

Call Stack

  1. in 96b1745d5c76cf7c98cd3e8b71992b7e.php line 241
  2. at Error::appError(8, 'Trying to access arr...', '/data/user/htdocs/ru...', 241, ['cacheFile' => '/data/user/htdocs/ru...', 'vars' => ['is_mobile' => '2', 'nav' => [['n_id' => 1, 'title' => '网站首页', 'linkurl' => '/', ...], ['n_id' => 2, 'title' => '学校介绍', 'linkurl' => '/about.html', ...], ['n_id' => 3, 'title' => '培训课程', 'linkurl' => '/course.html', ...], ...], 'gnav' => [['gc_id' => 1, 'title' => '培训课程'], ['gc_id' => 2, 'title' => '培训案例']], ...], 'is_mobile' => '2', ...]) in 96b1745d5c76cf7c98cd3e8b71992b7e.php line 241
  3. at include('/data/user/htdocs/ru...') in File.php line 59
  4. at File->read('/data/user/htdocs/ru...', ['is_mobile' => '2', 'nav' => [['n_id' => 1, 'title' => '网站首页', 'linkurl' => '/', ...], ['n_id' => 2, 'title' => '学校介绍', 'linkurl' => '/about.html', ...], ['n_id' => 3, 'title' => '培训课程', 'linkurl' => '/course.html', ...], ...], 'gnav' => [['gc_id' => 1, 'title' => '培训课程'], ['gc_id' => 2, 'title' => '培训案例']], ...]) in Template.php line 226
  5. at Template->fetch('/data/user/htdocs/te...', ['is_mobile' => '2', 'nav' => [['n_id' => 1, 'title' => '网站首页', 'linkurl' => '/', ...], ['n_id' => 2, 'title' => '学校介绍', 'linkurl' => '/about.html', ...], ['n_id' => 3, 'title' => '培训课程', 'linkurl' => '/course.html', ...], ...], 'gnav' => [['gc_id' => 1, 'title' => '培训课程'], ['gc_id' => 2, 'title' => '培训案例']], ...], []) in Think.php line 93
  6. at Think->fetch('/data/user/htdocs/te...', ['is_mobile' => '2', 'nav' => [['n_id' => 1, 'title' => '网站首页', 'linkurl' => '/', ...], ['n_id' => 2, 'title' => '学校介绍', 'linkurl' => '/about.html', ...], ['n_id' => 3, 'title' => '培训课程', 'linkurl' => '/course.html', ...], ...], 'gnav' => [['gc_id' => 1, 'title' => '培训课程'], ['gc_id' => 2, 'title' => '培训案例']], ...], []) in View.php line 189
  7. at View->fetch('web/news/detail', ['is_mobile' => '2', 'nav' => [['n_id' => 1, 'title' => '网站首页', 'linkurl' => '/', ...], ['n_id' => 2, 'title' => '学校介绍', 'linkurl' => '/about.html', ...], ['n_id' => 3, 'title' => '培训课程', 'linkurl' => '/course.html', ...], ...], 'gnav' => [['gc_id' => 1, 'title' => '培训课程'], ['gc_id' => 2, 'title' => '培训案例']], ...]) in View.php line 35
  8. at View->output('web/news/detail') in Response.php line 396
  9. at Response->getContent() in Response.php line 128
  10. at Response->send() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER nobody
HOME /
HTTP_HOST www.xczxxy.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME wh-nh6vn409v4lxfcjh66h.my3w.com
SERVER_PORT 80
SERVER_ADDR 10.21.84.241
REMOTE_PORT 35098
REMOTE_ADDR 3.237.186.170
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs
DOCUMENT_URI /index.php
REQUEST_URI /newsDetail/8.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//newsDetail/8.html
PATH_INFO
SCRIPT_FILENAME /data/user/htdocs/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711644789.6028
REQUEST_TIME 1711644789
Environment Variablesempty
ThinkPHP Constants
HOST http://www.xczxxy.com/
DS /
PAGE_SIZE 10