string(46301) "
System Error
$name = substr($name, 0, 2) . DS . substr($name, 2);
}
if ($this->options['prefix']) {
$name = $this->options['prefix'] . DS . $name;
}
$filename = $this->options['path'] . $name . '.php';
$dir = dirname($filename);
if ($auto && !is_dir($dir)) {
mkdir($dir, 0755, true);
}
return $filename;
}
/**
* 判断缓存是否存在
* @access public
* @param string $name 缓存变量名
* @return bool
Call Stack
- in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 84 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Error::appError(2, 'mkdir(): File exists', '/www/wwwroot/sun.tps...', 84, ['name' => 'tpshop_cache_prefix/...', 'auto' => true, 'filename' => '/www/wwwroot/sun.tps...', ...])
-
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/0/brand_id/17/stock/1
-
at File->getCacheKey('130566b696e092e52b52...', true) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 149 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at File->set('130566b696e092e52b52...', [517, 516, 425, ...], 3600) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Cache.php line 148 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Cache::set('130566b696e092e52b52...', [517, 516, 425, ...], 3600) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 2409 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Query->cacheData('130566b696e092e52b52...', [517, 516, 425, ...], ['key' => true, 'expire' => 3600, 'tag' => null]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 495 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Query->column('goods_id') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/db/Query.php line 2868 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Query->getField('goods_id', true) in /www/wwwroot/sun.tpsns.com/application/home/controller/Goods.php line 296 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at Goods->goodsList()
-
at ReflectionMethod->invokeArgs(object(Goods), []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 348 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at App::invokeMethod([object(Goods), 'goodsList'], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 614 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
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/0/brand_id/17/stock/1
-
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/0/brand_id/17/stock/1
-
at App::run() in /www/wwwroot/sun.tpsns.com/thinkphp/start.php line 19 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
-
at require('/www/wwwroot/sun.tps...') in /www/wwwroot/sun.tpsns.com/index.php line 137 请求方式GET 请求地址 /Home/Goods/goodsList/id/0/brand_id/17/stock/1
Environment Variables
Server/Request Data
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
s=/Home/Goods/goodsList/id/0/brand_id/17/stock/1
REQUEST_URI
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.198
SERVER_ADDR
172.28.239.141
SERVER_NAME
sun.tpsns.com
PATH_INFO
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
HTTP_CACHE_CONTROL
no-cache
HTTP_SEC_CH_UA
"Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
HTTP_SEC_CH_UA_PLATFORM
"Windows"
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_SEC_FETCH_MODE
navigate
HTTP_SEC_FETCH_DEST
document
HTTP_ACCEPT_ENCODING
gzip, deflate, br, zstd
REQUEST_TIME_FLOAT
1750969570.7038
Environment Variables
empty
ThinkPHP Constants
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
THINK_START_TIME
1750969570.7051
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/
ThinkPHP
V5.0.15
{ 十年磨一剑-为API开发设计的高性能框架 }
"
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(40568) "
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
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
echo '<pre>';
var_dump($content);
$response = new Response($content, 'html');
// 将错误保存,访问方式 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);
Environment Variables
Server/Request Data
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
s=/Home/Goods/goodsList/id/0/brand_id/17/stock/1
REQUEST_URI
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.198
SERVER_ADDR
172.28.239.141
SERVER_NAME
sun.tpsns.com
PATH_INFO
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
HTTP_CACHE_CONTROL
no-cache
HTTP_SEC_CH_UA
"Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
HTTP_SEC_CH_UA_PLATFORM
"Windows"
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_SEC_FETCH_MODE
navigate
HTTP_SEC_FETCH_DEST
document
HTTP_ACCEPT_ENCODING
gzip, deflate, br, zstd
REQUEST_TIME_FLOAT
1750969570.7038
Environment Variables
empty
ThinkPHP Constants
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
THINK_START_TIME
1750969570.7051
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/
ThinkPHP
V5.0.15
{ 十年磨一剑-为API开发设计的高性能框架 }
"
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
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
echo '<pre>';
var_dump($content);
$response = new Response($content, 'html');
// 将错误保存,访问方式 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);
Environment Variables
Server/Request Data
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
s=/Home/Goods/goodsList/id/0/brand_id/17/stock/1
REQUEST_URI
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.198
SERVER_ADDR
172.28.239.141
SERVER_NAME
sun.tpsns.com
PATH_INFO
/Home/Goods/goodsList/id/0/brand_id/17/stock/1
HTTP_CACHE_CONTROL
no-cache
HTTP_SEC_CH_UA
"Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
HTTP_SEC_CH_UA_PLATFORM
"Windows"
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_SEC_FETCH_MODE
navigate
HTTP_SEC_FETCH_DEST
document
HTTP_ACCEPT_ENCODING
gzip, deflate, br, zstd
REQUEST_TIME_FLOAT
1750969570.7038
Environment Variables
empty
ThinkPHP Constants
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
THINK_START_TIME
1750969570.7051
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/
ThinkPHP
V5.0.15
{ 十年磨一剑-为API开发设计的高性能框架 }