[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
en_
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
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
www.szprl.com
HTTP_IF_MODIFIED_SINCE
Mon, 02 Oct 2023 08:34:39 GMT
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
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=en_&
REDIRECT_STATUS
200
REMOTE_ADDR
44.192.15.251
REMOTE_PORT
47064
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
SCRIPT_URI
http://www.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
www.szprl.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
Zd9h6goTxMIADPti86IAAAAL
PHP_SELF
/pr/index.php/index/news/detail.html
REQUEST_TIME_FLOAT
1709138410.1073
REQUEST_TIME
1709138410
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
1709138410.1082
THINK_START_MEM
221672
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/