[2] ErrorException in File.php line 32

file_put_contents(/www/wwwroot/hanganxian/public/../runtime/temp/5f702e6342de63f5ca87a546fc9b79e2.php): failed to open stream: Permission denied

  1. */
  2. public function write($cacheFile, $content)
  3. {
  4. // 检测模板目录
  5. $dir = dirname($cacheFile);
  6. if (!is_dir($dir)) {
  7. mkdir($dir, 0755, true);
  8. }
  9. // 生成模板缓存文件
  10. if (false === file_put_contents($cacheFile, $content)) {
  11. throw new Exception('cache write error:' . $cacheFile, 11602);
  12. }
  13. }
  14. /**
  15. * 读取编译编译
  16. * @param string $cacheFile 缓存的文件名
  17. * @param array $vars 变量数组
  18. * @return void

Call Stack

  1. in File.php line 32
  2. at Error::appError(2, 'file_put_contents(/w...', '/www/wwwroot/hanganx...', 32, ['cacheFile' => '/www/wwwroot/hanganx...', 'content' => '<?php if (!defined('...', 'dir' => '/www/wwwroot/hanganx...'])
  3. at file_put_contents('/www/wwwroot/hanganx...', '<?php if (!defined('...') in File.php line 32
  4. at File->write('/www/wwwroot/hanganx...', '<?php if (!defined('...') in Template.php line 356
  5. at Template->compiler('<?php if (!defined('...', '/www/wwwroot/hanganx...') in Template.php line 190
  6. at Template->fetch('/www/wwwroot/hanganx...', ['cid' => '9', 'id' => '18', 'aid' => '519', ...], []) in Think.php line 84
  7. at Think->fetch('/www/wwwroot/hanganx...', ['cid' => '9', 'id' => '18', 'aid' => '519', ...], []) in View.php line 159
  8. at View->fetch('', ['cid' => '9', 'id' => '18', 'aid' => '519', ...], [], []) in Controller.php line 111
  9. at Controller->fetch() in News.php line 78
  10. at News->detail()
  11. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 196
  12. at App::invokeMethod([object(News), 'detail'], []) in App.php line 416
  13. at App::module(['index', 'news', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 295
  14. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  15. at App::run() in start.php line 18
  16. at require('/www/wwwroot/hanganx...') in index.php line 23

Exception Datas

Error Context
cacheFile /www/wwwroot/hanganxian/public/../runtime/temp/5f702e6342de63f5ca87a546fc9b79e2.php
content <?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:73:"/www/wwwroot/hanganxian/public/../application/index/view/news/detail.html";i:1652589649;s:73:"/www/wwwroot/hanganxian/public/../application/index/view/public/menu.html";i:1652589649;s:77:"/www/wwwroot/hanganxian/public/../application/index/view/public/leftmenu.html";i:1652589649;s:80:"/www/wwwroot/hanganxian/public/../application/index/view/public/bread-crumb.html";i:1652589649;s:75:"/www/wwwroot/hanganxian/public/../application/index/view/public/footer.html";i:1652589649;s:80:"/www/wwwroot/hanganxian/public/../application/index/view/public/right_float.html";i:1652589649;}*/ ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title><?php echo $default['title']; ?>-<?php echo $data['title']; ?></title> <?php if($data['keywords'] != ''): ?> <meta name="keywords" content="<?php echo $data['keywords']; ?>" /> <?php else: ?> <meta name="keywords" content="<?php echo $web['keywords']; ?>" /> <?php endif; if($data['keywords'] != ''): ?> <meta name="description" content="<?php echo $data['description']; ?>" /> <?php else: ?> <meta name="description" content="<?php echo $web['description']; ?>" /> <?php endif; ?> <link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/index.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/pagination.css" /> <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="__JS__/swiper.min.js"></script> </head> <body> <script type="text/javascript" src="__JS__/nav.js"></script> <div class="warp"> <div class="header clearfix"> <div class="fl"> <a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>"><img src="<?php echo $web['logo']; ?>" alt="" /></a> <div class="logo2"> <p class="p1">航岸线</p> <p class="p2">全球一站式进口供应链服务</p> </div> </div> <div class="fr"> <p class="p1" style="text-align: right"><a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>/en"><img src="__IMG__/English.jpg">English</a></p> <img src="__IMG__/tell.jpg" class="tell-img" /> <div class="tell-img-txt"> <p class="p1">全国咨询热线:</p> <p class="p2"><?php echo $web['tel']; ?></p> </div> </div> </div> </div> <div class="nav-bg"> <div class="nav"> <div class="warp head-nav"> <ul> <li class="drop-menu-effect"><a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>" <?php if($cid == ''): ?> class="current"<?php endif; ?>>首页</a></li> <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <li class="drop-menu-effect"> <a href="<?php echo url($vo['url'],['cid'=>$vo['id'],'name'=>$vo['fileName']]); ?>" title="<?php echo $vo['title']; ?>" <?php if($vo['id'] == $cid): ?> class="current"<?php endif; ?>><?php echo $vo['title']; ?> </a> <div class="submenu"> <?php if(is_array($vo['list2']) || $vo['list2'] instanceof \think\Collection || $vo['list2'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['list2'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?> <a href="<?php echo url($vo2['url'],['cid'=>$vo2['parentId'],'id'=>$vo2['id'],'name'=>$vo2['fileName']]); ?>"><?php echo $vo2['title']; ?></a> <?php endforeach; endif; else: echo "" ;endif; ?> </div> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> </div> </div> <div class="order-page-banner"></div> <div class="warp order-page clearfix"> <!--资讯左边菜单--> <div class="order-page-l fl"> <h3><?php echo $menu1['title']; ?></h3> <div class="order-page-l-nav"> <ul> <?php if(is_array($listMenu) || $listMenu instanceof \think\Collection || $listMenu instanceof \think\Paginator): $i = 0; $__LIST__ = $listMenu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url($vo['url'],['cid'=>$vo['parentId'],'id'=>$vo['id'],'name'=>$vo['fileName']]); ?>" <?php if($vo['id'] == $default['id']): ?> class="current" <?php endif; ?>><?php echo $vo['title']; ?></a> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> </div> <div class="order-page-r fr"> <div class="clearfix order-page-r-t"> <h3 class="fl"><?php echo $default['title']; ?></h3> <div class="fr"> <span>您的位置:</span> <a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>">首页</a> <span>--</span> <span><?php echo $default['title']; ?></span> </div> </div> <div class="about-us"> <div class="news-article-bd"> <h3 class="htit"><?php echo $data['title']; ?></h3> <div class="news-article-txt"> <?php echo htmlspecialchars_decode($data['content']); ?> </div> <div class="news-pages"> <ul> <li>上一篇:<a href="<?php echo url('News/detail',['cid'=>$default['parentId'],'id'=>$default['id'],'aid' => $prev['id']]); ?>"><?php echo $prev['title']; ?></a></li> <li>下一篇:<a href="<?php echo url('News/detail',['cid'=>$default['parentId'],'id'=>$default['id'],'aid' => $next['id']]); ?>"><?php echo $next['title']; ?></a></li> </ul> </div> </div> </div> </div> </div>  <!-- 页脚 --> <div class="footer"> <div class="warp clearfix"> <div class="footer-l"> <div class="footer-l-img"> <img src="__IMG__/logo1.png" alt="" /> <div class="footer-address"> <ul> <li> <img src="__IMG__/tellicon.png" alt="" /> <p style="font-size:20px;"><?php echo $web['tel']; ?></p> </li> <li> <img src="__IMG__/address.png" alt="" /> <p><?php echo $web['address']; ?></p> </li> </ul> </div> </div> </div> <div class="footer-r fr"> <div class="footer-r-box"> <img src="__IMG__/footer1.png" alt="" /> <ul> <?php if(is_array($list11) || $list11 instanceof \think\Collection || $list11 instanceof \think\Paginator): $i = 0; $__LIST__ = $list11;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url($vo2['url'],['cid'=>$vo2['parentId'],'id'=>$vo2['id'],'name'=>$vo2['fileName']]); ?>"><?php echo $vo2['title']; ?></a> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> <div class="footer-r-box"> <img src="__IMG__/footer2.png" alt="" /> <ul> <?php if(is_array($list22) || $list22 instanceof \think\Collection || $list22 instanceof \think\Paginator): $i = 0; $__LIST__ = $list22;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url($vo2['url'],['cid'=>$vo2['parentId'],'id'=>$vo2['id'],'name'=>$vo2['fileName']]); ?>"><?php echo $vo2['title']; ?></a> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> <div class="footer-r-box" style="border-right:1px solid #1b4b6e;"> <img src="__IMG__/footer3.png" alt="" /> <ul> <?php if(is_array($list33) || $list33 instanceof \think\Collection || $list33 instanceof \think\Paginator): $i = 0; $__LIST__ = $list33;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url($vo2['url'],['cid'=>$vo2['parentId'],'id'=>$vo2['id'],'name'=>$vo2['fileName']]); ?>"><?php echo $vo2['title']; ?></a> </li> <?php endforeach; endif; else: echo "" ;endif; ?> <li><a href="<?php echo url('help/index',['cid'=>8,'id'=>21]); ?>">常见问题</a></li> <li><a href="<?php echo url('index/sitemap'); ?>">网站地图</a></li> </ul> </div> </div> </div> <div class="footer-b"> Copyright©2019-2020 lamvque.com All Rights Reserved.备案/许可证编号:粤ICP备17127330号 工商营业执照 站长统计 </div> </div> <script type="text/javascript"> // 点下图出大图 $(function(){ $(".closeBigImg").click(function () { $(".bigPic").fadeOut(); return false; }); // 点击文档隐藏 }); function bigg(dom){ $(".bigPic").fadeIn(); var bigPicSrc = $(dom).children("img").attr("src"); // alert(bigPicSrc) $(".bigPic").children("img").attr("src",bigPicSrc); return false; }; </script> <!--右侧固定飘浮 s--> <!--右侧固定飘浮 s--> <div class="FloatRight"> <ul> <li> <div><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $web['qq']; ?>&amp;site=qq&amp;menu=ye"><i class="qq"></i><span class="txt">QQ咨询</span></a></div> </li> <li> <div class="hotline"><i class="tel"></i><span class="txt">联系电话:<?php echo $web['tel']; ?></span></div> </li> <li class="gotop"> <a href="<?php echo url('message/index',['cid'=>10,'id'=>23]); ?>">在线<br />留言</a> </li> <li class="gotop"> <!-- <i class="ewm"></i> --><a href="###">扫二<br />维码</a> <div class="ewmimg"><span class="img"><img src="__IMG__/weixin.png" width="118" height="118" /></span></div> </li> <li class="gotop"><a href="#tophead" class="cd-top">返回<br />顶部</a></li> </ul> </div> <!--右侧固定飘浮 end--> <!--右侧固定飘浮 end--> <!-- 右侧漂浮 --> <script> $(".FloatRight li").hover(function() { $(this).addClass("on"); },function(){ $(this).removeClass("on"); }); var offset = 100, offset_opacity = 1200, scroll_top_duration = 700, $back_to_top = $('.cd-top'); $(window).scroll(function () { ($(this).scrollTop() > offset) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible'); }); $back_to_top.on('click', function (event) { event.preventDefault(); $('body,html').animate({ scrollTop: 0, }, scroll_top_duration ); }); </script> </body> <script>(function() {var _53code = document.createElement("script");_53code.src = "https://tb.53kf.com/code/code/10146156/1";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(_53code, s);})();</script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?de7a421eb1bff8d28513afd399a4aff8"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </html>
dir /www/wwwroot/hanganxian/public/../runtime/temp

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_X_SINFO
on
HTTP_X5_UUID
a60e17a4804c60c9ec274f493c622b98
HTTP_X_FORWARDED_PROTO
https
HTTP_WL_PROXY_CLIENT_IP
3.80.173.25
HTTP_WEB_SERVER_TYPE
nginx
HTTP_X_CLIENT_IP
3.80.173.25
HTTP_X_TRUE_IP
3.80.173.25
HTTP_X_REAL_IP
3.80.173.25
HTTP_EAGLEEYE_RPCID
0.1
HTTP_ACCEPT
*/*
HTTP_EAGLEEYE_TRACEID
0bdd26ce17117079070065115eed33
HTTP_X_FORWARDED_FOR
3.80.173.25
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.hanganxian.com
PATH_INFO
/index/news/detail/cid/9/id/18/aid/519.html
REDIRECT_STATUS
200
SERVER_NAME
*.hanganxian.com
SERVER_PORT
443
SERVER_ADDR
172.18.52.49
REMOTE_PORT
42832
REMOTE_ADDR
3.80.173.25
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/hanganxian/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/news/detail/cid/9/id/18/aid/519.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/news/detail/cid/9/id/18/aid/519.html
SCRIPT_FILENAME
/www/wwwroot/hanganxian/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711707907.01
REQUEST_TIME
1711707907
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/hanganxian/public/../application/
RUNTIME_PATH
/www/wwwroot/hanganxian/public/../runtime/
APP_DEBUG
false
THINK_VERSION
5.0.10
THINK_START_TIME
1711707907.0104
THINK_START_MEM
367536
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hanganxian/thinkphp/
LIB_PATH
/www/wwwroot/hanganxian/thinkphp/library/
CORE_PATH
/www/wwwroot/hanganxian/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hanganxian/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/hanganxian/
EXTEND_PATH
/www/wwwroot/hanganxian/extend/
VENDOR_PATH
/www/wwwroot/hanganxian/vendor/
LOG_PATH
/www/wwwroot/hanganxian/public/../runtime/log/
CACHE_PATH
/www/wwwroot/hanganxian/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/hanganxian/public/../runtime/temp/
CONF_PATH
/www/wwwroot/hanganxian/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false