[2] ErrorException in active.php line 217

unlink(/www/wwwroot/wwsnwugong/runtime/temp/475c91429ab69e9b12c607cc716d7eb7.php): No such file or directory

  1. */
  2. function clear_directory($dir) {
  3. if (!is_dir($dir)) {
  4. return false;
  5. }
  6. $files = glob($dir . '*');
  7. foreach ($files as $file) {
  8. if (is_file($file)) {
  9. unlink($file);
  10. } elseif (is_dir($file)) {
  11. clear_directory($file . '/');
  12. rmdir($file);
  13. }
  14. }
  15. return true;
  16. }
  17. }

Call Stack

  1. in active.php line 217
  2. at Error::appError(2, 'unlink(/www/wwwroot/...', '/www/wwwroot/wwsnwug...', 217, ['dir' => '/www/wwwroot/wwsnwug...', 'files' => ['/www/wwwroot/wwsnwug...', '/www/wwwroot/wwsnwug...'], 'file' => '/www/wwwroot/wwsnwug...'])
  3. at unlink('/www/wwwroot/wwsnwug...') in active.php line 217
  4. at clear_directory('/www/wwwroot/wwsnwug...') in active.php line 189
  5. at clear_system_cache('template') in active.php line 646
  6. at include('/www/wwwroot/wwsnwug...') in Config.php line 80
  7. at Config::load('/www/wwwroot/wwsnwug...', 'active') in App.php line 262
  8. at App::init() in App.php line 182
  9. at App::initCommon() in App.php line 82
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/wwsnwug...') 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_REFERER
http://127.0.0.2:61382/vodplay/haochuanmoushaan-1-7.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
HTTP_HOST
127.0.0.2:61382
PATH_INFO
//vodplay/haochuanmoushaan-1-7.html
REDIRECT_STATUS
200
SERVER_NAME
www.snwugong.com
SERVER_PORT
61382
SERVER_ADDR
127.0.0.2
REMOTE_PORT
34044
REMOTE_ADDR
127.0.0.1
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/wwsnwugong
DOCUMENT_URI
/index.php//vodplay/haochuanmoushaan-1-7.html
REQUEST_URI
/vodplay/haochuanmoushaan-1-7.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/wwsnwugong/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//vodplay/haochuanmoushaan-1-7.html
REQUEST_TIME_FLOAT
1753132254.9609
REQUEST_TIME
1753132254
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/wwsnwugong/
APP_PATH
/www/wwwroot/wwsnwugong/application/
MAC_COMM
/www/wwwroot/wwsnwugong/application/common/common/
MAC_HOME_COMM
/www/wwwroot/wwsnwugong/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/wwsnwugong/application/admin/common/
MAC_START_TIME
1753132254.9612
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1753132254.9616
THINK_START_MEM
417368
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/wwsnwugong/thinkphp/
LIB_PATH
/www/wwwroot/wwsnwugong/thinkphp/library/
CORE_PATH
/www/wwwroot/wwsnwugong/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/wwsnwugong/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/wwsnwugong/extend/
VENDOR_PATH
/www/wwwroot/wwsnwugong/vendor/
RUNTIME_PATH
/www/wwwroot/wwsnwugong/runtime/
LOG_PATH
/www/wwwroot/wwsnwugong/runtime/log/
CACHE_PATH
/www/wwwroot/wwsnwugong/runtime/cache/
TEMP_PATH
/www/wwwroot/wwsnwugong/runtime/temp/
CONF_PATH
/www/wwwroot/wwsnwugong/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/wwsnwugong/addons/
SYSTEM_MAINTENANCE_LOADED
true