[8] ErrorException in 7e23abb38c74f0d2e3d5b0819a699b4d.php line 235

未定义变量: parent

  1. <a href="<?php echo url('search/index',array('cateId'=>$parent['parent_id'])); ?>"><span>返回上级</span></a>
  2. </li>
  3. <?php else: ?>
  4. <li onclick="cateClickFun(this)">
  5. <a href="<?php echo url('search/index'); ?>"><span>返回上级</span></a>
  6. </li>
  7. <?php endif; ?>
  8. <li class="current" onclick="cateClickFun(this,'<?php echo htmlentities($parent['id']); ?>')">
  9. <a href="<?php echo url('search/index',array('cateId'=>$parent['id'])); ?>"><span>全部(<?php echo htmlentities($parent['name']); ?>)</span></a>
  10. </li>
  11. <?php else: ?>
  12. <li class="current" onclick="cateClickFun(this)">
  13. <a href="<?php echo url('search/index'); ?>"><span>全部</span></a>
  14. </li>
  15. <?php endif; if(is_array($cates) || $cates instanceof \think\Collection || $cates instanceof \think\Paginator): $i = 0; $__LIST__ = $cates;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i;?>
  16. <li onclick="cateClickFun(this,'<?php echo htmlentities($cate['id']); ?>')"><a href="<?php echo url('search/index',array('cateId'=>$cate['id'])); ?>"><span><?php echo htmlentities($cate['name']); ?></span><i>(<?php echo htmlentities($cate['productNum']); ?>)</i></a></li>
  17. <?php endforeach; endif; else: echo "" ;endif; ?>

Call Stack

  1. in 7e23abb38c74f0d2e3d5b0819a699b4d.php line 235
  2. at Error::appError(8, 'Undefined variable: ...', '/var/www/html/runtim...', 235, ['cacheFile' => '/var/www/html/runtim...', 'vars' => ['time' => 1711696280, 'isOa' => 0, 'mainCates' => [['id' => '20240312084812099762...', 'parentId' => null, 'name' => '易装', ...], ['id' => '20200320204525813200...', 'parentId' => null, 'name' => '营建物料', ...], ['id' => '20191006161255744245...', 'parentId' => null, 'name' => '五金配件', ...], ...], ...], 'time' => 1711696280, ...]) in 7e23abb38c74f0d2e3d5b0819a699b4d.php line 235
  3. at include('/var/www/html/runtim...') in File.php line 59
  4. at File->read('/var/www/html/runtim...', ['time' => 1711696280, 'isOa' => 0, 'mainCates' => [['id' => '20240312084812099762...', 'parentId' => null, 'name' => '易装', ...], ['id' => '20200320204525813200...', 'parentId' => null, 'name' => '营建物料', ...], ['id' => '20191006161255744245...', 'parentId' => null, 'name' => '五金配件', ...], ...], ...]) in Template.php line 226
  5. at Template->fetch('/var/www/html/applic...', ['time' => 1711696280, 'isOa' => 0, 'mainCates' => [['id' => '20240312084812099762...', 'parentId' => null, 'name' => '易装', ...], ['id' => '20200320204525813200...', 'parentId' => null, 'name' => '营建物料', ...], ['id' => '20191006161255744245...', 'parentId' => null, 'name' => '五金配件', ...], ...], ...], []) in Think.php line 93
  6. at Think->fetch('/var/www/html/applic...', ['time' => 1711696280, 'isOa' => 0, 'mainCates' => [['id' => '20240312084812099762...', 'parentId' => null, 'name' => '易装', ...], ['id' => '20200320204525813200...', 'parentId' => null, 'name' => '营建物料', ...], ['id' => '20191006161255744245...', 'parentId' => null, 'name' => '五金配件', ...], ...], ...], []) in View.php line 192
  7. at View->fetch('', ['time' => 1711696280, 'isOa' => 0, 'mainCates' => [['id' => '20240312084812099762...', 'parentId' => null, 'name' => '易装', ...], ['id' => '20200320204525813200...', 'parentId' => null, 'name' => '营建物料', ...], ['id' => '20191006161255744245...', 'parentId' => null, 'name' => '五金配件', ...], ...], ...], [], 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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_STATUS 200
HTTP_X_REAL_IP 54.226.155.151
HTTP_HOST www.yicaiyx.com
HTTP_CONNECTION upgrade
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.38 (Debian) Server at www.yicaiyx.com Port 80</address>
SERVER_SOFTWARE Apache/2.4.38 (Debian)
SERVER_NAME www.yicaiyx.com
SERVER_ADDR 172.17.0.4
SERVER_PORT 80
REMOTE_ADDR 47.111.77.149
DOCUMENT_ROOT /var/www/html/public/
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/public/
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/html/public/index.php
REMOTE_PORT 33398
REDIRECT_URL /search/index/cateId/202004091425508111071209881.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /search/index/cateId/202004091425508111071209881.html
SCRIPT_NAME /index.php
PATH_INFO /search/index/cateId/202004091425508111071209881.html
PATH_TRANSLATED redirect:/index.php/search/index/cateId/202004091425508111071209881.html/index/cateId/202004091425508111071209881.html
PHP_SELF /index.php/search/index/cateId/202004091425508111071209881.html
REQUEST_TIME_FLOAT 1711696280.763
REQUEST_TIME 1711696280
Environment Variablesempty
ThinkPHP Constantsempty