string(43688) "


    
    System Error
    
    
    


    

  1. $name = substr($name, 0, 2) . DS . substr($name, 2);
  2. }
  3. if ($this->options['prefix']) {
  4. $name = $this->options['prefix'] . DS . $name;
  5. }
  6. $filename = $this->options['path'] . $name . '.php';
  7. $dir = dirname($filename);
  8. if ($auto && !is_dir($dir)) {
  9. mkdir($dir, 0755, true);
  10. }
  11. return $filename;
  12. }
  13. /**
  14. * 判断缓存是否存在
  15. * @access public
  16. * @param string $name 缓存变量名
  17. * @return bool

Call Stack

  1. in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 84 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  2. at Error::appError(2, 'mkdir(): File exists', '/www/wwwroot/sun.tps...', 84, ['name' => 'tpshop_cache_prefix/...', 'auto' => true, 'filename' => '/www/wwwroot/sun.tps...', ...])
  3. at mkdir('/www/wwwroot/sun.tps...', 493, true) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 84 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  4. at File->getCacheKey('2b30a28eef3a71192632...', true) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 149 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  5. at File->set('2b30a28eef3a71192632...', [['id' => 1, 'name' => '狗狗主粮', 'parent_id' => 0, ...], ['id' => 2, 'name' => '进口狗粮', 'parent_id' => 1, ...], ['id' => 3, 'name' => '全犬粮', 'parent_id' => 2, ...], ...], null) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Cache.php line 148 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  6. at Cache::set('2b30a28eef3a71192632...', [['id' => 1, 'name' => '狗狗主粮', 'parent_id' => 0, ...], ['id' => 2, 'name' => '进口狗粮', 'parent_id' => 1, ...], ['id' => 3, 'name' => '全犬粮', 'parent_id' => 2, ...], ...], null) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 2409 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  7. at Query->cacheData('2b30a28eef3a71192632...', [['id' => 1, 'name' => '狗狗主粮', 'parent_id' => 0, ...], ['id' => 2, 'name' => '进口狗粮', 'parent_id' => 1, ...], ['id' => 3, 'name' => '全犬粮', 'parent_id' => 2, ...], ...], ['key' => true, 'expire' => null, 'tag' => null]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 495 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  8. at Query->column('id,name,parent_id,le...', 'id') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 2873 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  9. at Query->getField('id,name,parent_id,le...') in /www/wwwroot/sun.tpsns.com/application/home/controller/Goods.php line 366 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  10. at Goods->goodsList()
  11. at ReflectionMethod->invokeArgs(object(Goods), []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 348 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  12. at App::invokeMethod([object(Goods), 'goodsList'], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 614 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  13. 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 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  14. 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 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  15. at App::run() in /www/wwwroot/sun.tpsns.com/thinkphp/start.php line 19 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58
  16. at require('/www/wwwroot/sun.tps...') in /www/wwwroot/sun.tpsns.com/index.php line 137 请求方式GET 请求地址 /home/Goods/goodsList/id/49/price/36-45/brand_id/58

Environment Variables

GET Data

id
49
price
36-45
brand_id
58
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
s=/home/Goods/goodsList/id/49/price/36-45/brand_id/58
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.211
REMOTE_PORT
25079
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
HTTP_HOST
sun.tpsns.com
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
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1750675052.0227
REQUEST_TIME
1750675052
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
1750675052
THINK_VERSION
5.0.15
THINK_START_TIME
1750675052.0241
THINK_START_MEM
321672
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(error.html): failed to open stream: Permission denied' 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 [internal function]: think\Error::appException(Object(think\exception\ErrorException)) #5 {main} thrown in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190
string(37230) "


    
    System Error
    
    
    


    

Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(error.html): failed to open stream: Permission denied' 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 [internal function]: think\Error::appException(Object(think\exception\ErrorException))
#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
49
price
36-45
brand_id
58
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
s=/home/Goods/goodsList/id/49/price/36-45/brand_id/58
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.211
REMOTE_PORT
25079
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
HTTP_HOST
sun.tpsns.com
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
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1750675052.0227
REQUEST_TIME
1750675052
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
1750675052
THINK_VERSION
5.0.15
THINK_START_TIME
1750675052.0241
THINK_START_MEM
321672
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
" System Error

Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(error.html): failed to open stream: Permission denied' 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 [internal function]: think\Error::appException(Object(think\exception\ErrorException))
#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
49
price
36-45
brand_id
58
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
s=/home/Goods/goodsList/id/49/price/36-45/brand_id/58
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.211
REMOTE_PORT
25079
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/home/Goods/goodsList/id/49/price/36-45/brand_id/58
HTTP_HOST
sun.tpsns.com
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
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1750675052.0227
REQUEST_TIME
1750675052
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
1750675052
THINK_VERSION
5.0.15
THINK_START_TIME
1750675052.0241
THINK_START_MEM
321672
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