#0 [2]ErrorException in File.php line 38

file_put_contents(/home/svtking/cs/bfq/runtime/admin/temp/8e8c0a8dc48decdbe35586cfcf885660.php): Failed to open stream: Permission denied

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

Call Stack

  1. in File.php line 38
  2. at Error->appError()
  3. at file_put_contents() in File.php line 38
  4. at File->write() in Template.php line 423
  5. at Template->compiler() in Template.php line 242
  6. at Template->fetch() in Think.php line 131
  7. at Think->fetch() in View.php line 91
  8. at View->think\{closure}() in View.php line 123
  9. at View->getContent() in View.php line 90
  10. at View->fetch()
  11. at call_user_func_array() in Facade.php line 97
  12. at Facade::__callStatic() in Index.php line 66
  13. at Index->login()
  14. at ReflectionMethod->invokeArgs() in Container.php line 348
  15. at Container->invokeReflectMethod() in Dispatch.php line 178
  16. at Dispatch->think\route\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Dispatch.php line 152
  19. at Dispatch->responseWithMiddlewarePipeline() in Controller.php line 88
  20. at Controller->exec() in Dispatch.php line 56
  21. at Dispatch->run() in Route.php line 713
  22. at Route->think\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in Route.php line 712
  25. at Route->dispatch() in Http.php line 208
  26. at Http->dispatchToRoute() in Http.php line 198
  27. at Http->think\{closure}() in Pipeline.php line 59
  28. at Pipeline->think\{closure}() in MultiApp.php line 51
  29. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  30. at Pipeline->think\{closure}() in Auth.php line 15
  31. at Auth->handle()
  32. at call_user_func() in Middleware.php line 134
  33. at Middleware->think\{closure}() in Pipeline.php line 85
  34. at Pipeline->think\{closure}() in Pipeline.php line 66
  35. at Pipeline->then() in MultiApp.php line 50
  36. at MultiApp->handle()
  37. at call_user_func() in Middleware.php line 134
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in SessionInit.php line 58
  40. at SessionInit->handle()
  41. at call_user_func() in Middleware.php line 134
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in TraceDebug.php line 71
  44. at TraceDebug->handle()
  45. at call_user_func() in Middleware.php line 134
  46. at Middleware->think\{closure}() in Pipeline.php line 85
  47. at Pipeline->think\{closure}() in Pipeline.php line 66
  48. at Pipeline->then() in Http.php line 197
  49. at Http->runWithRequest() in Http.php line 162
  50. at Http->run() in admin.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER https://www.btolat.com/
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64)
PATH_INFO /index/login.html
HTTP_HOST demo.applecms.cc
REDIRECT_STATUS 200
SERVER_NAME demo.applecms.cc
SERVER_PORT 443
SERVER_ADDR 23.225.159.230
REMOTE_PORT 40672
REMOTE_ADDR 162.0.217.198
SERVER_SOFTWARE nginx/1.26.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /home/svtking/cs/bfq/public
DOCUMENT_URI /admin.php/index/login.html
REQUEST_URI /admin.php/index/login.html
SCRIPT_NAME /admin.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /home/svtking/cs/bfq/public/admin.php
FCGI_ROLE RESPONDER
PHP_SELF /admin.php/index/login.html
REQUEST_TIME_FLOAT 1773579811.952
REQUEST_TIME 1773579811
0.035819s