[8] ErrorException in News.php line 61

未定义变量: status

  1. if($cookie == 'en'){
  2. $status = 'Professional Soft Copy';
  3. }else{
  4. $status = '专业软文';
  5. }
  6. }
  7. if($cookie == 'en'){
  8. $n = 'News & Events-'.$status.'-Dexiang Technology';
  9. }else{
  10. $n = '新闻动态-'.$status.'-天博手机app';
  11. }
  12. $site = [
  13. 'name' => $n,
  14. 'keywords' => $keywords['value'],
  15. 'content' => $content['value'],
  16. 'logo' => $logo['value'],
  17. ];
  18. $news = Db::name('news')->where('fl',$fl)->where('zd',1)->where('status',1)->limit(3)->order('time desc')->select();
  19. $news2 = Db::name('news')->where('fl',$fl)->where('zd',0)->where('status',1)->order('time desc')->paginate(4,false,['query' => request()->param()]);

Call Stack

  1. in News.php line 61
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/dexiang...', 61, ['fl' => '4', 'cookie' => 'cn', 'name' => ['id' => 1, 'name' => 'name', 'group' => 'basic', ...], ...]) in News.php line 61
  3. at News->index()
  4. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  5. at App::invokeMethod([object(News), 'index'], []) in App.php line 611
  6. at App::module(['index', 'News', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'News', 'index']], ['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('/www/wwwroot/dexiang...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
irt0nh6vd7garftfn09pu6rek7
lang
cn
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/News/index/status/4
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/News/index/status/4
REMOTE_PORT
49854
SCRIPT_FILENAME
/www/wwwroot/dexiang.ocean-ad.vip/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/dexiang.ocean-ad.vip/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/dexiang.ocean-ad.vip/public
REMOTE_ADDR
120.89.70.154
SERVER_PORT
80
SERVER_ADDR
172.17.192.23
SERVER_NAME
www.tegent.com.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.tegent.com.cn Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
CONTENT_TYPE
application/x-www-form-urlencoded
CONTENT_LENGTH
0
HTTP_ACCEPT_CHARSET
utf-8
HTTP_COOKIE
PHPSESSID=irt0nh6vd7garftfn09pu6rek7; lang=cn
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.tegent.com.cn
proxy-nokeepalive
1
REDIRECT_STATUS
200
REDIRECT_PATH_INFO
News/index/status/4
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1660895158.5813
REQUEST_TIME
1660895158
PATH_INFO
News/index/status/4
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/dexiang.ocean-ad.vip/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1660895158.5818
THINK_START_MEM
384344
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/dexiang.ocean-ad.vip/thinkphp/
LIB_PATH
/www/wwwroot/dexiang.ocean-ad.vip/thinkphp/library/
CORE_PATH
/www/wwwroot/dexiang.ocean-ad.vip/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/dexiang.ocean-ad.vip/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/dexiang.ocean-ad.vip/
EXTEND_PATH
/www/wwwroot/dexiang.ocean-ad.vip/extend/
VENDOR_PATH
/www/wwwroot/dexiang.ocean-ad.vip/vendor/
RUNTIME_PATH
/www/wwwroot/dexiang.ocean-ad.vip/runtime/
LOG_PATH
/www/wwwroot/dexiang.ocean-ad.vip/runtime/log/
CACHE_PATH
/www/wwwroot/dexiang.ocean-ad.vip/runtime/cache/
TEMP_PATH
/www/wwwroot/dexiang.ocean-ad.vip/runtime/temp/
CONF_PATH
/www/wwwroot/dexiang.ocean-ad.vip/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/dexiang.ocean-ad.vip/addons/