[8] ErrorException in 6165e64f7a1e51df31cfe361f30ce031.php line 378

Trying to access array offset on value of type null

  1. .videos-right {
  2. background-image: url(/static/index/icon/next-img.png);
  3. left: auto;
  4. right: 0px;
  5. }
  6. .active{
  7. border: 2px solid #e4393c;
  8. border-radius: 4px;
  9. }
  10. </style><div class="con"><div class="con1-con app"><div class="video-con"><video controls src="<?php echo htmlentities($info['url']); ?>"></video><div class="video-sub"><p class="video-title"><?php echo htmlentities($info['title']); ?></p><p class="video-time"><span><?php echo htmlentities(date("Y-m-d",!is_numeric($info['add_time'])? strtotime($info['add_time']) : $info['add_time'])); ?></span></p></div></div></div><div class="video-list"><div class="video-list-con"><?php if(is_array($relate) || $relate instanceof \think\Collection || $relate instanceof \think\Paginator): $i = 0; $__LIST__ = $relate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><a href="<?php echo url('show'); ?>?id=<?php echo htmlentities($data['id']); ?>" class="video-item"><div class="videos-img <?php if($info['id']==$data['id']): ?>active<?php endif; ?>" style="background-image: url(<?php echo htmlentities($data['img_path']); ?>);"></div><p class="videos-txt"><?php echo htmlentities($data['title']); ?></p></a><?php endforeach; endif; else: echo "" ;endif; ?></div><div class="videos-left" onclick="setVideoList('prev')"></div><div class="videos-right" onclick="setVideoList('next')"></div></div></div><style type="text/css"> .footer-bottom{
  11. line-height: 40px;
  12. width: 100%;
  13. text-align: center;
  14. background-color: #333333;
  15. color: #bbbbbb;
  16. font-size: 12px;
  17. }
  18. .footer-top{
  19. background-color: rgba(0,0,0,0.7);

Call Stack

  1. in 6165e64f7a1e51df31cfe361f30ce031.php line 378
  2. at Error::appError(8, 'Trying to access arr...', '/export/websites/clo...', 378, ['cacheFile' => '/export/websites/clo...', 'vars' => ['title' => '专访详情', 'info' => null, 'relate' => [null, ['id' => 29, 'title' => 'SNEC现场', 'img_path' => 'https://snec2019.oss...', ...], ['id' => 30, 'title' => '...', 'img_path' => 'https://snec2019.oss...', ...], ...]], 'title' => '专访详情', ...]) in 6165e64f7a1e51df31cfe361f30ce031.php line 378
  3. at include('/export/websites/clo...') in File.php line 59
  4. at File->read('/export/websites/clo...', ['title' => '专访详情', 'info' => null, 'relate' => [null, ['id' => 29, 'title' => 'SNEC现场', 'img_path' => 'https://snec2019.oss...', ...], ['id' => 30, 'title' => '...', 'img_path' => 'https://snec2019.oss...', ...], ...]]) in Template.php line 226
  5. at Template->fetch('/export/websites/clo...', ['title' => '专访详情', 'info' => null, 'relate' => [null, ['id' => 29, 'title' => 'SNEC现场', 'img_path' => 'https://snec2019.oss...', ...], ['id' => 30, 'title' => '...', 'img_path' => 'https://snec2019.oss...', ...], ...]], []) in Think.php line 93
  6. at Think->fetch('/export/websites/clo...', ['title' => '专访详情', 'info' => null, 'relate' => [null, ['id' => 29, 'title' => 'SNEC现场', 'img_path' => 'https://snec2019.oss...', ...], ['id' => 30, 'title' => '...', 'img_path' => 'https://snec2019.oss...', ...], ...]], []) in View.php line 192
  7. at View->fetch('', ['title' => '专访详情', 'info' => null, 'relate' => [null, ['id' => 29, 'title' => 'SNEC现场', 'img_path' => 'https://snec2019.oss...', ...], ['id' => 30, 'title' => '...', 'img_path' => 'https://snec2019.oss...', ...], ...]], [], false) in View.php line 42
  8. at View->output('') in Response.php line 396
  9. at Response->getContent() in Response.php line 128
  10. at Response->send() in index.php line 29

Environment Variables

GET Data
id 16
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER daemon
HOME /sbin
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST yunzhan.solarbe.com
REDIRECT_STATUS 200
SERVER_NAME yunzhan.solarbe.com
SERVER_PORT 443
SERVER_ADDR 172.16.0.30
REMOTE_PORT 42564
REMOTE_ADDR 3.236.145.110
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /export/websites/cloudexhibit/public
DOCUMENT_URI /index.php
REQUEST_URI /index/video/show.html?id=16
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/video/show.html&id=16
SCRIPT_FILENAME /export/websites/cloudexhibit/public/index.php
PATH_INFO
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711647674.2354
REQUEST_TIME 1711647674
Environment Variablesempty
ThinkPHP Constants
IMG_UPLOADS /export/websites/cloudexhibit/public/upload
QINIU_FUNCTIONS_VERSION 7.2.10