[8] ErrorException in Show.php line 195

未定义数组索引: seotitle

  1. Db::name('picture')->where("id = $id and status = 'normal'")->setInc('dianji');
  2. $prev = Db::name('picture')->where(['id'=>['<',$id],'status'=>'normal'])->order('id desc')->find();
  3. $next = Db::name('picture')->where(['id'=>['>',$id],'status'=>'normal'])->order('id asc')->find();
  4. $this->view->assign('prev',$prev);
  5. $this->view->assign('next',$next);
  6. $this->view->assign('picture',$picture);
  7. $this->view->assign('title',$picture['seotitle'] ? $picture['seotitle'] : $picture['title']);
  8. $this->view->assign('images_arr',explode(',',$picture['images']));
  9. $this->view->assign('images_text',explode(',',$picture['picarr_area']));
  10. if($this->request->isMobile()){
  11. return $this->view->fetch('wap@show/'.$this->request->action());
  12. }else{
  13. return $this->view->fetch();
  14. }
  15. }

Call Stack

  1. in Show.php line 195
  2. at Error::appError(8, 'Undefined index: seo...', '/www/wwwobject/test/...', 195, ['id' => 58562, 'picture' => ['imagestext' => ['']], 'prev' => ['id' => 18810, 'category_id' => 0, 'category_ids' => ',0,,94,87,139,,', ...], ...]) in Show.php line 195
  3. at Show->picture()
  4. at ReflectionMethod->invokeArgs(object(Show), []) in App.php line 197
  5. at App::invokeMethod([object(Show), 'picture'], []) in App.php line 411
  6. at App::module(['index', 'show', 'picture'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => ['index', 'show', 'picture'], '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 58562
picture { "imagestext": [ "" ] }
prev { "id": 18810, "category_id": 0, "category_ids": ",0,,94,87,139,,", "title": "\u67d4\u5c4f\u201c\u8155\u673a\u201d\u9ed1\u79d1\u6280 \u8fd9\u4e2a\u65b0\u7269\u79cd\u6709\u70b9\u5389\u5bb3", "flag": "", "linkurl": "", "image": "\/uploads\/20190411\/875ccf1a47d11da291d2a06a0b8733c6_fu.jpg", "seotitle": "\u67d4\u5c4f\u201c\u8155\u673a\u201d\u9ed1\u79d1\u6280 \u8fd9\u4e2a\u65b0\u7269\u79cd\u6709\u70b9\u5389\u5bb3", "keywords": "\u52aa\u6bd4\u4e9a\u963f\u5c14\u6cd5,\u56fe\u8d4f", "description": "\u67d4\u5c4f\u201c\u8155\u673a\u201d\u9ed1\u79d1\u6280 \u8fd9\u4e2a\u65b0\u7269\u79cd\u6709\u70b9\u5389\u5bb3", "images": "\/uploads\/20190411\/nubiyaWatch1.jpg,\/uploads\/20190411\/nubiyaWatch2.jpg,\/uploads\/20190411\/nubiyaWatch3.jpg,\/uploads\/20190411\/nubiyaWatch4.jpg,\/uploads\/20190411\/nubiyaWatch5.jpg,\/uploads\/20190411\/nubiyaWatch6.jpg,\/uploads\/20190411\/nubiyaWatch7.jpg,\/uploads\/20190411\/nubiyaWatch8.jpg,\/uploads\/20190411\/nubiyaWatch9.jpg", "picarr_area": "", "createtime": 1554977401, "updatetime": 1554977401, "weigh": 18810, "content": "<p style=\"line-height: 2;\"><span style=\"font-size: 18px;\">\ufeff<\/span><br><\/p>", "dianji": 72807, "comment": 0, "collect": 0, "addm": 101, "qpindao": 0, "status": "normal", "imagestext": ",,,,,,,," }
next Resource

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "session_url": "\/show-pics-58562.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-pics-58562.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/show-pics-58562.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.234.143.63
REMOTE_PORT
33240
SERVER_ADDR
192.168.0.2
SERVER_PORT
80
SERVER_NAME
www.cfyys.com.cn
REDIRECT_STATUS
200
PATH_INFO
/show-pics-58562.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
cfyys.com.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711727733.6994
REQUEST_TIME
1711727733
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1711727733.7
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/