[8] ErrorException in 1aa8d74daeb998ca36022cc06f052ced.php line 158

Trying to get property 'category' of non-object

  1. </li>
  2. <?php endforeach; endif; else: echo "" ;endif; ?>
  3. </ul>
  4. </div>
  5. </div>
  6. <div class="wrapper">
  7. <div class="crumb-nav">
  8. 当前位置:
  9. <a href="/">首页</a> &gt;
  10. <a href="<?php echo url('article/cate',['id'=>$article['cate_id']]); ?>"><?php echo htmlentities($article->category->name); ?></a> &gt;
  11. <a href="<?php echo url('article/detail',['id'=>$article['id']]); ?>"><?php echo htmlentities($article['title']); ?></a>
  12. </div>
  13. <div class="wrapper-l-780">
  14. <div class="content-body">
  15. <div class="content-title"><h2><?php echo htmlentities($article['title']); ?></h2></div>
  16. <div class="content-info"><span>分类:<a
  17. href="<?php echo url('article/cate',['id'=>$article['cate_id']]); ?>"><?php echo htmlentities($article->category->name); ?></a></span> <span>来源:<a
  18. href="<?php echo request()->domain(); ?>"><?php echo site_config('web_site_name'); ?></a></span>
  19. <span>发布时间:<?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($article['create_time'])? strtotime($article['create_time']) : $article['create_time'])); ?></span>

Call Stack

  1. in 1aa8d74daeb998ca36022cc06f052ced.php line 158
  2. at Error::appError(8, 'Trying to get proper...', '/www/wwwroot/www.you...', 158, ['cacheFile' => '/www/wwwroot/www.you...', 'vars' => ['seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], 'cate' => [['id' => 1, 'icon' => '&#xe62b;', 'name' => '女装', ...], ['id' => 2, 'icon' => '&#xe65e;', 'name' => '男装', ...], ['id' => 3, 'icon' => '&#xe60f;', 'name' => '鞋子', ...], ...], 'article_catelist' => [['id' => 1, 'name' => '头条资讯', 'parent_id' => 0, ...], ['id' => 2, 'name' => '穿衣搭配', 'parent_id' => 0, ...], ['id' => 3, 'name' => '美容美妆', 'parent_id' => 0, ...], ...], ...], 'seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], ...]) in 1aa8d74daeb998ca36022cc06f052ced.php line 158
  3. at include('/www/wwwroot/www.you...') in File.php line 59
  4. at File->read('/www/wwwroot/www.you...', ['seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], 'cate' => [['id' => 1, 'icon' => '&#xe62b;', 'name' => '女装', ...], ['id' => 2, 'icon' => '&#xe65e;', 'name' => '男装', ...], ['id' => 3, 'icon' => '&#xe60f;', 'name' => '鞋子', ...], ...], 'article_catelist' => [['id' => 1, 'name' => '头条资讯', 'parent_id' => 0, ...], ['id' => 2, 'name' => '穿衣搭配', 'parent_id' => 0, ...], ['id' => 3, 'name' => '美容美妆', 'parent_id' => 0, ...], ...], ...]) in Template.php line 226
  5. at Template->fetch('/www/wwwroot/www.you...', ['seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], 'cate' => [['id' => 1, 'icon' => '&#xe62b;', 'name' => '女装', ...], ['id' => 2, 'icon' => '&#xe65e;', 'name' => '男装', ...], ['id' => 3, 'icon' => '&#xe60f;', 'name' => '鞋子', ...], ...], 'article_catelist' => [['id' => 1, 'name' => '头条资讯', 'parent_id' => 0, ...], ['id' => 2, 'name' => '穿衣搭配', 'parent_id' => 0, ...], ['id' => 3, 'name' => '美容美妆', 'parent_id' => 0, ...], ...], ...], []) in Think.php line 93
  6. at Think->fetch('/www/wwwroot/www.you...', ['seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], 'cate' => [['id' => 1, 'icon' => '&#xe62b;', 'name' => '女装', ...], ['id' => 2, 'icon' => '&#xe65e;', 'name' => '男装', ...], ['id' => 3, 'icon' => '&#xe60f;', 'name' => '鞋子', ...], ...], 'article_catelist' => [['id' => 1, 'name' => '头条资讯', 'parent_id' => 0, ...], ['id' => 2, 'name' => '穿衣搭配', 'parent_id' => 0, ...], ['id' => 3, 'name' => '美容美妆', 'parent_id' => 0, ...], ...], ...], []) in View.php line 192
  7. at View->fetch('', ['seo' => ['seo_title' => '...', 'seo_keywords' => ',头条,头条资讯...', 'seo_description' => '...'], 'cate' => [['id' => 1, 'icon' => '&#xe62b;', 'name' => '女装', ...], ['id' => 2, 'icon' => '&#xe65e;', 'name' => '男装', ...], ['id' => 3, 'icon' => '&#xe60f;', 'name' => '鞋子', ...], ...], 'article_catelist' => [['id' => 1, 'name' => '头条资讯', 'parent_id' => 0, ...], ['id' => 2, 'name' => '穿衣搭配', 'parent_id' => 0, ...], ['id' => 3, 'name' => '美容美妆', 'parent_id' => 0, ...], ...], ...], [], 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
USER www
HOME /home/www
HTTP_HOST www.youquanya.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.youquanya.com
SERVER_PORT 80
SERVER_ADDR 191.101.44.192
REMOTE_PORT 38190
REMOTE_ADDR 44.213.80.203
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.youquanya.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index/article/detail/id/30668.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/article/detail/id/30668.html
SCRIPT_FILENAME /www/wwwroot/www.youquanya.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711633607.095
REQUEST_TIME 1711633607
Environment Variablesempty
ThinkPHP Constants
PSCWS4_RULE_MAX 31
PSCWS4_RULE_SPECIAL 2147483648
PSCWS4_RULE_NOSTATS 1073741824
PSCWS4_ZRULE_NONE 0
PSCWS4_ZRULE_PREFIX 1
PSCWS4_ZRULE_SUFFIX 2
PSCWS4_ZRULE_INCLUDE 4
PSCWS4_ZRULE_EXCLUDE 8
PSCWS4_ZRULE_RANGE 16
PSCWS4_IGN_SYMBOL 1
PSCWS4_DEBUG 2
PSCWS4_DUALITY 4
PSCWS4_MULTI_NONE 0
PSCWS4_MULTI_SHORT 4096
PSCWS4_MULTI_DUALITY 8192
PSCWS4_MULTI_ZMAIN 16384
PSCWS4_MULTI_ZALL 32768
PSCWS4_MULTI_MASK 61440
PSCWS4_ZIS_USED 134217728
PSCWS4_PFLAG_WITH_MB 1
PSCWS4_PFLAG_ALNUM 2
PSCWS4_PFLAG_VALID 4
PSCWS4_PFLAG_DIGIT 8
PSCWS4_PFLAG_ADDSYM 16
PSCWS4_WORD_FULL 1
PSCWS4_WORD_PART 2
PSCWS4_WORD_USED 4
PSCWS4_WORD_RULE 8
PSCWS4_ZFLAG_PUT 2
PSCWS4_ZFLAG_N2 4
PSCWS4_ZFLAG_NR2 8
PSCWS4_ZFLAG_WHEAD 16
PSCWS4_ZFLAG_WPART 32
PSCWS4_ZFLAG_ENGLISH 64
PSCWS4_ZFLAG_SYMBOL 128
PSCWS4_MAX_EWLEN 16
PSCWS4_MAX_ZLEN 128
XDB_VERSION 34
XDB_TAGNAME XDB
XDB_MAXKLEN 240
0.110383s