[2] ErrorException in File.php line 34

file_put_contents(): Only 0 of 33237 bytes written, possibly out of free disk space

  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():...', '/data/user/htdocs/th...', 34, ['cacheFile' => '/data/user/htdocs/ru...', 'content' => '<?php if (!defined('...', 'dir' => '/data/user/htdocs/ru...'])
  3. at file_put_contents('/data/user/htdocs/ru...', '<?php if (!defined('...') in File.php line 34
  4. at File->write('/data/user/htdocs/ru...', '<?php if (!defined('...') in Template.php line 348
  5. at Template->compiler('<?php if (!defined('...', '/data/user/htdocs/ru...') in Template.php line 182
  6. at Template->fetch('/data/user/htdocs/pu...', ['goods' => [], 'tuijian' => [['article_id' => 33, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 35, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 37, 'cat_id' => 37, 'title' => '...', ...], ...], 'aboutus_class' => [['cat_id' => 32, 'classfiy_name' => '公司简介', 'parent_id' => 0, ...], ['cat_id' => 44, 'classfiy_name' => '企业文化', 'parent_id' => 0, ...], ['cat_id' => 45, 'classfiy_name' => '资质荣誉', 'parent_id' => 0, ...], ...], ...], []) in Think.php line 86
  7. at Think->fetch('/data/user/htdocs/pu...', ['goods' => [], 'tuijian' => [['article_id' => 33, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 35, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 37, 'cat_id' => 37, 'title' => '...', ...], ...], 'aboutus_class' => [['cat_id' => 32, 'classfiy_name' => '公司简介', 'parent_id' => 0, ...], ['cat_id' => 44, 'classfiy_name' => '企业文化', 'parent_id' => 0, ...], ['cat_id' => 45, 'classfiy_name' => '资质荣誉', 'parent_id' => 0, ...], ...], ...], []) in View.php line 163
  8. at View->fetch('', ['goods' => [], 'tuijian' => [['article_id' => 33, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 35, 'cat_id' => 37, 'title' => '...', ...], ['article_id' => 37, 'cat_id' => 37, 'title' => '...', ...], ...], 'aboutus_class' => [['cat_id' => 32, 'classfiy_name' => '公司简介', 'parent_id' => 0, ...], ['cat_id' => 44, 'classfiy_name' => '企业文化', 'parent_id' => 0, ...], ['cat_id' => 45, 'classfiy_name' => '资质荣誉', 'parent_id' => 0, ...], ...], ...], ['__ROOT__' => '', '__URL__' => '/home/honor', '__STATIC__' => '/static', ...]) in View.php line 36
  9. at View->output('') in Response.php line 309
  10. at Response->getContent() in Response.php line 94
  11. at Response->send() in start.php line 19
  12. at require('/data/user/htdocs/th...') in index.php line 17

Environment Variables

GET Data

id
40
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
nobody
HOME
/
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
HTTP_CONNECTION
close
HTTP_X_FORWARDED_PROTO
http
HTTP_REMOTE_HOST
3.144.205.223
HTTP_X_FORWARDED_FOR
3.144.205.223
HTTP_X_REAL_IP
3.144.205.223
HTTP_HOST
www.hongci.com
REDIRECT_STATUS
200
SERVER_NAME
wh-nsdrn3cv5m7thsywvxh.my3w.com
SERVER_PORT
80
SERVER_ADDR
10.0.3.181
REMOTE_PORT
REMOTE_ADDR
3.144.205.223
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/data/user/htdocs/public
DOCUMENT_URI
/index.php
REQUEST_URI
/listhonor.html?id=40
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/listhonor.html&id=40
PATH_INFO
/listhonor.html
SCRIPT_FILENAME
/data/user/htdocs/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1714831078.936
REQUEST_TIME
1714831078
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/user/htdocs/public/../application/
THINK_VERSION
5.0.20
THINK_START_TIME
1714831078.9362
THINK_START_MEM
350688
EXT
.php
DS
/
THINK_PATH
/data/user/htdocs/thinkphp/
LIB_PATH
/data/user/htdocs/thinkphp/library/
CORE_PATH
/data/user/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/user/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/user/htdocs/
EXTEND_PATH
/data/user/htdocs/extend/
VENDOR_PATH
/data/user/htdocs/vendor/
RUNTIME_PATH
/data/user/htdocs/runtime/
LOG_PATH
/data/user/htdocs/runtime/log/
CACHE_PATH
/data/user/htdocs/runtime/cache/
TEMP_PATH
/data/user/htdocs/runtime/temp/
CONF_PATH
/data/user/htdocs/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false