[2] ErrorException in File.php line 34

file_put_contents(): Only 0 of 14663 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():...', '/www/wwwroot/192.168...', 34, ['cacheFile' => '/www/wwwroot/192.168...', 'content' => '<?php if (!defined('...', 'dir' => '/www/wwwroot/192.168...'])
  3. at file_put_contents('/www/wwwroot/192.168...', '<?php if (!defined('...') in File.php line 34
  4. at File->write('/www/wwwroot/192.168...', '<?php if (!defined('...') in Template.php line 348
  5. at Template->compiler('<?php if (!defined('...', '/www/wwwroot/192.168...') in Template.php line 182
  6. at Template->fetch('/www/wwwroot/192.168...', ['nav' => [['id' => 1, 'pid' => 0, 'navname' => '学校概况', ...], ['id' => 5, 'pid' => 0, 'navname' => '党建先锋', ...], ['id' => 4, 'pid' => 0, 'navname' => '招生就业', ...], ...], 'linkurl' => [['id' => 20, 'webname' => '111', 'linkurl' => 'http://www.moe.gov.c...', ...], ['id' => 24, 'webname' => 'cc', 'linkurl' => 'http://jyt.hlj.gov.c...', ...], ['id' => 26, 'webname' => 'yg', 'linkurl' => 'http://www.mofcom.go...', ...], ...], 'webname' => '...', ...], []) in Think.php line 86
  7. at Think->fetch('product_show', ['nav' => [['id' => 1, 'pid' => 0, 'navname' => '学校概况', ...], ['id' => 5, 'pid' => 0, 'navname' => '党建先锋', ...], ['id' => 4, 'pid' => 0, 'navname' => '招生就业', ...], ...], 'linkurl' => [['id' => 20, 'webname' => '111', 'linkurl' => 'http://www.moe.gov.c...', ...], ['id' => 24, 'webname' => 'cc', 'linkurl' => 'http://jyt.hlj.gov.c...', ...], ['id' => 26, 'webname' => 'yg', 'linkurl' => 'http://www.mofcom.go...', ...], ...], 'webname' => '...', ...], []) in View.php line 163
  8. at View->fetch('product_show', ['model' => ['banner_show' => ['id' => 5, 'pid' => 0, 'navname' => '党建先锋', ...], 'banner' => [['id' => 27, 'pid' => 5, 'navname' => '学习专区', ...], ['id' => 28, 'pid' => 5, 'navname' => '专题栏目', ...], ['id' => 29, 'pid' => 5, 'navname' => '思政教育', ...], ...], 'show' => ['id' => 2482, 'pid' => 5, 'shr_id' => 43, ...], ...]], [], []) in Controller.php line 120
  9. at Controller->fetch('product_show', ['model' => ['banner_show' => ['id' => 5, 'pid' => 0, 'navname' => '党建先锋', ...], 'banner' => [['id' => 27, 'pid' => 5, 'navname' => '学习专区', ...], ['id' => 28, 'pid' => 5, 'navname' => '专题栏目', ...], ['id' => 29, 'pid' => 5, 'navname' => '思政教育', ...], ...], 'show' => ['id' => 2482, 'pid' => 5, 'shr_id' => 43, ...], ...]]) in Party.php line 171
  10. at Party->product_show()
  11. at ReflectionMethod->invokeArgs(object(Party), []) in App.php line 343
  12. at App::invokeMethod([object(Party), 'product_show'], []) in App.php line 611
  13. at App::module(['index', 'party', 'product_show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  14. at App::exec(['type' => 'module', 'module' => ['index', 'party', 'product_show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/www/wwwroot/192.168...') 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
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/192.168.66.90/public/index.php
QUERY_STRING
s=//index/party_product_show/classid/5/id/2482.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/party_product_show/classid/5/id/2482.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/192.168.66.90/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.26.2
REMOTE_ADDR
219.143.7.8
REMOTE_PORT
12857
SERVER_ADDR
10.10.10.238
SERVER_PORT
443
SERVER_NAME
192.168.66.54
REDIRECT_STATUS
200
HTTP_HOST
hljszy.org.cn
PATH_INFO
//index/party_product_show/classid/5/id/2482.html
HTTP_CLIENT_IP
2600:1f28:365:80b0:35e2:9369:6b76:3018
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_IF_MODIFIED_SINCE
Sun, 12 Apr 2026 12:59:50 GMT
HTTP_ACCEPT_ENCODING
br, gzip
HTTP_X_FORWARDED_FOR
2600:1f28:365:80b0:35e2:9369:6b76:3018
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1786568154.0384
REQUEST_TIME
1786568154
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/192.168.66.90/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1786568154.0388
THINK_START_MEM
263024
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/192.168.66.90/thinkphp/
LIB_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/
CORE_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/192.168.66.90/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/192.168.66.90/
EXTEND_PATH
/www/wwwroot/192.168.66.90/extend/
VENDOR_PATH
/www/wwwroot/192.168.66.90/vendor/
RUNTIME_PATH
/www/wwwroot/192.168.66.90/runtime/
LOG_PATH
/www/wwwroot/192.168.66.90/runtime/log/
CACHE_PATH
/www/wwwroot/192.168.66.90/runtime/cache/
TEMP_PATH
/www/wwwroot/192.168.66.90/runtime/temp/
CONF_PATH
/www/wwwroot/192.168.66.90/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PC_PATH
/public/
STATIC_PATH
/public/static/
UPLOADS_PATH
/public/uploads/