string(47095) "


    
    System Error
    
    
    


    

  1. $this->fetchType = $config['result_type'];
  2. }
  3. try {
  4. if (empty($config['dsn'])) {
  5. $config['dsn'] = $this->parseDsn($config);
  6. }
  7. if ($config['debug']) {
  8. $startTime = microtime(true);
  9. }
  10. $this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
  11. if ($config['debug']) {
  12. // 记录数据库连接信息
  13. Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
  14. }
  15. } catch (\PDOException $e) {
  16. if ($autoConnection) {
  17. Log::record($e->getMessage(), 'error');
  18. return $this->connect($autoConnection, $linkNum);
  19. } else {

Call Stack

  1. in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Connection.php line 293 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  2. at PDO->__construct('mysql:host=127.0.0.1...', 'root', 'tpshop99@2021', [0, 2, 0, ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Connection.php line 293 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  3. at Connection->connect() in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Connection.php line 998 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  4. at Connection->initConnect(false) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Connection.php line 347 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  5. at Connection->query('SHOW COLUMNS FROM `t...', [], false, true) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/connector/Mysql.php line 65 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  6. at Mysql->getFields('tp_config') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 1749 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  7. at Query->getTableInfo('tp_config', 'type') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 1797 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  8. at Query->getFieldsType('tp_config') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 1803 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  9. at Query->getFieldsBind('tp_config') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Builder.php line 263 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  10. at Builder->buildWhere([], ['table' => 'tp_config', 'where' => [], 'field' => '*', ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Builder.php line 233 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  11. at Builder->parseWhere([], ['table' => 'tp_config', 'where' => [], 'field' => '*', ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Builder.php line 697 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  12. at Builder->select(['table' => 'tp_config', 'where' => [], 'field' => '*', ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 2332 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  13. at Query->select() in /www/wwwroot/sun.tpsns.com/application/home/controller/Base.php line 147 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  14. at Base->get_tpshop_config() in /www/wwwroot/sun.tpsns.com/application/home/controller/Base.php line 78 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  15. at Base->public_assign() in /www/wwwroot/sun.tpsns.com/application/home/controller/Base.php line 42 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  16. at Base->_initialize() in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Controller.php line 111 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  17. at Controller->__construct() in /www/wwwroot/sun.tpsns.com/application/home/controller/Base.php line 24 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  18. at Base->__construct()
  19. at ReflectionClass->newInstanceArgs([]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 364 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  20. at App::invokeClass('app\home\controller\...') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Loader.php line 459 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  21. at Loader::controller('Goods', 'controller', false, 'Error') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 580 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  22. at App::module(['Home', 'Goods', 'goodsList'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 462 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  23. at App::exec(['type' => 'module', 'module' => ['Home', 'Goods', 'goodsList']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 142 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  24. at App::run() in /www/wwwroot/sun.tpsns.com/thinkphp/start.php line 19 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121
  25. at require('/www/wwwroot/sun.tps...') in /www/wwwroot/sun.tpsns.com/index.php line 137 请求方式GET 请求地址 /index.php/Home/Goods/goodsList/id/121

Environment Variables

GET Data

id
121
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Home/Goods/goodsList/id/121
DOCUMENT_URI
/index.php/Home/Goods/goodsList/id/121
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.241
REMOTE_PORT
35094
SERVER_ADDR
172.31.123.154
SERVER_PORT
80
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/Home/Goods/goodsList/id/121
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_HOST
sun.tpsns.com
HTTP_VIA
1.1 squid-proxy-5b5d847c96-4m6f9 (squid/6.13)
HTTP_X_FORWARDED_FOR
10.1.200.65
HTTP_CACHE_CONTROL
max-age=259200
HTTP_CONNECTION
keep-alive
PHP_SELF
/index.php/Home/Goods/goodsList/id/121
REQUEST_TIME_FLOAT
1776553092.7508
REQUEST_TIME
1776553092
HTTPS
on
Environment Variables
empty

ThinkPHP Constants

IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
NOW_TIME
1776553092
THINK_VERSION
5.0.15
THINK_START_TIME
1776553092.7514
THINK_START_MEM
323712
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/
LIB_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/
CORE_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/sun.tpsns.com/
EXTEND_PATH
/www/wwwroot/sun.tpsns.com/extend/
VENDOR_PATH
/www/wwwroot/sun.tpsns.com/vendor/
RUNTIME_PATH
/www/wwwroot/sun.tpsns.com/runtime/
LOG_PATH
/www/wwwroot/sun.tpsns.com/runtime/log/
CACHE_PATH
/www/wwwroot/sun.tpsns.com/runtime/cache/
TEMP_PATH
/www/wwwroot/sun.tpsns.com/runtime/temp/
CONF_PATH
/www/wwwroot/sun.tpsns.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Goods
ACTION_NAME
goodsList
PREFIX
tp_
SESSION_ID
"
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(): Only 0 of 47095 bytes written, possibly out of free disk space' in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php:190 Stack trace: #0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/su...', 190, Array) #1 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...') #2 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(PDOException)) #3 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(PDOException)) #4 [internal function]: think\Error::appException(Object(PDOException)) #5 {main} thrown in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190
string(37765) "


    
    System Error
    
    
    


    

Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(): Only 0 of 47095 bytes written, possibly out of free disk space' in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php:190
Stack trace:
#0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/su...', 190, Array)
#1 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...')
#2 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(PDOException))
#3 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(PDOException))
#4 [internal function]: think\Error::appException(Object(PDOException))
#5 {main}
thrown

  1. else
  2. include Config::get('error_tmpl');
  3. // 获取并清空缓存
  4. $content = ob_get_clean();
  5. echo '<pre>';
  6. var_dump($content);
  7. $response = new Response($content, 'html');
  8. // 将错误保存,访问方式 http://www.xxx.com/error.html
  9. file_put_contents('error.html',$content);
  10. if ($exception instanceof HttpException) {
  11. $statusCode = $exception->getStatusCode();
  12. $response->header($exception->getHeaders());
  13. }
  14. if (!isset($statusCode)) {
  15. $statusCode = 500;
  16. }
  17. $response->code($statusCode);

Environment Variables

GET Data

id
121
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Home/Goods/goodsList/id/121
DOCUMENT_URI
/index.php/Home/Goods/goodsList/id/121
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.241
REMOTE_PORT
35094
SERVER_ADDR
172.31.123.154
SERVER_PORT
80
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/Home/Goods/goodsList/id/121
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_HOST
sun.tpsns.com
HTTP_VIA
1.1 squid-proxy-5b5d847c96-4m6f9 (squid/6.13)
HTTP_X_FORWARDED_FOR
10.1.200.65
HTTP_CACHE_CONTROL
max-age=259200
HTTP_CONNECTION
keep-alive
PHP_SELF
/index.php/Home/Goods/goodsList/id/121
REQUEST_TIME_FLOAT
1776553092.7508
REQUEST_TIME
1776553092
HTTPS
on
Environment Variables
empty

ThinkPHP Constants

IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
NOW_TIME
1776553092
THINK_VERSION
5.0.15
THINK_START_TIME
1776553092.7514
THINK_START_MEM
323712
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/
LIB_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/
CORE_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/sun.tpsns.com/
EXTEND_PATH
/www/wwwroot/sun.tpsns.com/extend/
VENDOR_PATH
/www/wwwroot/sun.tpsns.com/vendor/
RUNTIME_PATH
/www/wwwroot/sun.tpsns.com/runtime/
LOG_PATH
/www/wwwroot/sun.tpsns.com/runtime/log/
CACHE_PATH
/www/wwwroot/sun.tpsns.com/runtime/cache/
TEMP_PATH
/www/wwwroot/sun.tpsns.com/runtime/temp/
CONF_PATH
/www/wwwroot/sun.tpsns.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Goods
ACTION_NAME
goodsList
PREFIX
tp_
SESSION_ID
"
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/www/wwwroot/sun.tpsns.com/:/tmp/)' in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php:190 Stack trace: #0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/su...', 190, Array) #1 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...') #2 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException)) #3 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException)) #4 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(90): think\Error::appException(Object(think\exception\ErrorException)) #5 [internal function]: think\Error::ap in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190