php file line,这个是什么错误,ErrorException in File.php line 37

[2] ErrorException in File.php line 37

file_put_contents(/var/www/html/runtime/temp/e4713b64659a8e8b95aaa4d80b79f35c.php): failed to open stream: Permission denied

{

// 检测模板目录

$dir = dirname($cacheFile);

if (!is_dir($dir)) {

mkdir($dir, 0755, true);

}

// 生成模板缓存文件

if (false === file_put_contents($cacheFile, $content)) {

throw new Exception('cache write error:' . $cacheFile, 11602);

}

}

/**

* 读取编译编译

* @access public

* @param  string  $cacheFile 缓存的文件名

* @param  array   $vars 变量数组

Call Stack

in File.php line 37

at Error::appError(2, 'file_put_contents(/v...', '/var/www/html/thinkp...', 37, ['cacheFile' => '/var/www/html/runtim...', 'content' => '<?php /*a:5:{s:55:"/...', 'dir' => '/var/www/html/runtim...'])

at file_put_contents('/var/www/html/runtim...', '<?php /*a:5:{s:55:"/...') in File.php line 37

at File->write('/var/www/html/runtim...', '<?php /*a:5:{s:55:"/...') in Template.php line 399

at Template->compiler('<?php /*a:5:{s:55:"/...', '/var/www/html/runtim...') in Template.php line 218

at Template->fetch('/var/www/html/applic...', ['action' => 'index'], []) in Think.php line 93

at Think->fetch('/var/www/html/applic...', ['action' => 'index'], []) in View.php line 189

at View->fetch('', ['action' => 'index'], []) in Controller.php line 161

at Controller->fetch() in Index.php line 84

at Index->Index()

at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395

at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 132

at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)

at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185

at Middleware->think\{closure}(object(Request))

at call_user_func(object(Closure), object(Request)) in Middleware.php line 130

at Middleware->dispatch(object(Request), 'controller') in Module.php line 137

at Module->exec() in Dispatch.php line 168

at Dispatch->run() in App.php line 432

at App->think\{closure}(object(Request), object(Closure), null)

at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185

at Middleware->think\{closure}(object(Request)) in SystemEnvCheck.php line 42

at SystemEnvCheck->handle(object(Request), object(Closure), null)

at call_user_func_array([object(SystemEnvCheck), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185

at Middleware->think\{closure}(object(Request))

at call_user_func(object(Closure), object(Request)) in Middleware.php line 130

at Middleware->dispatch(object(Request)) in App.php line 435

at App->run() in index.php line 24

at require('/var/www/html/public...') in index.php line 16

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值