$config = self::init($module);// 模块请求缓存检查$request->cache($config['request_cache'],$config['request_cache_expire'],$config['request_cache_except']);} else {throw new HttpException(404, 'module not exists:' . $module);}} else {// 单一模块部署$module = '';$request->module($module);}// 设置默认过滤机制$request->filter($config['default_filter']);
string(37521) "
System Error
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
$response = new Response($content, 'html');
echo '<pre>';
var_dump($content);
// 将错误保存,访问方式 http://www.xxx.com/error.html
file_put_contents('error.html',$content);
if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode();
$response->header($exception->getHeaders());
}
if (!isset($statusCode)) {
$statusCode = 500;
}
$response->code($statusCode);
Call Stack
- in /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php line 190 请求方式GET 请求地址 /ggg
-
at Error::appShutdown()
Environment Variables
GET Data
empty
POST Data
empty
Files
empty
Cookies
cn
0
is_mobile
0
PHPSESSID
6lgb9jb83rkrfiba0mbinp6p32
Session
empty
Server/Request Data
USER
www
HOME
/home/www
HTTP_COOKIE
cn=0; is_mobile=0; PHPSESSID=6lgb9jb83rkrfiba0mbinp6p32
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
HTTP_HOST
www.xctecno.it
PATH_INFO
ggg
REDIRECT_STATUS
200
SERVER_NAME
www.xctecno.it
SERVER_PORT
443
SERVER_ADDR
172.16.0.135
REMOTE_PORT
29030
REMOTE_ADDR
216.73.216.168
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.xctecno.it
DOCUMENT_URI
/index.php
REQUEST_URI
/ggg
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=ggg
SCRIPT_FILENAME
/www/wwwroot/www.xctecno.it/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1781776104.6887
REQUEST_TIME
1781776104
Environment Variables
empty
ThinkPHP Constants
IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/www.xctecno.it/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
1
SITE_URL
https://www.xctecno.it
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/www.xctecno.it/application/
NOW_TIME
1781776104
THINK_VERSION
5.0.15
THINK_START_TIME
1781776104.6894
THINK_START_MEM
416168
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.xctecno.it/thinkphp/
LIB_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/
CORE_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.xctecno.it/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.xctecno.it/
EXTEND_PATH
/www/wwwroot/www.xctecno.it/extend/
VENDOR_PATH
/www/wwwroot/www.xctecno.it/vendor/
RUNTIME_PATH
/www/wwwroot/www.xctecno.it/runtime/
LOG_PATH
/www/wwwroot/www.xctecno.it/runtime/log/
CACHE_PATH
/www/wwwroot/www.xctecno.it/runtime/cache/
TEMP_PATH
/www/wwwroot/www.xctecno.it/runtime/temp/
CONF_PATH
/www/wwwroot/www.xctecno.it/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/www.xctecno.it/addons/
EXTEND_MODULE
1
EXTEND_ANDROID
2
EXTEND_IOS
3
EXTEND_ENTRUST
4
EXTEND_MINIAPP
5
EXTEND_H5
6
TIME_MOUTH
4
"
Fatal error: Uncaught think\exception\ErrorException: file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/www/wwwroot/www.xctecno.it/:/tmp/) in /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php:190
Stack trace:
#0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/ww...', 190, Array)
#1 /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...')
#2 /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))
#3 /www/wwwroot/www.xctecno.it/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException))
#4 /www/wwwroot/www.xctecno.it/thinkphp/library/think/Error.php(89): think\Error::appException(Object(think\exception\ErrorException))
#5 [internal function]: think\Error::appShutdown()
#6 {main in /www/wwwroot/www.xctecno.it/thinkphp/library/think/exception/Handle.php on line 190