[8] ErrorException in HomeBaseController.php line 119

未定义变量: upnews

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

Call Stack

  1. in HomeBaseController.php line 119
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/wangfus...', 119, ['id' => '63', 'typeid' => 6, 'sonid' => '19', ...]) in HomeBaseController.php line 119
  3. at HomeBaseController->getpidData('63', 6, '19') in Casesshow.php line 12
  4. at Casesshow->index('63')
  5. at ReflectionMethod->invokeArgs(object(Casesshow), ['63']) in App.php line 343
  6. at App::invokeMethod([object(Casesshow), 'index'], []) in App.php line 611
  7. at App::module(['home', 'casesshow', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['home', 'casesshow', 'index'], 'convert' => false], ['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('/www/wwwroot/wangfus...') in index.php line 19

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
tg.wangfushidai.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/casesshow/19/cid/63.html
REDIRECT_STATUS
200
SERVER_NAME
tg.wangfushidai.cn
SERVER_PORT
80
SERVER_ADDR
172.17.0.3
REMOTE_PORT
44256
REMOTE_ADDR
3.238.135.30
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/wangfushidai.com
DOCUMENT_URI
/index.php
REQUEST_URI
/casesshow/19/cid/63.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/casesshow/19/cid/63.html
SCRIPT_FILENAME
/www/wwwroot/wangfushidai.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711702867.681
REQUEST_TIME
1711702867
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/wangfushidai.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711702867.6818
THINK_START_MEM
412512
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/wangfushidai.com/thinkphp/
LIB_PATH
/www/wwwroot/wangfushidai.com/thinkphp/library/
CORE_PATH
/www/wwwroot/wangfushidai.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/wangfushidai.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/wangfushidai.com/
EXTEND_PATH
/www/wwwroot/wangfushidai.com/extend/
VENDOR_PATH
/www/wwwroot/wangfushidai.com/vendor/
RUNTIME_PATH
/www/wwwroot/wangfushidai.com/runtime/
LOG_PATH
/www/wwwroot/wangfushidai.com/runtime/log/
CACHE_PATH
/www/wwwroot/wangfushidai.com/runtime/cache/
TEMP_PATH
/www/wwwroot/wangfushidai.com/runtime/temp/
CONF_PATH
/www/wwwroot/wangfushidai.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false