[2] ErrorException in Index.php line 38

unlink(./index.html): Operation not permitted

  1. $htmlfilestr = "./caches/area/".session('sys_areainfo')['etitle'].".html";
  2. $dir = "./caches/area/";
  3. if(!is_dir($dir)){
  4. mkdir($dir, 0777, true);
  5. }
  6. $filename = session('sys_areainfo')['etitle'];
  7. }
  8. if (file_exists($htmlfilestr)) {
  9. if ((date('d',filemtime($htmlfilestr)) != date('d', time())) && (config('sys.indexhtml_time') < date('H:i:s',time()))) {
  10. unlink($htmlfilestr);
  11. }else{
  12. return $this->fetch($htmlfilestr); exit();
  13. }
  14. }
  15. $tpl_file = './template/'.config('sys.theme_style').'/index/';
  16. $info = $this->buildHtml($filename, $dir, $tpl_file.'index_index.html');
  17. }
  18. return $this->fetch();
  19. }

Exception Datas

Error Context
BannerModelObject []
where { "is_status": 1 }
list { "A": [], "B": [], "C": [], "D": [], "E": [], "F": [], "G": [], "H": [], "I": [], "J": [], "K": [], "L": [], "M": [], "N": [], "O": [], "P": [], "Q": [], "R": [], "S": [], "T": [], "U": [], "V": [], "W": [], "X": [], "Y": [], "Z": [] }
htmlfilestr ./index.html
dir ./
filename index