[11602] Exception in File.php line 35

缓存写入失败:/www/wwwroot/benzi88.com/runtime/temp/94899c7720a4bd796faee7ec9544228c.php

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

Call Stack

  1. in File.php line 35
  2. at File->write('/www/wwwroot/benzi88...', '<?php if (!defined('...') in Template.php line 348
  3. at Template->compiler('<?php if (!defined('...', '/www/wwwroot/benzi88...') in Template.php line 182
  4. at Template->fetch('template/stui_tpl//h...', ['maccms' => ['site_name' => '...', 'site_url' => 'www.gdousu.com', 'site_wapurl' => 'www.gdousu.com', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...]], []) in Think.php line 86
  5. at Think->fetch('template/stui_tpl//h...', ['maccms' => ['site_name' => '...', 'site_url' => 'www.gdousu.com', 'site_wapurl' => 'www.gdousu.com', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...]], []) in View.php line 163
  6. at View->fetch('index/index', ['maccms' => ['site_name' => '...', 'site_url' => 'www.gdousu.com', 'site_wapurl' => 'www.gdousu.com', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...]], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  7. at Controller->fetch('index/index') in All.php line 45
  8. at All->label_fetch('index/index') in Index.php line 13
  9. at Index->index()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  11. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  12. at App::module(['index', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/benzi88...') in index.php line 39

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.gdousu.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
benzi88.com
SERVER_PORT
443
SERVER_ADDR
38.173.255.114
REMOTE_PORT
58536
REMOTE_ADDR
54.224.52.210
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/benzi88.com
DOCUMENT_URI
/index.php
REQUEST_URI
/1485/3012640.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/benzi88.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711755372.1783
REQUEST_TIME
1711755372
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/benzi88.com/
APP_PATH
/www/wwwroot/benzi88.com/application/
MAC_COMM
/www/wwwroot/benzi88.com/application/common/common/
MAC_HOME_COMM
/www/wwwroot/benzi88.com/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/benzi88.com/application/admin/common/
MAC_START_TIME
1711755372.1788
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1711755372.1793
THINK_START_MEM
416704
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/benzi88.com/thinkphp/
LIB_PATH
/www/wwwroot/benzi88.com/thinkphp/library/
CORE_PATH
/www/wwwroot/benzi88.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/benzi88.com/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/benzi88.com/extend/
VENDOR_PATH
/www/wwwroot/benzi88.com/vendor/
RUNTIME_PATH
/www/wwwroot/benzi88.com/runtime/
LOG_PATH
/www/wwwroot/benzi88.com/runtime/log/
CACHE_PATH
/www/wwwroot/benzi88.com/runtime/cache/
TEMP_PATH
/www/wwwroot/benzi88.com/runtime/temp/
CONF_PATH
/www/wwwroot/benzi88.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/benzi88.com/addons/
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/www/wwwroot/benzi88.com/template/stui_tpl//html/
MAC_PATH_TEMPLATE
/template/stui_tpl/
MAC_PATH_TPL
/template/stui_tpl//html/
MAC_PATH_ADS
/template/stui_tpl/广告目录/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/www/wwwroot/benzi88.com/addons/
MAC_ADDON_PATH_STATIC
/www/wwwroot/benzi88.com/static/addons/