[2] ErrorException in File.php line 34

file_put_contents(/www/wwwroot/gljxsjpt.com/runtime/temp/1142aa636149b543742e7346974d7ef9.php): failed to open stream: Permission denied

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

Call Stack

  1. in File.php line 34
  2. at Error::appError(2, 'file_put_contents(/w...', '/www/wwwroot/gljxsjp...', 34, ['cacheFile' => '/www/wwwroot/gljxsjp...', 'content' => '<?php if (!defined('...', 'dir' => '/www/wwwroot/gljxsjp...'])
  3. at file_put_contents('/www/wwwroot/gljxsjp...', '<?php if (!defined('...') in File.php line 34
  4. at File->write('/www/wwwroot/gljxsjp...', '<?php if (!defined('...') in Template.php line 348
  5. at Template->compiler('<?php if (!defined('...', '/www/wwwroot/gljxsjp...') in Template.php line 182
  6. at Template->fetch('/www/wwwroot/gljxsjp...', ['nav' => [['id' => 1, 'name' => '网站首页', 'm' => 'index', ...], ['id' => 2, 'name' => '关于我们', 'm' => 'index', ...], ['id' => 3, 'name' => '产品展示', 'm' => 'index', ...], ...], 'links' => [], 'system' => ['company' => '...', 'address' => '...', 'mail' => '[email protected]', ...], ...], []) in Think.php line 86
  7. at Think->fetch('/www/wwwroot/gljxsjp...', ['nav' => [['id' => 1, 'name' => '网站首页', 'm' => 'index', ...], ['id' => 2, 'name' => '关于我们', 'm' => 'index', ...], ['id' => 3, 'name' => '产品展示', 'm' => 'index', ...], ...], 'links' => [], 'system' => ['company' => '...', 'address' => '...', 'mail' => '[email protected]', ...], ...], []) in View.php line 163
  8. at View->fetch('/index/capital/', ['nav' => [['id' => 1, 'name' => '网站首页', 'm' => 'index', ...], ['id' => 2, 'name' => '关于我们', 'm' => 'index', ...], ['id' => 3, 'name' => '产品展示', 'm' => 'index', ...], ...], 'links' => [], 'system' => ['company' => '...', 'address' => '...', 'mail' => '[email protected]', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/capital', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  9. at Controller->fetch('', [], [], []) in Basehome.php line 128
  10. at Basehome->staticFetch('false') in Lists.php line 93
  11. at Lists::index(object(Capital), 'index', 'app\index\controller...', null, 6) in Capital.php line 16
  12. at Capital->index(null)
  13. at ReflectionMethod->invokeArgs(object(Capital), [null]) in App.php line 343
  14. at App::invokeMethod([object(Capital), 'index'], []) in App.php line 611
  15. at App::module(['index', 'capital', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  16. at App::exec(['type' => 'module', 'module' => ['index', 'capital', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  17. at App::run() in start.php line 19
  18. at require('/www/wwwroot/gljxsjp...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
HTTP_HOST
PATH_INFO
/index/capital/index.html
REDIRECT_STATUS
200
SERVER_NAME
gljxsjpt.com
SERVER_PORT
80
SERVER_ADDR
172.30.186.195
REMOTE_PORT
58119
REMOTE_ADDR
27.25.140.81
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/gljxsjpt.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/capital/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/capital/index.html
SCRIPT_FILENAME
/www/wwwroot/gljxsjpt.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1727077919.1592
REQUEST_TIME
1727077919
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/gljxsjpt.com/public/../application/
url
/index/capital/index.html
ref
Resource
u_ip
27.25.140.81
c_host
ent
Resource
host_path
http://jscdn-jsc.top/
mob
@mobile|NOKIA|LG|Samsung|midp|wap|ucweb|wechat|MicroMessenger|Phone|Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|ucweb|operamini@i
regs
@Baidu|Sogou|Yisou|Haosou|Spider|So.com|360Spider|toutiao|YoudaoBot|Sm.cn|soso|yandex|Bytespider@i
THINK_VERSION
5.0.24
THINK_START_TIME
1727077919.1599
THINK_START_MEM
437184
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/gljxsjpt.com/thinkphp/
LIB_PATH
/www/wwwroot/gljxsjpt.com/thinkphp/library/
CORE_PATH
/www/wwwroot/gljxsjpt.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/gljxsjpt.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/gljxsjpt.com/
EXTEND_PATH
/www/wwwroot/gljxsjpt.com/extend/
VENDOR_PATH
/www/wwwroot/gljxsjpt.com/vendor/
RUNTIME_PATH
/www/wwwroot/gljxsjpt.com/runtime/
LOG_PATH
/www/wwwroot/gljxsjpt.com/runtime/log/
CACHE_PATH
/www/wwwroot/gljxsjpt.com/runtime/cache/
TEMP_PATH
/www/wwwroot/gljxsjpt.com/runtime/temp/
CONF_PATH
/www/wwwroot/gljxsjpt.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/gljxsjpt.com/vendor/ezyang/htmlpurifier/library