太阳集团tyc539(股份)有限公司-Sogou百科



[8] ErrorException in ArticleController.php line 73

未定义数组索引: post_content

  1. $comment=$this->getTree($arr,0);
  2. hook('portal_before_assign_article', $article);
  3. $post_tag=explode(',',$article['post_tag']);
  4. $tag_id=array();
  5. foreach ($post_tag as $k=>$v){
  6. $tag_id[]=Db::name('portal_tag')->where(["name" => $v])->value('id');
  7. }
  8. $article['tagid']=implode(',',$tag_id);
  9. $seocontent = msubstr_add(strip_tags($article['post_content']),0,60);
  10. if(!$article['post_keywords']){
  11. $article['post_keywords']=$article['post_title'];
  12. }
  13. if(!$article['post_excerpt']){
  14. $article['post_excerpt']=$seocontent;
  15. }
  16. $this->assign('comment', $comment);
  17. $this->assign('article', $article);
  18. $this->assign('prev_article', $prevArticle);

Call Stack

  1. in ArticleController.php line 73
  2. at Error::appError(8, 'Undefined index: pos...', '/www/wwwroot/www.snb...', 73, ['portalCategoryModel' => object(PortalCategoryModel), 'postService' => object(PostService), 'articleId' => '619', ...]) in ArticleController.php line 73
  3. at ArticleController->index()
  4. at ReflectionMethod->invokeArgs(object(ArticleController), []) in App.php line 197
  5. at App::invokeMethod([object(ArticleController), 'index'], []) in App.php line 416
  6. at App::module(['portal', 'Article', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => ['portal', 'Article', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 124
  8. at App::run() in index.php line 42

Exception Datas

Error Context
portalCategoryModel []
postService {}
articleId 619
categoryId 29
sql SELECT category_id FROM bz_portal_category_post WHERE post_id = 619
caid [ { "category_id": 29 } ]
article { "tagid": "" }
prevArticle Resource
nextArticle Resource
tplName xzzxpage
category { "id": 29, "parent_id": 28, "post_count": 0, "status": 1, "delete_time": 0, "list_order": 10000, "name": "\u9a71\u52a8\u7a0b\u5e8f", "description": "", "path": "0-28-29", "seo_title": "", "seo_keywords": "", "seo_description": "", "list_tpl": "xzzx", "one_tpl": "xzzxpage", "more": { "thumbnail": "" }, "type": "xzzx", "keyword": "", "alias": "qdcx", "home_show_web": 0, "home_show_mobile": 0, "d_id": 0 }
arr []
comment
post_tag [ "" ]
tag_id [ null ]
v
k 0

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
r4a6aq12do8jebmncb5av2cnbh
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=r4a6aq12do8jebmncb5av2cnbh
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.snbc.cn
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
/news/619.html
REDIRECT_STATUS
200
SERVER_NAME
www.snbc.cn
SERVER_PORT
443
SERVER_ADDR
172.26.166.180
REMOTE_PORT
59690
REMOTE_ADDR
104.140.201.74
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.snbc.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/news/619.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/619.html
SCRIPT_FILENAME
/www/wwwroot/www.snbc.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1733366093.5194
REQUEST_TIME
1733366093
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
APP_TRACE
false
CMF_ROOT
/www/wwwroot/www.snbc.cn/
APP_PATH
/www/wwwroot/www.snbc.cn/app/
CMF_PATH
/www/wwwroot/www.snbc.cn/simplewind/cmf/
PLUGINS_PATH
/www/wwwroot/www.snbc.cn/plugins/
EXTEND_PATH
/www/wwwroot/www.snbc.cn/simplewind/extend/
VENDOR_PATH
/www/wwwroot/www.snbc.cn/simplewind/vendor/
RUNTIME_PATH
/www/wwwroot/www.snbc.cn/data/runtime/
THINKCMF_VERSION
5.0.170927
THINK_VERSION
5.0.11
THINK_START_TIME
1733366093.5197
THINK_START_MEM
406032
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/
LIB_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/
CORE_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.snbc.cn/simplewind/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.snbc.cn/
LOG_PATH
CACHE_PATH
/www/wwwroot/www.snbc.cn/data/runtime/cache/
TEMP_PATH
/www/wwwroot/www.snbc.cn/data/runtime/temp/
CONF_PATH
/www/wwwroot/www.snbc.cn/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/www/wwwroot/www.snbc.cn/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1