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

file_put_contents(/www/wwwroot/www.wangzhan360.com/runtime/index/temp/00d527105efa9794bcd817603afddd45.php): Failed to open stream: No such file or directory

  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 37
  2. at Error->appError()
  3. at file_put_contents() in File.php line 37
  4. at File->write() in Template.php line 429
  5. at Template->compiler() in Template.php line 243
  6. at Template->fetch() in Think.php line 149
  7. at Think->fetch() in View.php line 90
  8. at View->think\{closure}() in View.php line 126
  9. at View->getContent() in View.php line 91
  10. at View->fetch() in Index.php line 225
  11. at Index->show()
  12. at ReflectionMethod->invokeArgs() in Container.php line 344
  13. at Container->invokeReflectMethod() in Controller.php line 110
  14. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  15. at Pipeline->think\{closure}() in Pipeline.php line 66
  16. at Pipeline->then() in Controller.php line 113
  17. at Controller->exec() in Dispatch.php line 90
  18. at Dispatch->run() in Route.php line 785
  19. at Route->think\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in Pipeline.php line 66
  21. at Pipeline->then() in Route.php line 786
  22. at Route->dispatch() in Http.php line 216
  23. at Http->dispatchToRoute() in Http.php line 206
  24. at Http->think\{closure}() in Pipeline.php line 59
  25. at Pipeline->think\{closure}() in MultiApp.php line 71
  26. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  27. at Pipeline->think\{closure}() in HtmlCache.php line 26
  28. at HtmlCache->handle()
  29. at call_user_func() in Middleware.php line 142
  30. at Middleware->think\{closure}() in Pipeline.php line 85
  31. at Pipeline->think\{closure}() in LoadLangPack.php line 98
  32. at LoadLangPack->handle()
  33. at call_user_func() in Middleware.php line 142
  34. at Middleware->think\{closure}() in Pipeline.php line 85
  35. at Pipeline->think\{closure}() in Pipeline.php line 66
  36. at Pipeline->then() in MultiApp.php line 72
  37. at MultiApp->handle()
  38. at call_user_func() in Middleware.php line 142
  39. at Middleware->think\{closure}() in Pipeline.php line 85
  40. at Pipeline->think\{closure}() in SessionInit.php line 67
  41. at SessionInit->handle()
  42. at call_user_func() in Middleware.php line 142
  43. at Middleware->think\{closure}() in Pipeline.php line 85
  44. at Pipeline->think\{closure}() in Pipeline.php line 66
  45. at Pipeline->then() in Http.php line 207
  46. at Http->runWithRequest() in Http.php line 170
  47. at Http->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_ALICDN_DA_VIA 121.29.9.41,120.27.78.61
HTTP_ALI_SWIFT_RANGE_CACHE on
HTTP_ALI_CDN_ADAPTIVE_PORTS 80,443
HTTP_ALI_SWIFT_ORIGIN_PORT 443
HTTP_ALI_SWIFT_ORIGIN_SCHEME https
HTTP_ALI_CDN_APPVIEW_NAME cdn-tengine
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.41 Safari/537.36
HTTP_ALI_SWIFT_FORCE_TTL_CODE 400=0
HTTP_ALI_SWIFT_FORCE_CACHE_CONTROL 0
HTTP_X_CLIENT_SCHEME https
HTTP_X_FORWARDED_FOR 120.9.160.150
HTTP_ALI_SWIFT_STAT_HOST www.wangzhan360.com
HTTP_ALI_SWIFT_LOG_HOST www.wangzhan360.com
HTTP_ALI_CDN_REAL_IP 120.9.160.150
HTTP_ALI_CDN_REAL_PORT 19032
HTTP_EAGLEEYE_TRACEID 791d090c17799676339913556e
HTTP_VIA cn411.l1, l2cm9-6.l2
HTTP_HOST www.wangzhan360.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME wangzhan360.com
SERVER_PORT 443
SERVER_ADDR 172.17.12.16
REMOTE_PORT 35564
REMOTE_ADDR 120.27.78.61
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.wangzhan360.com/public
DOCUMENT_URI /index.php
REQUEST_URI /Viewpoint/1748.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/Viewpoint/1748.html
SCRIPT_FILENAME /www/wwwroot/www.wangzhan360.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1779967634.0382
REQUEST_TIME 1779967634