[8] ErrorException in News.php line 176

未定义变量: new

  1. }
  2. if($pre_id != ''){
  3. $pre_info = Db::name("article")->where("id",$pre_id)->find();
  4. }else{
  5. $pre_info = '';
  6. }
  7. }
  8. $this->assign('new',$new);
  9. $this->assign('resa',$resa);
  10. $this->assign('resb',$resb);
  11. $this->assign('style',$style);
  12. $this->assign("next_info",$next_info);
  13. $this->assign("pre_info",$pre_info);
  14. return $this->fetch();
  15. // $detail_info = Db::name("article")->where("id",$id)->find();
  16. // //更新文章阅读次数

Call Stack

  1. in News.php line 176
  2. at Error::appError(8, 'Undefined variable: ...', '/usr/home/xyu3846440...', 176, ['id' => '', 'style' => '', 'resa' => ['id' => '32', 'zh_category_title' => '新闻中心', 'en_category_title' => 'News', ...], ...]) in News.php line 176
  3. at News->detail()
  4. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  5. at App::invokeMethod([object(News), 'detail'], []) in App.php line 610
  6. at App::module(['index', 'news', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'detail']], ['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('/usr/home/xyu3846440...') in index.php line 25

Environment Variables

GET Data

lang
zh_
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/xyu3846440001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
szprl.com
HTTP_USER_AGENT
claudebot
PATH
/bin
PATH_INFO
/index/news/detail.html
PATH_TRANSLATED
/usr/home/xyu3846440001/htdocs/pr/index.php
PHPRC
/var/www/php56/hichina_ini/xyu3846440001
QUERY_STRING
lang=zh_
REDIRECT_STATUS
200
REMOTE_ADDR
3.235.42.157
REMOTE_PORT
34138
REQUEST_METHOD
GET
REQUEST_URI
/pr/index.php/index/news/detail.html?lang=zh_
SCRIPT_FILENAME
/usr/home/xyu3846440001/htdocs/pr/index.php
SCRIPT_NAME
/pr/index.php
SCRIPT_URI
http://szprl.com/pr/index.php/index/news/detail.html
SCRIPT_URL
/pr/index.php/index/news/detail.html
SERVER_ADDR
10.19.196.194
SERVER_ADMIN
webmaster@xyu3846440001.my3w.com
SERVER_NAME
szprl.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZflcBQoTxMIAEzDqakYAAAAL
PHP_SELF
/pr/index.php/index/news/detail.html
REQUEST_TIME_FLOAT
1710840837.3963
REQUEST_TIME
1710840837
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/xyu3846440001/htdocs/pr/application/
UPLOAD_PATH
/usr/home/xyu3846440001/htdocs/pr/public
RUNTIME_PATH
/usr/home/xyu3846440001/htdocs/pr/runtime/
THINK_VERSION
5.0.20
THINK_START_TIME
1710840837.3972
THINK_START_MEM
220552
EXT
.php
DS
/
THINK_PATH
/usr/home/xyu3846440001/htdocs/pr/thinkphp/
LIB_PATH
/usr/home/xyu3846440001/htdocs/pr/thinkphp/library/
CORE_PATH
/usr/home/xyu3846440001/htdocs/pr/thinkphp/library/think/
TRAIT_PATH
/usr/home/xyu3846440001/htdocs/pr/thinkphp/library/traits/
ROOT_PATH
/usr/home/xyu3846440001/htdocs/pr/
EXTEND_PATH
/usr/home/xyu3846440001/htdocs/pr/extend/
VENDOR_PATH
/usr/home/xyu3846440001/htdocs/pr/vendor/
LOG_PATH
/usr/home/xyu3846440001/htdocs/pr/runtime/log/
CACHE_PATH
/usr/home/xyu3846440001/htdocs/pr/runtime/cache/
TEMP_PATH
/usr/home/xyu3846440001/htdocs/pr/runtime/temp/
CONF_PATH
/usr/home/xyu3846440001/htdocs/pr/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
VIEW_PATH
/usr/home/xyu3846440001/htdocs/pr/application/../application/index/view/default/