[2] ErrorException in File.php line 32

file_put_contents(): Only 0 of 20047 bytes written, possibly out of free disk space

  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

Exception Datas

Error Context
cacheFile
/home/kanghui456mkpacndgwhvueid4c516/wwwroot/caches/temp/7ec2ba57e5a4d8ea33d3e8dc2992318e.php
content
<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:42:"./template/default/index/list_product.html";i:1543889142;s:86:"/home/kanghui456mkpacndgwhvueid4c516/wwwroot/template/default/index/public_header.html";i:1561517635;s:86:"/home/kanghui456mkpacndgwhvueid4c516/wwwroot/template/default/index/public_footer.html";i:1566542093;}*/ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $category['title']; ?>-<?php echo "诸城市康汇机械有限公司"; ?></title> <meta name="keywords" content="<?php echo "洗筐机托盘ope电竞官网,鸡胸肉切片机,猪蹄烧毛机"; ?>"> <meta name="description" content="<?php echo "诸城市康汇机械有限公司是专业从事千页豆腐斩拌机,根茎ope电竞官网,风干式洗筐机,大姜ope电竞官网,冻肉解冻机,盐水注射机,拌馅机,真空拌馅机,蔬菜清洗设备,真空滚揉机,灌肠机等肉类加工机械开发、设计、制造及销售的现代化企业。"; ?>"> <script type="text/javascript">SKIN_PATH="/Skins/default/";</script> <script type="text/javascript" src="/skin/js/jquery.js"></script> <script type="text/javascript" src="/skin/js/common.js"></script> <script type="text/javascript" src="/skin/js/inc.js"></script> <script type="text/javascript" src="/skin/js/ajax.js"></script> <script type="text/javascript" src="/skin/js/getsubsiteinfo.js"></script> <link href="/skin/css/reset.css" rel="stylesheet" type="text/css" /> <link href="/skin/css/style.css" rel="stylesheet" type="text/css" /> <link href="/skin/css/common.css" rel="stylesheet" type="text/css" /> <link href="/skin/css/temp.css" rel="stylesheet" type="text/css" /> </head> <body> <!--Header:Start--> <div class="header"> <div class="header_top"> <div class="container"> <div class="top_nav"> <a href="&rvpu;/mjboyjxpnfo/&rvpu;" class="first">联系我们</a> <a href="http://<?php rel="nofollow" echo "www.kanghuijixie.com"; ?>/sitemap.xml" target="_blank">网站地图</a> <a href="javascript:addBookmark()" class="last">收藏本站</a> </div> </div> </div> <div class="header_center container"> <dl class="logo"> <dt> <a href="&rvpu;/&rvpu;&hu;μjnh" src="<?php echo "/uploads/image/20181130/999632c842a4b154ee484de5c61219f5.jpg"; ?>" alt="<?php echo "诸城市康汇机械有限公司"; ?>" width="121" height="73" /></a> </dt> <dd> <h2>康汇 &#12539; 食品机械生产供应商</h2> <p>集研发、设计、生产和销售于一体的源头厂家</p> </dd> </dl> <div class="header_phone"> <a href="https://zckanghui.1688.com/"><img rel="nofollow" src="/skin/picture/header_01.png" /> </a> <h3><p>全国咨询热线</p><?php $_block = db('block')->where("title='".'shouji'."'")->find(); $_block = update_str_dq($_block, config('sys.sys_area')); $_block_content = ''; if ($_block) { if ($_block['type'] == 2) { if (!0) { $_block_content = '<img src="'. $_block['content'] .'" />'; }else { $_block_content = $_block['content']; } }else { if(0) { $_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取 }else { $_block_content = $_block['content']; } } $_blockurl = ''; if ($_block['url']) { $_blockurl = $_block['url']; if (substr($_blockurl, 0,1) == '@') { $_catemodel = new app\index\model\CategoryModel(); $_category = $_catemodel->getOneCategory(substr($_blockurl, 1)); if ($_category) { $_blockurl = $_catemodel->getCategoryUrl($_category); } } $_block_content= "<a href="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?></h3> </div> </div> <div class="header_nav "> <ul class="container"> <li> <a href="&rvpu;/&rvpu;" class="first">首页</a></li> <?php $_limit = "10"; $_typeid = intval('1'); $_category = new app\index\model\CategoryModel(); $_navlist = $_category->getCategory('', $_typeid, false); $_navlist = $_category->unlimitedForLayer($_navlist); foreach($_navlist as $autoindex => $nav): $_limit_list = explode(',', $_limit); if(count($_limit_list) > 1){ if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue; } else{ if($autoindex >= $_limit) break; } $navmainurl = $nav['catmainurl'] ? false : true; $nav['url'] = $_category->getCategoryUrl($nav, [] , $navmainurl); $nav = update_str_dq($nav, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $nav['url']; ?>"><?php echo $nav['title']; ?></a></li> <?php endforeach;?> </ul> </div> </div> <script type="text/javascript"> if (MARK == "") var MARK = "index"; initCommonHeaderKeywords(MARK); $(function () { var cururl = location.href; var i = 0; var count = $(".header_nav li").length; $(".header_nav li").each(function (index) { var url = $(this).find("a").attr("href"); if (url.length > 5 && cururl.substring(cururl.length - url.length).toUpperCase() == url.toUpperCase()) { $(this).addClass("cur"); return; } i++; }); if (i == count) { $(".header_nav li:eq(0)").addClass("cur"); } }); </script> <!--Header:End--> <!--Content:Start--> <div class="topadcs" style="background: url('/skin/images/20150923090047_46918.jpg') no-repeat scroll center; height: 300px"> </div> </br></br> <div class="content"> <div class="product_l"> <h3> <a href=""/chanpinzhanshi/">产品展示</a></h3>" <div class="product_menu"> <?php $_limit = "20"; $_cid = intval($category['id']); $_type = "parent"; $_category = new app\index\model\CategoryModel(); if($_cid == -1) $_cid = input('cid'); $_catlist = $_category->getCategory(1); if (1 == 0) { $_catlist = $_category->clearLink($_catlist);//去除外部链接的栏目 } //type为parent if ($_type == 'parent') { $_parent = $_category->getParents($_catlist, $_cid); $_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_parent[0]['id']); }else{ //type为top,忽略cid if($_cid == 0 || $_type == 'top') { $_catlist = $_category->unlimitedForLayer($_catlist); }else { if ($_type == 'self') { //同级分类 $_typeinfo = $_category->getSelf($_catlist, $_cid ); $_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_typeinfo['pid']); }else { //son,子类列表 $_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cid); } } } $_limit_list = explode(',', $_limit); foreach($_catlist as $autoindex => $catlist): if(count($_limit_list) > 1){ if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue; } else{ if($autoindex >= $_limit_list[0]) break; } $catlist = update_str_dq($catlist, config('sys.sys_area')); ?> <dl> <dt> <a href="&rvpu;μ?qiq" echo $catlist['url']; ?>"><?php echo $catlist['title']; ?></a> </dt> <dd> <?php if(is_array($catlist['child']) || $catlist['child'] instanceof \think\Collection || $catlist['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $catlist['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?> <a href="&rvpu;μ?qiq" echo $v['url']; ?>"><?php echo $v['title']; ?></a> <?php endforeach; endif; else: echo "" ;endif; ?> </dd> </dl> <span></span> <?php endforeach;?> </div> </div> <script type="text/javascript"> productSelectCurrentPosition(""); </script> <div class="product_r"> <div class="lTle"> <a href="&rvpu;μ?qiq" echo $category['url']; ?>" class="lt"><?php echo $category['title']; ?></a> <span><em>您的位置:</em><?php $_sname = ""; $_cid = $cid; echo getPosition($_cid, $_sname, "", "&gt;&gt;"); ?> > </span> </div> <ul> <?php $_cid = $cid; $_limit = "10"; $_keyword = -1; $_flag = ''; $_areaid = '';//指定地区ID $_top = ''; $_image = '-1'; $_pagesize = 9; $_pagecss = 1; $_tag = -1; $_sql = "-1"; if($_cid == -1) $_cid = input('cid'); if ($_cid > 0 || substr($_cid, 0, 1) == '$') { $_category = new app\index\model\CategoryModel(); if (strpos($_cid, ',')) { $_cidarr = explode(',', $_cid); $_ids = []; foreach ($_cidarr as $_k => $_v) { $_ids = array_merge($_ids, $_category->getChildsId($_category->getCategory(), $_v, true)); } }else{ $_ids = $_category->getChildsId($_category->getCategory(), $_cid, true); } $_where = array('create_time' => array('LT', time()), 'cid'=> array('IN', $_ids)); }else { $_where = array('create_time' => array('LT', time())); } if ($_keyword != -1) { $_where['title'] = array('LIKE','%'.$_keyword.'%'); } if ($_flag) { $_where['istop'] = $_flag; } if ($_top) { $_where['top'] = $_top; } if ($_image != -1) { $_where['pic'] = $_image ? ['NEQ', ''] : ['EQ', '']; } if ($_tag != -1) { $_jgf = ','; $_jgf = strpos($_tag, ',') ? ',' : $_jgf; $_taglist = explode($_jgf,$_tag); if (count($_taglist) > 1) { $_tagarr = array(); foreach ($_taglist as $_k => $_v) { $_tagarr[] = ['LIKE','%'.$_v.'%']; } $_tagarr[] = 'or'; $_where['tag'] = $_tagarr; }else{ $_where['tag'] = ['LIKE','%'.$_tag.'%']; } } $_where['create_time'] = ['LT', time()]; //地区独立内容 if ($_areaid) { $_arealist = explode(',', $_areaid); $_areawhere = []; foreach ($_arealist as $key => $value) { if ($value) { $_areawhere[] = ['LIKE','%,'.$value.',%']; } } if (count($_areawhere) > 1) { $_areawhere[] = 'or'; $_where['area'] = $_areawhere; }else{ $_where['area'] = $_areawhere[0]; } }else{ $_area = session('sys_areainfo'); if ($_area) { $_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,'.$_area['id'].',%'], 'or']; }else{ $_where['area'] = [['exp',' is NULL'],['eq',''],['eq',',,'],['LIKE','%,88888888,%'], 'or']; } } $_wheresql = ''; $_pageurlarr = []; if ($_sql != -1) { //拼接SQL语句 $_db = db('diyfield'); $_sqlstrlist = explode(" ", $_sql); $_sqlstr = ' '; if ($_sqlstrlist) { foreach ($_sqlstrlist as $key1 => $value1) { if (is_numeric($value1)) { $_fieldname = $_db->where(['id'=>$value1])->value('field'); if ($_GET[$_fieldname] != '不限' && $_GET[$_fieldname] != '') { $_filelist = explode(',', $_GET[$_fieldname]); $_instr = ""; foreach ($_filelist as $key2 => $value2) { if ($value2) { $_instr = $_instr ? $_instr." OR ($_fieldname LIKE '%".$value2."%')" : "($_fieldname LIKE '%".$value2."%')"; } } $_sqlstr = $_sqlstr."($_instr) "; }else{ $_sqlstr = $_sqlstr."( 1 = 1 ) "; } $_pageurlarr[$_fieldname] = $_GET[$_fieldname]; }else{ if ($value1 == 'or') { $_sqlstr = $_sqlstr."or "; } if ($value1 == 'and' ) { $_sqlstr = $_sqlstr."and "; } } } } $_wheresql = $_sqlstr; } //获取模型别名 $_tabname = ""; if ($_cid != -1 && !empty($_cid)) { $_mid = db('category')->where(['id'=>$_cid])->value('mid'); $_tabname = db('diymodel')->where(['id'=>$_mid])->value('tabname'); } $page = "";//分页 if ($_pagesize > 0) { $_pagearr = []; switch (config('sys.url_model')) { case '1'://动态 $_pagearr = ['query' => request()->param()]; break; case '3'://伪静态 $_pagearr = ['path' => '']; break; } $_pagearr['var_link_rows'] = 7; //存在cid情况 if ($_tabname) { $_infolist = db('content') ->alias('con') ->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid') ->where($_where) ->where($_wheresql) ->order("sort asc") ->paginate($_pagesize, false, $_pagearr); }else{ $_infolist = db('content') ->where($_where) ->order("sort asc") ->paginate($_pagesize, false, $_pagearr); } $page = $_infolist->render(); if (config('sys.url_model') == 3 && $_area) { if ($_area['isurl'] == 0) { $_ctitle = input('ctitle', '', 'trim'); $page = str_replace($_ctitle."/", $_area['etitle'].'_'.$_ctitle."/", $page); } } if (!$_pagecss) { $page = preg_replace('#<style([\s\S]*)</style>#', "", $page); } }else { //存在cid情况 if ($_tabname) { $_infolist = db('content') ->alias('con') ->join(config('database.prefix').'diy_'.$_tabname.' diy','con.vid = diy.conid') ->where($_where) ->where($_wheresql) ->order("sort asc") ->limit($_limit) ->select(); }else{ $_infolist = db('content') ->where($_where) ->order("sort asc") ->limit($_limit) ->select(); } } //组合筛选修改分页URL if ($_pageurlarr) { $_ljstr = config('sys.url_model') == '1' ? "&" : "?"; $page = preg_replace('/href="[\"'|\"](\S+)[\'|\"]/i', 'href="$1"'.$_ljstr.build_query($_pageurlarr), $page); } $_content = new app\index\model\ContentModel(); foreach ($_infolist as $k => $list): $list = $_content->getContentByCon($list); $list['alltitle'] = $list['title']; if(0) $list['title'] = str2sub($list['title'], 0, 0); $list = $_content->getContentArea($list); $list = update_str_dq($list, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <img src="<?php echo $list['pic']; ?>" alt="<?php echo $list['title']; ?>" width="218" height="180" /></a> <p> <a href="&rvpu;μ?qiq" echo $list['url']; ?>" title="<?php echo $list['title']; ?>"> <?php echo $list['title']; ?> </a> </p> <div> <a href="http://wpa.qq.com/msgrd?v=3&site=<?php rel="nofollow" echo "诸城市康汇机械有限公司"; ?>&menu=yes&uin=<?php $_block = db('block')->where("title='".'qq'."'")->find(); $_block = update_str_dq($_block, config('sys.sys_area')); $_block_content = ''; if ($_block) { if ($_block['type'] == 2) { if (!0) { $_block_content = '<img src="'. $_block['content'] .'" />'; }else { $_block_content = $_block['content']; } }else { if(0) { $_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取 }else { $_block_content = $_block['content']; } } $_blockurl = ''; if ($_block['url']) { $_blockurl = $_block['url']; if (substr($_blockurl, 0,1) == '@') { $_catemodel = new app\index\model\CategoryModel(); $_category = $_catemodel->getOneCategory(substr($_blockurl, 1)); if ($_category) { $_blockurl = $_catemodel->getCategoryUrl($_category); } } $_block_content= "<a href="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?>" target="_blank" class="pfzx fwbtn">批发咨询</a> <a href="&rvpu;/mjboyjxpnfo/&rvpu;" class="dz fwbtn">OEM定制</a> </div> </li> <?php endforeach;?> </ul> <div class="clear"> </div> <div style="width:708px;margin-left:22px;"> <?php echo $page; ?> <!--OranPager:end--> </div> </div> <div class="clear"> </div> </div> <!--Content:End--> <!--Footer:Start--> <div class="footer_bg"> <div class="footer"> <div class="footer_nav"> <ul> <li class="first"><a href="&rvpu;/&rvpu;">首页</a></li> <?php $_limit = "10"; $_typeid = intval('1'); $_category = new app\index\model\CategoryModel(); $_navlist = $_category->getCategory('', $_typeid, false); $_navlist = $_category->unlimitedForLayer($_navlist); foreach($_navlist as $autoindex => $nav): $_limit_list = explode(',', $_limit); if(count($_limit_list) > 1){ if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue; } else{ if($autoindex >= $_limit) break; } $navmainurl = $nav['catmainurl'] ? false : true; $nav['url'] = $_category->getCategoryUrl($nav, [] , $navmainurl); $nav = update_str_dq($nav, config('sys.sys_area')); ?> <li><a href="&rvpu;μ?qiq" echo $nav['url']; ?>"><?php echo $nav['title']; ?></a></li> <?php endforeach;?> </ul> </div> <div class="footer_btm"> <?php echo "<p> Copyright © 2017 洗筐机|托盘ope电竞官网|鸡胸肉切片机|猪蹄烧毛机|诸城市康汇机械有限公司, All Rights Reserved</p>"; ?> <p> 地址:<?php $_block = db('block')->where("title='".'dizhi'."'")->find(); $_block = update_str_dq($_block, config('sys.sys_area')); $_block_content = ''; if ($_block) { if ($_block['type'] == 2) { if (!0) { $_block_content = '<img src="'. $_block['content'] .'" />'; }else { $_block_content = $_block['content']; } }else { if(0) { $_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取 }else { $_block_content = $_block['content']; } } $_blockurl = ''; if ($_block['url']) { $_blockurl = $_block['url']; if (substr($_blockurl, 0,1) == '@') { $_catemodel = new app\index\model\CategoryModel(); $_category = $_catemodel->getOneCategory(substr($_blockurl, 1)); if ($_category) { $_blockurl = $_catemodel->getCategoryUrl($_category); } } $_block_content= "<a href="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?> </p> <a href="http://www.miibeian.gov.cn/" rel="nofollow" target="_blank">备案号:鲁ICP备15060665号</a>&nbsp;&nbsp; <a href="&rvpu;/lbohivj.kqh&rvpu;" target="_blank"><img src="/skin/images/guohui.png" />国家企业信用信息公示系统</a> <h5> 全国免费咨询热线</h5> <h4> <?php $_block = db('block')->where("title='".'shouji'."'")->find(); $_block = update_str_dq($_block, config('sys.sys_area')); $_block_content = ''; if ($_block) { if ($_block['type'] == 2) { if (!0) { $_block_content = '<img src="'. $_block['content'] .'" />'; }else { $_block_content = $_block['content']; } }else { if(0) { $_block_content = str2sub(strip_tags($_block['content']), 0, 0);//清除html再截取 }else { $_block_content = $_block['content']; } } $_blockurl = ''; if ($_block['url']) { $_blockurl = $_block['url']; if (substr($_blockurl, 0,1) == '@') { $_catemodel = new app\index\model\CategoryModel(); $_category = $_catemodel->getOneCategory(substr($_blockurl, 1)); if ($_category) { $_blockurl = $_catemodel->getCategoryUrl($_category); } } $_block_content= "<a href="&rvpu;.$_cmpdlvsm.&rvpu;" target='_blank'>".$_block_content."</a>"; } } echo $_block_content; ?></h4> </div> </div> </div> <script type="text/javascript" src="/skin/js/rollup.min.js"></script> <!--Footer:End--> </body> </html>
dir
/home/kanghui456mkpacndgwhvueid4c516/wwwroot/caches/temp