[11602] Exception in File.php line 33

缓存写入失败:/data/home/qxu1608040003/htdocs/runtime/temp/index_48bd9eabd6e8be81fdb7495bd7920e12.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 33
  2. at File->write('/data/home/qxu160804...', '<?php if (!defined('...') in Template.php line 360
  3. at Template->compiler('<?php if (!defined('...', '/data/home/qxu160804...') in Template.php line 192
  4. at Template->fetch('./theme/default/cont...', ['empty' => '<tr><td colspan="20"...', 'baseDir' => '/', 'uploadDir' => '/upload/', ...], []) in Think.php line 84
  5. at Think->fetch('./theme/default/cont...', ['empty' => '<tr><td colspan="20"...', 'baseDir' => '/', 'uploadDir' => '/upload/', ...], []) in View.php line 160
  6. at View->fetch('./theme/default/cont...', [], [], []) in Controller.php line 112
  7. at Controller->fetch('./theme/default/cont...') in Index.php line 94
  8. at Index->view('191')
  9. at ReflectionMethod->invokeArgs(object(Index), ['191']) in App.php line 197
  10. at App::invokeMethod([object(Index), 'view'], []) in App.php line 415
  11. at App::module([null, 'index', 'view'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 296
  12. at App::exec(['type' => 'module', 'module' => [null, 'index', 'view'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 124
  13. at App::run() in start.php line 18
  14. at require('/data/home/qxu160804...') in index.php line 16

Environment Variables

GET Data

__
true
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "baseDir": "\/" }

Server/Request Data

DOCUMENT_ROOT
/usr/home/qxu1608040003/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
br,gzip
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
hbzxsp.com
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin:/usr/bin
PHPRC
/var/www/php55/hichina_ini/qxu1608040003
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/qxu1608040003/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
REDIRECT_HTTP_ACCEPT_ENCODING
br,gzip
REDIRECT_HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
REDIRECT_HTTP_CONNECTION
Keep-Alive
REDIRECT_HTTP_HOST
hbzxsp.com
REDIRECT_HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_PATH
/bin:/usr/bin
REDIRECT_PATH_INFO
view/191.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
35.175.113.29
REDIRECT_REMOTE_PORT
47970
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/view/191.html
REDIRECT_SCRIPT_FILENAME
/usr/home/qxu1608040003/htdocs/view
REDIRECT_SCRIPT_NAME
/view
REDIRECT_SCRIPT_URI
http://hbzxsp.com/view/191.html
REDIRECT_SCRIPT_URL
/view/191.html
REDIRECT_SERVER_ADDR
121.42.115.148
REDIRECT_SERVER_ADMIN
webmaster@qxu1608040003.my3w.com
REDIRECT_SERVER_NAME
hbzxsp.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XlKHDAofRrAAACUzdP8AAAAR
REDIRECT_URL
/view/191.html
REMOTE_ADDR
35.175.113.29
REMOTE_PORT
47970
REQUEST_METHOD
GET
REQUEST_URI
/view/191.html
SCRIPT_FILENAME
/usr/home/qxu1608040003/htdocs/index.php
SCRIPT_NAME
/index.php
SCRIPT_URI
http://hbzxsp.com/view/191.html
SCRIPT_URL
/view/191.html
SERVER_ADDR
121.42.115.148
SERVER_ADMIN
webmaster@qxu1608040003.my3w.com
SERVER_NAME
hbzxsp.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XlKHDAofRrAAACUzdP8AAAAR
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1582466828.8195
REQUEST_TIME
1582466828
PATH_INFO
view/191.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
APP_TRACE
false
APP_PATH
/data/home/qxu1608040003/htdocs/app/
CONF_PATH
/data/home/qxu1608040003/htdocs/config/
BIND_MODULE
index
THINK_VERSION
5.0.12
THINK_START_TIME
1582466828.8201
THINK_START_MEM
253064
EXT
.php
DS
/
THINK_PATH
/data/home/qxu1608040003/htdocs/system/
LIB_PATH
/data/home/qxu1608040003/htdocs/system/library/
CORE_PATH
/data/home/qxu1608040003/htdocs/system/library/think/
TRAIT_PATH
/data/home/qxu1608040003/htdocs/system/library/traits/
ROOT_PATH
/data/home/qxu1608040003/htdocs/
EXTEND_PATH
/data/home/qxu1608040003/htdocs/extend/
VENDOR_PATH
/data/home/qxu1608040003/htdocs/vendor/
RUNTIME_PATH
/data/home/qxu1608040003/htdocs/runtime/
LOG_PATH
/data/home/qxu1608040003/htdocs/runtime/log/
CACHE_PATH
/data/home/qxu1608040003/htdocs/runtime/cache/
TEMP_PATH
/data/home/qxu1608040003/htdocs/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTML_PATH
/data/home/qxu1608040003/htdocs/