[2] ErrorException in Index.php line 130

A non-numeric value encountered

  1. $this->assign('article_cat',$article_cat);
  2. $goods_cat = Db::name('article_cat')->where(['is_delete'=>0,'cat_id'=>['<>',6]])->select();
  3. $this->assign('goods_cat',$goods_cat);
  4. $new_news = Db::name('article')->where(['is_delete'=>0,'cat_id'=>['neq',6]])->order(['click'=>'desc'])->limit(5)->select();
  5. foreach ($new_news as $k=>$v){
  6. $new_news[$k]['add_time'] = format_time($v['add_time']);
  7. }
  8. $this->assign('new_news',$new_news);
  9. $pre = $article_id - 1;
  10. $pre = Db::name('article')->where(['is_delete'=>0,'article_id'=>['eq',$pre]])->find();
  11. $nex = $article_id + 1;
  12. $nex = Db::name('article')->where(['is_delete'=>0,'article_id'=>['eq',$nex]])->find();
  13. $this->assign('pre',$pre);
  14. $this->assign('nex',$nex);
  15. return view();
  16. }

Call Stack

  1. in Index.php line 130
  2. at Error::appError(2, 'A non-numeric value ...', '/data/wisecare365.ci...', 130, ['data' => '/detail/index.html', 'article_id' => '', 'article' => null, ...]) in Index.php line 130
  3. at Index->detail()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'detail'], []) in App.php line 611
  6. at App::module(['index', 'index', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'detail'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/data/wisecare365.ci...') in index.php line 30

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
wisecare365.cihaw.com
PATH_INFO
//detail/index.html
REDIRECT_STATUS
200
SERVER_NAME
wisecare365.cihaw.com
SERVER_PORT
443
SERVER_ADDR
192.168.0.242
REMOTE_PORT
60334
REMOTE_ADDR
3.238.57.9
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/data/wisecare365.cihaw.com
DOCUMENT_URI
/index.php
REQUEST_URI
/detail/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//detail/index.html
SCRIPT_FILENAME
/data/wisecare365.cihaw.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711657536.5817
REQUEST_TIME
1711657536
Environment Variables
empty

ThinkPHP Constants

PLUGIN_PATH
/data/plugins/
SITE_URL
https://wisecare365.cihaw.com
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
NOW_TIME
1711657536
IS_SAAS
0
APP_PATH
/data/wisecare365.cihaw.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711657536.582
THINK_START_MEM
417584
EXT
.php
DS
/
THINK_PATH
/data/wisecare365.cihaw.com/thinkphp/
LIB_PATH
/data/wisecare365.cihaw.com/thinkphp/library/
CORE_PATH
/data/wisecare365.cihaw.com/thinkphp/library/think/
TRAIT_PATH
/data/wisecare365.cihaw.com/thinkphp/library/traits/
ROOT_PATH
/data/wisecare365.cihaw.com/
EXTEND_PATH
/data/wisecare365.cihaw.com/extend/
VENDOR_PATH
/data/wisecare365.cihaw.com/vendor/
RUNTIME_PATH
/data/wisecare365.cihaw.com/runtime/
LOG_PATH
/data/wisecare365.cihaw.com/runtime/log/
CACHE_PATH
/data/wisecare365.cihaw.com/runtime/cache/
TEMP_PATH
/data/wisecare365.cihaw.com/runtime/temp/
CONF_PATH
/data/wisecare365.cihaw.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false