[8] ErrorException in News.php line 175

未定义变量: 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 175
  2. at Error::appError(8, 'Undefined variable: ...', '/data/home/xyu384644...', 175, ['id' => '', 'style' => '', 'resa' => ['id' => '32', 'zh_category_title' => '新闻中心', 'en_category_title' => 'News', ...], ...]) in News.php line 175
  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('/data/home/xyu384644...') in index.php line 25

Environment Variables

GET Data

lang
en_
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/xyu3846440001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
szprl.com
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/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=en_&
REDIRECT_STATUS
200
REMOTE_ADDR
3.239.129.91
REMOTE_PORT
41668
REQUEST_METHOD
GET
REQUEST_URI
/pr/index.php/index/news/detail.html?lang=en_&
SCRIPT_FILENAME
/usr/home/xyu3846440001/htdocs/pr/index.php
SCRIPT_NAME
/pr/index.php
SERVER_ADDR
47.90.15.128
SERVER_ADMIN
webmaster@xyu3846440001.my3w.com
SERVER_NAME
szprl.com
SERVER_PORT
443
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SSL_TLS_SNI
szprl.com
UNIQUE_ID
Yo1EhgoaP88AAD5VzbsAAAAI
PHP_SELF
/pr/index.php/index/news/detail.html
REQUEST_TIME_FLOAT
1653425286.476
REQUEST_TIME
1653425286
Environment Variables
empty

ThinkPHP Constants

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