[8] ErrorException in HomeBaseController.phphtml line 126

未定义变量: upnews

  1. $upnews="<a class='pre' href="//shogunaudio.com/".$request->controller()."/".$sonid."/cid/".$topnews[$k-1]["id'].".html' title1='上一篇:".$topnews[$k-1][$title]."'><span class='icon-pre'></span></a>";
  2. if($k<count($topnews)-1){
  3. $downnews="<a class='next' href="//shogunaudio.com/".$request->controller()."/".$sonid."/cid/".$topnews[$k+1]["id'].".html' title1='下一篇:".$topnews[$k+1][$title]."'><span class='icon-next'></span></a>";
  4. }else{
  5. $downnews="<span class='icon-next' title1='下一篇:没有了!'></span>";
  6. }
  7. }
  8. }
  9. }
  10. $this->assign(['upnews'=>$upnews,'downnews'=>$downnews]);
  11. }
  12. }

Call Stack

  1. in HomeBaseController.phphtml line 126
  2. at Error::appError(8, 'Undefined variable: ...', '/webroot/51wangfu.co...', 126, ['id' => 'href="//shogunaudio.com/casesshow/19/cid/, "typeid' => 6, 'sonid' => '19', ...]) in HomeBaseController.phphtml line 126
  3. at HomeBaseController->getpidData('href="//shogunaudio.com/casesshow/19/cid/, 6, "19') in Casesshow.phphtml line 13
  4. at Casesshow->index('href="//shogunaudio.com/casesshow/19/cid/)
  5. at ReflectionMethod->invokeArgs(object(Casesshow), ["href="//shogunaudio.com/casesshow/19/cid/]) in App.phphtml line 343
  6. at App::invokeMethod([object(Casesshow), "index'], []) in App.phphtml line 611
  7. at App::module(['home', 'casesshow', 'index'], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...], false) in App.phphtml line 457
  8. at App::exec(['type' => 'module', 'module' => ['home', 'casesshow', 'index'], 'convert' =>false], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...]) in App.phphtml line 139
  9. at App::run() in start.phphtml line 19
  10. at require('/webroot/51wangfu.co...') in index.phphtml line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/webroot/shogunaudio.com//index.phphtml
QUERY_STRING
s=/casesshow/19/cid/href=
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.phphtml
REQUEST_URI
/casesshow/19/cid/href=
DOCUMENT_URI
/index.phphtml
DOCUMENT_ROOT
/webroot/shogunaudio.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.0
REMOTE_ADDR
154.80.255.118
REMOTE_PORT
57672
SERVER_ADDR
60.169.78.247
SERVER_PORT
80
SERVER_NAME
www.shogunaudio.com
REDIRECT_STATUS
200
HTTP_HOST
www.shogunaudio.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PHP_SELF
/index.phphtml
REQUEST_TIME_FLOAT
1582498198.3161
REQUEST_TIME
1582498198
argv
[ "s=\/casesshow\/19\/cid\/href=" ]
argc
1
PATH_INFO
/casesshow/19/cid/href=

Environment Variables

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/webroot/shogunaudio.com//index.phphtml
QUERY_STRING
s=/casesshow/19/cid/href=
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.phphtml
REQUEST_URI
/casesshow/19/cid/href=
DOCUMENT_URI
/index.phphtml
DOCUMENT_ROOT
/webroot/shogunaudio.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.0
REMOTE_ADDR
154.80.255.118
REMOTE_PORT
57672
SERVER_ADDR
60.169.78.247
SERVER_PORT
80
SERVER_NAME
www.shogunaudio.com
REDIRECT_STATUS
200
HTTP_HOST
www.shogunaudio.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PHP_SELF
/index.phphtml
REQUEST_TIME_FLOAT
1582498198.3161
REQUEST_TIME
1582498198
argv
[ "s=\/casesshow\/19\/cid\/href=" ]
argc
1

ThinkPHP Constants

APP_PATH
/webroot/shogunaudio.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1582498198.3168
THINK_START_MEM
250368
EXT
.phphtml
DS
/
THINK_PATH
/webroot/shogunaudio.com/thinkphp/
LIB_PATH
/webroot/shogunaudio.com/thinkphp/library/
CORE_PATH
/webroot/shogunaudio.com/thinkphp/library/think/
TRAIT_PATH
/webroot/shogunaudio.com/thinkphp/library/traits/
ROOT_PATH
/webroot/shogunaudio.com/
EXTEND_PATH
/webroot/shogunaudio.com/extend/
VENDOR_PATH
/webroot/shogunaudio.com/vendor/
RUNTIME_PATH
/webroot/shogunaudio.com/runtime/
LOG_PATH
/webroot/shogunaudio.com/runtime/log/
CACHE_PATH
/webroot/shogunaudio.com/runtime/cache/
TEMP_PATH
/webroot/shogunaudio.com/runtime/temp/
CONF_PATH
/webroot/shogunaudio.com/application/
CONF_EXT
.phphtml
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false