[2] ErrorException in Template.php line 282

is_file(): open_basedir restriction in effect. File(/var/www/wx/template/mulit/pc/common/header.html) is not within the allowed path(s): (/www/wwwroot/366zx.com/:/tmp/)

  1. if (!isset($matches[1])) {
  2. return false;
  3. }
  4. $includeFile = unserialize($matches[1]);
  5. if (!is_array($includeFile)) {
  6. return false;
  7. }
  8. // 检查模板文件是否有更新
  9. foreach ($includeFile as $path => $time) {
  10. if (is_file($path) && filemtime($path) > $time) {
  11. // 模板文件如果有更新则缓存需要更新
  12. return false;
  13. }
  14. }
  15. // 检查编译存储是否有效
  16. return $this->storage->check($cacheFile, $this->config['cache_time']);
  17. }
  18. /**

Call Stack

  1. in Template.php line 282
  2. at Error::appError(2, 'is_file(): open_base...', '/www/wwwroot/366zx.c...', 282, ['cacheFile' => '/www/wwwroot/366zx.c...', 'handle' => resource, 'matches' => ['/*a:4:{s:46:"./templ...', 'a:4:{s:46:"./templat...'], ...])
  3. at is_file('/var/www/wx/template...') in Template.php line 282
  4. at Template->checkCache('/www/wwwroot/366zx.c...') in Template.php line 179
  5. at Template->fetch('./template/mulit/pc/...', ['config_wxcode' => '/public/image/wxcode...', 'config_mincode' => '/public/image/mincod...', 'audit' => 'yes', ...], []) in Think.php line 84
  6. at Think->fetch('./template/mulit/pc/...', ['config_wxcode' => '/public/image/wxcode...', 'config_mincode' => '/public/image/mincod...', 'audit' => 'yes', ...], []) in View.php line 163
  7. at View->fetch('package_info', ['config_wxcode' => '/public/image/wxcode...', 'config_mincode' => '/public/image/mincod...', 'audit' => 'yes', ...], ['__ROOT__' => '', '__URL__' => '/index/packages', '__STATIC__' => '/static', ...], []) in Controller.php line 127
  8. at Controller->fetch() in Packages.php line 145
  9. at Packages->package_info()
  10. at ReflectionMethod->invokeArgs(object(Packages), []) in App.php line 343
  11. at App::invokeMethod([object(Packages), 'package_info'], []) in App.php line 597
  12. at App::module(['index', 'packages', 'package_info'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'packages', 'package_info'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/366zx.c...') in index.php line 18
  16. at include_once('/www/wwwroot/366zx.c...') in index.php line 38

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
366zx.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/packages/detail/32.html
REDIRECT_STATUS
200
SERVER_NAME
366zx.com
SERVER_PORT
80
SERVER_ADDR
172.17.91.176
REMOTE_PORT
20169
REMOTE_ADDR
3.16.83.150
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/366zx.com
DOCUMENT_URI
/index.php
REQUEST_URI
/packages/detail/32.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/packages/detail/32.html
SCRIPT_FILENAME
/www/wwwroot/366zx.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713456117.2215
REQUEST_TIME
1713456117
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
APP_PATH
/www/wwwroot/366zx.com/public/../application/
THINK_VERSION
5.2.21
THINK_START_TIME
1713456117.222
THINK_START_MEM
376448
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/366zx.com/tp/
LIB_PATH
/www/wwwroot/366zx.com/tp/library/
CORE_PATH
/www/wwwroot/366zx.com/tp/library/think/
TRAIT_PATH
/www/wwwroot/366zx.com/tp/library/traits/
ROOT_PATH
/www/wwwroot/366zx.com/
EXTEND_PATH
/www/wwwroot/366zx.com/extend/
VENDOR_PATH
/www/wwwroot/366zx.com/vendor/
RUNTIME_PATH
/www/wwwroot/366zx.com//data/runtime/
LOG_PATH
/www/wwwroot/366zx.com//data/runtime/log/
CACHE_PATH
/www/wwwroot/366zx.com//data/runtime/cache/
TEMP_PATH
/www/wwwroot/366zx.com//data/runtime/temp/
CONF_PATH
/www/wwwroot/366zx.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false