[8] ErrorException in Show.php line 117

未定义数组索引: title

  1. //$category_names = Db::name('category')->where('id','in',$article['category_ids'])->column('name');
  2. //$this->view->assign('category_names',$category_names);
  3. $article['content'] = str_replace('<br>', '',$article['content']);
  4. $article['content'] = str_replace('src="../uploads','src="/uploads',$article['content']);
  5. $article['content'] = str_replace('<span style="font-size: 18px; line-height: 36px;"><br></span>', '',$article['content']);
  6. $article['content'] = str_replace('<span style="font-size: 14px;"><br></span>', '',$article['content']);
  7. $this->view->assign('article',$article);
  8. $this->view->assign('title',isset($article['seotitle'])?$article['seotitle']:$article['title']);
  9. //相关专题处理
  10. if(!$this->redis->has('topic_'.$id))
  11. {
  12. $topics = Db::name('topic')->field('id,title')->where("article_ids like '%$id%'")->select();
  13. $this->redis->set('topic_'.$id,$topics,186400);
  14. }else{
  15. $topics = $this->redis->get('topic_'.$id);

Call Stack

  1. in Show.php line 117
  2. at Error::appError(8, 'Undefined index: tit...', '/www/wwwobject/test/...', 117, ['id' => 59887, 'module_name' => 'index', 'article' => ['content' => ''], ...]) in Show.php line 117
  3. at Show->article()
  4. at ReflectionMethod->invokeArgs(object(Show), []) in App.php line 197
  5. at App::invokeMethod([object(Show), 'article'], []) in App.php line 411
  6. at App::module(['index', 'show', 'article'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => ['index', 'show', 'article'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  8. at App::run() in start.php line 19
  9. at require('/www/wwwobject/test/...') in index.php line 29

Exception Datas

Error Context
id 59887
module_name index
article { "content": "" }
condition keywords like "%%"
related [ { "id": 94691, "title": "\u5927\u53d1\u5730\u4ea7\u53bb\u5e74\u603b\u8d1f\u503a\u5c31\u5df2\u8fbe312.8\u4ebf \u65b0\u4efb\u8463\u4e8b\u4f1a\u4e3b\u5e2d\u9ad8\u5c71\u5e74\u4ec534\u5c81", "image": "http:\/\/image.cfyys.com.cn\/1711676210929b0daa7e874.jpeg", "publish_time": 1711676233 }, { "id": 94690, "title": "Fortinet \u6838\u5fc3\u9ad8\u7ba1\u56e2\u961f\u8bbf\u8c08\uff1a\u8ba1\u5212\u5728\u6240\u6709\u4ea7\u54c1\u7cfb\u5217\u4e2d\u5f15\u5165\u751f\u6210\u5f0fAI", "image": "http:\/\/image.cfyys.com.cn\/17116747347728f55cd60119.jpeg", "publish_time": 1711674780 }, { "id": 94687, "title": "\u5c0f\u7c73SU7\u53d1\u5e03\u5f15\u9886\u201c\u667a\u80fd\u5316\u201d\u4e0b\u534a\u573a \u96f7\u519b\u91cd\u7533\u201c\u5168\u7403\u524d\u4e94\u8f66\u4f01\u201d\u7684\u957f\u671f\u76ee\u6807", "image": "http:\/\/image.cfyys.com.cn\/1711673968264792f1c52f49.jpeg", "publish_time": 1711674000 }, { "id": 94684, "title": "\u72ec\u5bb6\uff1a\u9ed1\u9f99\u6c5f\u79fb\u52a82023\u5e74\u7ba1\u7406\u5c42\u53d8\u52a8\u76d8\u70b9 \u8c03\u6574\u7684\u73ed\u5b50\u6210\u5458\u4e0d\u591a", "image": "http:\/\/image.cfyys.com.cn\/17116728545525e4c32c56f0.jpeg", "publish_time": 1711672893 } ]

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "session_url": "\/show-list-59887.html" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwobject/test/cfyys.com.cn/public/index.php
QUERY_STRING
s=/show-list-59887.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/show-list-59887.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwobject/test/cfyys.com.cn/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.0
REMOTE_ADDR
3.215.183.194
REMOTE_PORT
34592
SERVER_ADDR
192.168.0.2
SERVER_PORT
80
SERVER_NAME
www.cfyys.com.cn
REDIRECT_STATUS
200
PATH_INFO
/show-list-59887.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
cfyys.com.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711677443.0545
REQUEST_TIME
1711677443
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1711677443.0551
THINK_START_MEM
261440
EXT
.php
DS
/
THINK_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/
LIB_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/
CORE_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwobject/test/cfyys.com.cn/
EXTEND_PATH
/www/wwwobject/test/cfyys.com.cn/extend/
VENDOR_PATH
/www/wwwobject/test/cfyys.com.cn/vendor/
RUNTIME_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/
LOG_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/log/
CACHE_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/cache/
TEMP_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/temp/
CONF_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwobject/test/cfyys.com.cn/addons/