[8] ErrorException in 165a6d74b238e98cfc64e1502e005668.php line 348

未定义数组索引: id

  1. <?php foreach($images as $k=>$v){
  2. echo '
  3. <div onclick="selPic(this,';echo "'";echo $v['src'];echo "'";echo ')" class="sub-item '.$v['active'].'"><img src="'.$v['src'].'"></div>';
  4. }?>
  5. </div>
  6. </div>
  7. <!-- <div class="pro-pic-wrap">-->
  8. <!-- <div class="pro-pic-swiper">-->
  9. <!-- <iframe data-src="300-thumbs-gallery.html" scrolling="no" frameborder="0" style="height: 500px;width: 100%;" src="/product/image_swiper?id=<?php echo $detail['id']; ?>"></iframe>-->
  10. <!-- </div>-->
  11. <!-- </div>-->
  12. <div class="pro-info-wrap" style="flex: 1;width: auto;">
  13. <div class="pro-info-title"><?php echo $detail['name']; ?></div>
  14. <div ><?php echo $detail['description']; ?></div>
  15. </div>
  16. </div>
  17. <div class="pro-content-wrap">

Call Stack

  1. in 165a6d74b238e98cfc64e1502e005668.php line 348
  2. at Error::appError(8, 'Undefined index: id', '/www/wwwroot/en.best...', 348, ['cacheFile' => '/www/wwwroot/en.best...', 'vars' => ['langName' => 'español', 'common_info' => ['id' => 3, 'lang' => 3, 'name' => 'BESTPROTECTIVE', ...], 'constant_data' => ['contact_us' => 'Contacta con nosotro...', 'address' => 'dirección', 'tel' => 'Tel.', ...], ...], 'langName' => 'español', ...]) in 165a6d74b238e98cfc64e1502e005668.php line 348
  3. at include('/www/wwwroot/en.best...') in File.php line 53
  4. at File->read('/www/wwwroot/en.best...', ['langName' => 'español', 'common_info' => ['id' => 3, 'lang' => 3, 'name' => 'BESTPROTECTIVE', ...], 'constant_data' => ['contact_us' => 'Contacta con nosotro...', 'address' => 'dirección', 'tel' => 'Tel.', ...], ...]) in Template.php line 188
  5. at Template->fetch('/www/wwwroot/en.best...', ['langName' => 'español', 'common_info' => ['id' => 3, 'lang' => 3, 'name' => 'BESTPROTECTIVE', ...], 'constant_data' => ['contact_us' => 'Contacta con nosotro...', 'address' => 'dirección', 'tel' => 'Tel.', ...], ...], []) in Think.php line 86
  6. at Think->fetch('detail', ['langName' => 'español', 'common_info' => ['id' => 3, 'lang' => 3, 'name' => 'BESTPROTECTIVE', ...], 'constant_data' => ['contact_us' => 'Contacta con nosotro...', 'address' => 'dirección', 'tel' => 'Tel.', ...], ...], []) in View.php line 163
  7. at View->fetch('detail', ['detail' => ['images' => [null]], 'images' => [['src' => null, 'active' => 'sub-item-active']], 'cate' => [['id' => 19, 'lang' => 3, 'name' => 'mascarmascarmascarma...', ...], ['id' => 34, 'lang' => 3, 'name' => 'mascarmascarmascarma...', ...], ['id' => 69, 'lang' => 3, 'name' => 'Máscara de niños d...', ...], ...], ...], []) in View.php line 36
  8. at View->output('detail') in Response.php line 309
  9. at Response->getContent() in Response.php line 94
  10. at Response->send() in start.php line 19
  11. at require('/www/wwwroot/en.best...') in index.php line 18

Environment Variables

GET Data

id
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/en.bestprotective.com/public/index.php
QUERY_STRING
s=/product/detail&id=
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/product/detail?id=
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/en.bestprotective.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
34.229.151.93
REMOTE_PORT
48682
SERVER_ADDR
172.25.128.253
SERVER_PORT
80
SERVER_NAME
en.bestprotective.com
REDIRECT_STATUS
200
PATH_INFO
/product/detail
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
es.bestprotective.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711702298.3196
REQUEST_TIME
1711702298
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/en.bestprotective.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711702298.3199
THINK_START_MEM
259496
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/en.bestprotective.com/thinkphp/
LIB_PATH
/www/wwwroot/en.bestprotective.com/thinkphp/library/
CORE_PATH
/www/wwwroot/en.bestprotective.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/en.bestprotective.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/en.bestprotective.com/
EXTEND_PATH
/www/wwwroot/en.bestprotective.com/extend/
VENDOR_PATH
/www/wwwroot/en.bestprotective.com/vendor/
RUNTIME_PATH
/www/wwwroot/en.bestprotective.com/runtime/
LOG_PATH
/www/wwwroot/en.bestprotective.com/runtime/log/
CACHE_PATH
/www/wwwroot/en.bestprotective.com/runtime/cache/
TEMP_PATH
/www/wwwroot/en.bestprotective.com/runtime/temp/
CONF_PATH
/www/wwwroot/en.bestprotective.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false