[8] ErrorException in Article.php line 14

秒速赛车全包稳赢

  1. public function index($aid)
  2. {
  3. $arts=db('archives')->field('id,title,writer,click,content,time,cate_id,keywords,description,litpic,tupian')->find($aid);
  4. $litpic = explode(',',$arts['tupian']);
  5. $arts['tu'] = 1;
  6. if(count($litpic) > 1){
  7. $arts['tupian'] = $litpic;
  8. $arts['tu'] = 2;
  9. }else{
  10. $arts['tupian'] = $arts['tupian'];
  11. }
  12. //var_dump($arts);exit;
  13. $cid=$arts['cate_id'];
  14. $cates=db('cate')->find($cid);
  15. $prev=db('archives')->where('id','<',$aid)->where('cate_id','=',$arts['cate_id'])->order('id desc')->limit(1)->value('id,title');
  16. $next=db('archives')->where('id','>',$aid)->where('cate_id','=',$arts['cate_id'])->order('id asc')->limit(1)->value('id');
  17. $nameRes=db('archives')->field('title')->where(array('id'=>$prev))->limit(1)->select();
  18. $nameRess=db('archives')->field('title')->where(array('id'=>$next))->limit(1)->select();

Call Stack

  1. in Article.php line 14
  2. at Error::appError(8, 'Undefined index: tup...', '/www/wwwroot/www.krm...', 14, ['aid' => '96', 'arts' => ['tu' => 1], 'litpic' => ['']]) in Article.php line 14
  3. at Article->index('96')
  4. at ReflectionMethod->invokeArgs(object(Article), ['96']) in App.php line 224
  5. at App::invokeMethod([object(Article), 'index'], []) in App.php line 389
  6. at App::module(['index', 'article', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  7. at App::run() in start.php line 18
  8. at require('/www/wwwroot/www.krm...') in index.php line 18

秒速赛车全包稳赢

Error Context
aid 96
arts { "tu": 1 }
litpic [ "" ]

秒速赛车全包稳赢

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/www.krm.com/index.php
QUERY_STRING s=/index/article/index/aid/96.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index/article/index/aid/96.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/www.krm.com
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.8.1
REMOTE_ADDR 154.85.189.178
REMOTE_PORT 54806
SERVER_ADDR 172.31.154.186
SERVER_PORT 80
SERVER_NAME www.krm.com
REDIRECT_STATUS 200
PATH_INFO /index/article/index/aid/96.html
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_HOST www.kiomodesign.com
HTTP_ACCEPT */*
HTTP_REFERER http://www.shimengzao.com/index/article/index/aid/96.html
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1549186901.769
REQUEST_TIME 1549186901
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.krm.com/./application/
THINK_VERSION 5.0.6
THINK_START_TIME 1549186901.7697
THINK_START_MEM 259776
EXT .php
DS /
THINK_PATH /www/wwwroot/www.krm.com/thinkphp/
LIB_PATH /www/wwwroot/www.krm.com/thinkphp/library/
CORE_PATH /www/wwwroot/www.krm.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/www.krm.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/www.krm.com/
EXTEND_PATH /www/wwwroot/www.krm.com/extend/
VENDOR_PATH /www/wwwroot/www.krm.com/vendor/
RUNTIME_PATH /www/wwwroot/www.krm.com/runtime/
LOG_PATH /www/wwwroot/www.krm.com/runtime/log/
CACHE_PATH /www/wwwroot/www.krm.com/runtime/cache/
TEMP_PATH /www/wwwroot/www.krm.com/runtime/temp/
CONF_PATH /www/wwwroot/www.krm.com/./application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false