[2] ErrorException in File.php line 32

file_put_contents(/www/wwwroot/www.zwlj-hax.com_80/public/../runtime/temp/b02f10fd5075c764a9e2fb12b72e5a5d.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/www.zwl...', 32, ['cacheFile' => '/www/wwwroot/www.zwl...', 'content' => '<?php if (!defined('...', 'dir' => '/www/wwwroot/www.zwl...'])
  3. at file_put_contents('/www/wwwroot/www.zwl...', '<?php if (!defined('...') in File.php line 32
  4. at File->write('/www/wwwroot/www.zwl...', '<?php if (!defined('...') in Template.php line 356
  5. at Template->compiler('<?php if (!defined('...', '/www/wwwroot/www.zwl...') in Template.php line 190
  6. at Template->fetch('/www/wwwroot/www.zwl...', ['cid' => '9', 'id' => '19', 'aid' => null, ...], []) in Think.php line 84
  7. at Think->fetch('/www/wwwroot/www.zwl...', ['cid' => '9', 'id' => '19', 'aid' => null, ...], []) in View.php line 159
  8. at View->fetch('', ['cid' => '9', 'id' => '19', 'aid' => null, ...], [], []) in Controller.php line 111
  9. at Controller->fetch() in News.php line 28
  10. at News->index()
  11. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 196
  12. at App::invokeMethod([object(News), 'index'], []) in App.php line 416
  13. at App::module(['index', 'news', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 295
  14. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'index']], ['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/www.zwl...') in index.php line 24

Exception Datas

Error Context
cacheFile /www/wwwroot/www.zwlj-hax.com_80/public/../runtime/temp/b02f10fd5075c764a9e2fb12b72e5a5d.php
content <?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:81:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/news/index.html";i:1652589573;s:84:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/public/header.html";i:1652589573;s:82:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/public/menu.html";i:1652589573;s:81:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/public/top.html";i:1652589573;s:86:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/public/leftmenu.html";i:1652589573;s:84:"/www/wwwroot/www.zwlj-hax.com_80/public/../application/index/view/public/footer.html";i:1652589573;}*/ ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="renderer" content="webkit"> <?php if($id != ''): ?> <title><?php echo $default['title2']; ?></title> <meta name="keywords" content="<?php echo $default['keywords']; ?>" /> <meta name="description" content="<?php echo $default['description']; ?>" /> <?php elseif($cid != ''): ?> <title><?php echo $menu1['title2']; ?></title> <meta name="keywords" content="<?php echo $menu1['keywords']; ?>" /> <meta name="description" content="<?php echo $menu1['description']; ?>" /> <?php else: ?> <title><?php echo $menu1['title']; ?>-<?php echo $web['title']; ?></title> <meta name="keywords" content="<?php echo $web['keywords']; ?>" /> <meta name="description" content="<?php echo $web['description']; ?>" /> <?php endif; ?> <link rel="stylesheet" href="__CSS__/common.css"> <link rel="stylesheet" href="__CSS__/style.css"> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?33be2ff146e5ecf5fb0cef417f5ec0a1"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> (function(b,a,e,h,f,c,g,s){b[h]=b[h]||function(){(b[h].c=b[h].c||[]).push(arguments)}; b[h].s=!!c;g=a.getElementsByTagName(e)[0];s=a.createElement(e); s.src="//s.union.360.cn/"+f+".js";s.defer=!0;s.async=!0;g.parentNode.insertBefore(s,g) })(window,document,"script","_qha",338710,false); </script> </head> <body leftmargin=0 topmargin=0 oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'> <div class="header"> <div class="head-top"> <div class="haxbody clearfix"> <div class="fl ltxt">中外联检- <?php $now = date('Y',time()); //$company = 2003; //$year =$now-$company-2; //echo $year; ?> 年专注进口供应链+5天高效通关</div> <div class="fr rtel">咨询热线:<?php echo $web['tel']; ?></div> </div> </div> <div class="head-box clearfix"> <div class="logo" ><a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>"><img src="<?php echo $web['logo']; ?>" alt="" ></a></div> <div class="head-nav"> <ul> <li class="drop-menu-effect"><a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>"" class="tit">首页</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']]); ?>" class="tit"><?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="newsbanner"></div> <div class="haxcontent clearfix"> <div style="margin-top: -34px;padding-bottom: 10px;text-align: left;font-size: 16px;"> <a href="http://<?php echo $_SERVER['HTTP_HOST'] ?>">首页:</a> <a style="padding-left: 10px;" href="<?php echo url('news/index',['cid'=>$menu1['id']]); ?>"><?php echo $menu1['title']; ?></a> &gt;<a style="padding-left: 10px;" href="<?php echo url('news/index',['cid'=>$menu1['id'],'id'=>$default['id']]); ?>"><?php echo $default['title']; ?></a> </div> <!--资讯左边菜单--> <div class="leftbox"> <h3 class="htit"><?php echo $menu1['title']; ?></h3> <ul class="lnavmenu"> <?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 class="rightbox"> <h3 class="htitel01"><?php echo $default['englishTitle']; ?></h3> <div class="demo_line_02"> <span><?php echo $default['title']; ?></span> </div> <div class="haxnewslist"> <ul> <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?> <li> <a href="<?php echo url('news/detail',['cid'=>$default['parentId'],'id'=>$default['id'],'aid' => $v['id']]); ?>" class="pic"> <img src="<?php echo $v['thumbnail']; ?>" width="270" height="185"> </a> <div class="newstxt"> <h3><a href="<?php echo url('news/detail',['cid'=>$default['parentId'],'id'=>$default['id'],'aid' => $v['id']]); ?>"><?php echo $v['title']; ?></a></h3> <p><?php echo $v['description']; ?></p> <h4 style="margin-top:10px;font-weight:700;"><?php echo $v['add_time']; ?></h4> </div> </li> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> </div> <div class="haxpages"> <?php echo $list->render(); ?> </div> </div> </div> <!-- footer --> <div class="footer"> <div class="haxbody clearfix"> <?php if(is_array($menufl) || $menufl instanceof \think\Collection || $menufl instanceof \think\Paginator): $i = 0; $__LIST__ = $menufl;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <ul class="navlist"> <?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;?> <li> <a href="<?php echo url($vo2['url'],['cid'=>$vo2['parentId'],'id'=>$vo2['id'],'name'=>$vo2['fileName']]); ?>"><?php echo $vo2['title']; ?></a></li> <!--<li> <a href="__ROOT__/index/<?php echo $vo2['url']; ?>?cid=<?php echo $vo2['parentId']; ?>&id=<?php echo $vo2['id']; ?>&name=<?php echo $vo2['fileName']; ?>"><?php echo $vo2['title']; ?></a></li>--> <?php endforeach; endif; else: echo "" ;endif; ?> </ul> <?php endforeach; endif; else: echo "" ;endif; ?> <div class="rnavbox"> <div class="toplist"> <?php if(is_array($menufr) || $menufr instanceof \think\Collection || $menufr instanceof \think\Paginator): $i = 0; $__LIST__ = $menufr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <ul class="list"> <?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;?> <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> <?php endforeach; endif; else: echo "" ;endif; ?> <li> <a href="/index/index/sitemap.html">网站地图</a> </li> </div> <div class="hottel" style="font-size: 36px;"> 咨询热线:<?php echo $web['tel']; ?> </div> </div> </div> <div style="text-align: center"> <a style="color: white;font-size: 16px;" href="http://www.beian.miit.gov.cn/state/outPortal/loginPortal.action;jsessionid=65mxgM8V2QZgNkM1eIeD88kxSwRPBqgPA9W9rpYYkSabmGWm9aMe!20875049">中外联检供应链(广州)有限公司——备案/许可证编号:粤ICP备17127330号</a> </div> </div> <div class="rigside"> <div class="dltop"> <div class="navlist"> <ul> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">食品进口</a></li> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">大健康食品进口</a></li> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">化妆品进口</a></li> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">乳制品进口</a></li> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">宠物食品进口</a></li> <li><a target="_blank" href="https://tb.53kf.com/code/client/10146156/2">美容仪器进口</a></li> </ul> </div> <div class="weibox"> <dl> <dt>扫一扫,微信咨询</dt> <dd><img src="__IMG__/ewm.png" alt=""></dd> </dl> </div> <div class="telbox"> <p>咨询热线:</p> <h3><?php echo $web['tel']; ?></h3> </div> </div> </div> <!-- 返回顶部 --> <!-- <div class="back-top"> <a title="返回顶部">返回顶部</a> </div> --> <!-- --> <script src="__JS__/jquery-1.8.3.min.js"></script> <script src="__JS__/nav.js"></script> <script> $(function(){ var MobileUA = (function() { var ua = navigator.userAgent.toLowerCase(); var mua = { IOS: /ipod|iphone|ipad/.test(ua), //iOS IPHONE: /iphone/.test(ua), //iPhone IPAD: /ipad/.test(ua), //iPad ANDROID: /android/.test(ua), //Android Device WINDOWS: /windows/.test(ua), //Windows Device TOUCH_DEVICE: ('ontouchstart' in window) || /touch/.test(ua), //Touch Device MOBILE: /mobile/.test(ua), //Mobile Device (iPad) ANDROID_TABLET: false, //Android Tablet WINDOWS_TABLET: false, //Windows Tablet TABLET: false, //Tablet (iPad, Android, Windows) SMART_PHONE: false //Smart Phone (iPhone, Android) }; mua.ANDROID_TABLET = mua.ANDROID && !mua.MOBILE; mua.WINDOWS_TABLET = mua.WINDOWS && /tablet/.test(ua); mua.TABLET = mua.IPAD || mua.ANDROID_TABLET || mua.WINDOWS_TABLET; mua.SMART_PHONE = mua.MOBILE && !mua.TABLET; return mua; }()); //SmartPhone if (MobileUA.SMART_PHONE) { // 移动端链接地址 document.location.href = "<?php echo url('Mobile/index/index'); ?>"; } }); </script> </body> <script>(function() {var _53code = document.createElement("script");_53code.src = "https://tb.53kf.com/code/code/10146156/2";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(_53code, s);})();</script> </html> <!-- footer end-->
dir /www/wwwroot/www.zwlj-hax.com_80/public/../runtime/temp

Environment Variables

GET Data

page
66
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.zwlj-hax.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/index/news/index/cid/9/id/19.html
REDIRECT_STATUS
200
SERVER_NAME
*.zwlj-hax.com
SERVER_PORT
80
SERVER_ADDR
172.18.52.49
REMOTE_PORT
33122
REMOTE_ADDR
44.200.26.112
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.zwlj-hax.com_80/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/news/index/cid/9/id/19.html?page=66
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/news/index/cid/9/id/19.html&page=66
SCRIPT_FILENAME
/www/wwwroot/www.zwlj-hax.com_80/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711707784.6157
REQUEST_TIME
1711707784
Environment Variables
empty

ThinkPHP Constants

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