[8] ErrorException in Article.php line 76

未定义变量: where

  1. //文章详情:lm参数主要用于获取单页,某个分类下的一篇文章
  2. public function article_info($id='',$lm=''){
  3. if($lm != ''){
  4. $where['sort_id'] = $lm;
  5. }
  6. if($id != ''){
  7. $where['article_id'] = $id;
  8. }
  9. $article_info = Db::name("article")->where($where)->find();
  10. return $article_info;
  11. }
  12. }

Call Stack

  1. in Article.php line 76
  2. at Error::appError(8, 'Undefined variable: ...', '/hosting/s248159/app...', 76, ['id' => 0, 'lm' => '']) in Article.php line 76
  3. at Article->article_info(0) in Index.php line 44
  4. at Index->page_info()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'page_info'], []) in App.php line 611
  7. at App::module(['index', 'index', 'page_info'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'page_info']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/hosting/s248159/thi...') in index.php line 33

Environment Variables

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

Server/Request Data

PATH
/sbin:/usr/sbin:/bin:/usr/bin
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/index/index/page_info/art_id/www.cooc.org.cn
QUERY_STRING
s=/index/index/page_info/art_id/www.cooc.org.cn
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/index/index/page_info/art_id/www.cooc.org.cn
REDIRECT_QUERY_STRING
s=/index/index/page_info/art_id/www.cooc.org.cn
REMOTE_PORT
60154
SCRIPT_FILENAME
/hosting/s248159/index.php
SERVER_ADMIN
root@localhost
DOCUMENT_ROOT
/hosting/s248159
REMOTE_ADDR
54.205.238.173
SERVER_PORT
80
SERVER_ADDR
61.135.129.96
SERVER_NAME
realexhibition.cn
SERVER_SOFTWARE
Apache/2.2.15 (CentOS)
SERVER_SIGNATURE
<address>Apache/2.2.15 (CentOS) Server at realexhibition.cn Port 80</address>
HTTP_HOST
realexhibition.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711703638.1162
REQUEST_TIME
1711703638
PATH_INFO
/index/index/page_info/art_id/www.cooc.org.cn
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/hosting/s248159/application/
UPLOAD_PATH
public/upload/
SITE_URL
http://realexhibition.cn
NOW_TIME
1711703638
THINK_VERSION
5.0.24
THINK_START_TIME
1711703638.1178
THINK_START_MEM
260192
EXT
.php
DS
/
THINK_PATH
/hosting/s248159/thinkphp/
LIB_PATH
/hosting/s248159/thinkphp/library/
CORE_PATH
/hosting/s248159/thinkphp/library/think/
TRAIT_PATH
/hosting/s248159/thinkphp/library/traits/
ROOT_PATH
/hosting/s248159/
EXTEND_PATH
/hosting/s248159/extend/
VENDOR_PATH
/hosting/s248159/vendor/
RUNTIME_PATH
/hosting/s248159/runtime/
LOG_PATH
/hosting/s248159/runtime/log/
CACHE_PATH
/hosting/s248159/runtime/cache/
TEMP_PATH
/hosting/s248159/runtime/temp/
CONF_PATH
/hosting/s248159/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false