string(63121) "


    
    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/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  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/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  4. at File->getCacheKey('sql_b326084faf64066a...', true) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/cache/driver/File.php line 149 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  5. at File->set('sql_b326084faf64066a...', [['goods_id' => 283, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 284, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 285, 'cat_id1' => 100, 'cat_id2' => 102, ...], ...], 31104000) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Cache.php line 148 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  6. at Cache::set('sql_b326084faf64066a...', [['goods_id' => 283, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 284, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 285, 'cat_id1' => 100, 'cat_id2' => 102, ...], ...], 31104000) in /www/wwwroot/sun.tpsns.com/thinkphp/helper.php line 673 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  7. at S('sql_b326084faf64066a...', [['goods_id' => 283, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 284, 'cat_id1' => 100, 'cat_id2' => 102, ...], ['goods_id' => 285, 'cat_id1' => 100, 'cat_id2' => 102, ...], ...], 31104000) in /www/wwwroot/sun.tpsns.com/runtime/temp/b963886e08bc80223a6b7633c915abb3.php line 659 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  8. at include('/www/wwwroot/sun.tps...') in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/template/driver/File.php line 50 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  9. at File->read('/www/wwwroot/sun.tps...', ['action' => 'search', 'template_now_time' => 1746643994, 'tpshop_config' => ['express_express_switch' => '0', 'express_kd100_key' => 'ZqppWbRv533', 'express_kdniao_id' => '1649559', ...], ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Template.php line 200 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  10. at Template->fetch('./template/pc/rainbo...', ['action' => 'search', 'template_now_time' => 1746643994, 'tpshop_config' => ['express_express_switch' => '0', 'express_kd100_key' => 'ZqppWbRv533', 'express_kdniao_id' => '1649559', ...], ...], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/view/driver/Think.php line 89 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  11. at Think->fetch('', ['action' => 'search', 'template_now_time' => 1746643994, 'tpshop_config' => ['express_express_switch' => '0', 'express_kd100_key' => 'ZqppWbRv533', 'express_kdniao_id' => '1649559', ...], ...], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/View.php line 163 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  12. at View->fetch('', [], [], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Controller.php line 187 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  13. at Controller->fetch() in /www/wwwroot/sun.tpsns.com/application/home/controller/Goods.php line 578 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  14. at Goods->search()
  15. at ReflectionMethod->invokeArgs(object(Goods), []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 348 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  16. at App::invokeMethod([object(Goods), 'search'], []) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 614 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  17. at App::module(['Home', 'Goods', 'search'], ['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/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  18. at App::exec(['type' => 'module', 'module' => ['Home', 'Goods', 'search']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/App.php line 142 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  19. at App::run() in /www/wwwroot/sun.tpsns.com/thinkphp/start.php line 19 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
  20. at require('/www/wwwroot/sun.tps...') in /www/wwwroot/sun.tpsns.com/index.php line 137 请求方式GET 请求地址 /Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0

Environment Variables

GET Data

brand_id
26
price
120-150
q
主食
recommend
0
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/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
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
18.118.122.147
REMOTE_PORT
36994
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/Home/Goods/search/brand_id/26/price/120-150/q/主食/recommend/0
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
1746643994.5622
REQUEST_TIME
1746643994
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
1746643994
THINK_VERSION
5.0.15
THINK_START_TIME
1746643994.5636
THINK_START_MEM
321792
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
search
PREFIX
tp_
SESSION_ID
SEARCHD_COMMAND_SEARCH
0
SEARCHD_COMMAND_EXCERPT
1
SEARCHD_COMMAND_UPDATE
2
SEARCHD_COMMAND_KEYWORDS
3
SEARCHD_COMMAND_PERSIST
4
SEARCHD_COMMAND_STATUS
5
SEARCHD_COMMAND_FLUSHATTRS
7
VER_COMMAND_SEARCH
281
VER_COMMAND_EXCERPT
259
VER_COMMAND_UPDATE
258
VER_COMMAND_KEYWORDS
256
VER_COMMAND_STATUS
256
VER_COMMAND_QUERY
256
VER_COMMAND_FLUSHATTRS
256
SEARCHD_OK
0
SEARCHD_ERROR
1
SEARCHD_RETRY
2
SEARCHD_WARNING
3
SPH_MATCH_ALL
0
SPH_MATCH_ANY
1
SPH_MATCH_PHRASE
2
SPH_MATCH_BOOLEAN
3
SPH_MATCH_EXTENDED
4
SPH_MATCH_FULLSCAN
5
SPH_MATCH_EXTENDED2
6
SPH_RANK_PROXIMITY_BM25
0
SPH_RANK_BM25
1
SPH_RANK_NONE
2
SPH_RANK_WORDCOUNT
3
SPH_RANK_PROXIMITY
4
SPH_RANK_MATCHANY
5
SPH_RANK_FIELDMASK
6
SPH_RANK_SPH04
7
SPH_RANK_EXPR
8
SPH_RANK_TOTAL
9
SPH_SORT_RELEVANCE
0
SPH_SORT_ATTR_DESC
1
SPH_SORT_ATTR_ASC
2
SPH_SORT_TIME_SEGMENTS
3
SPH_SORT_EXTENDED
4
SPH_SORT_EXPR
5
SPH_FILTER_VALUES
0
SPH_FILTER_RANGE
1
SPH_FILTER_FLOATRANGE
2
SPH_ATTR_INTEGER
1
SPH_ATTR_TIMESTAMP
2
SPH_ATTR_ORDINAL
3
SPH_ATTR_BOOL
4
SPH_ATTR_FLOAT
5
SPH_ATTR_BIGINT
6
SPH_ATTR_STRING
7
SPH_ATTR_MULTI
1073741825
SPH_ATTR_MULTI64
1073741826
SPH_GROUPBY_DAY
0
SPH_GROUPBY_WEEK
1
SPH_GROUPBY_MONTH
2
SPH_GROUPBY_YEAR
3
SPH_GROUPBY_ATTR
4
SPH_GROUPBY_ATTRPAIR
5
"
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(53947) "


    
    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

brand_id
26
price
120-150
q
主食
recommend
0
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/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/Home/Goods/search/brand_id/26/price/120-150/q/%E4%B8%BB%E9%A3%9F/recommend/0
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
18.118.122.147
REMOTE_PORT
36994
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/Home/Goods/search/brand_id/26/price/120-150/q/主食/recommend/0
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
1746643994.5622
REQUEST_TIME
1746643994
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
1746643994
THINK_VERSION
5.0.15
THINK_START_TIME
1746643994.5636
THINK_START_MEM
321792
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
search
PREFIX
tp_
SESSION_ID
SEARCHD_COMMAND_SEARCH
0
SEARCHD_COMMAND_EXCERPT
1
SEARCHD_COMMAND_UPDATE
2
SEARCHD_COMMAND_KEYWORDS
3
SEARCHD_COMMAND_PERSIST
4
SEARCHD_COMMAND_STATUS
5
SEARCHD_COMMAND_FLUSHATTRS
7
VER_COMMAND_SEARCH
281
VER_COMMAND_EXCERPT
259
VER_COMMAND_UPDATE
258
VER_COMMAND_KEYWORDS
256
VER_COMMAND_STATUS
256
VER_COMMAND_QUERY
256
VER_COMMAND_FLUSHATTRS
256
SEARCHD_OK
0
SEARCHD_ERROR
1
SEARCHD_RETRY
2
SEARCHD_WARNING
3
SPH_MATCH_ALL
0
SPH_MATCH_ANY
1
SPH_MATCH_PHRASE
2
SPH_MATCH_BOOLEAN
3
SPH_MATCH_EXTENDED
4
SPH_MATCH_FULLSCAN
5
SPH_MATCH_EXTENDED2
6
SPH_RANK_PROXIMITY_BM25
0
SPH_RANK_BM25
1
SPH_RANK_NONE
2
SPH_RANK_WORDCOUNT
3
SPH_RANK_PROXIMITY
4
SPH_RANK_MATCHANY
5
SPH_RANK_FIELDMASK
6
SPH_RANK_SPH04
7
SPH_RANK_EXPR
8
SPH_RANK_TOTAL
9
SPH_SORT_RELEVANCE
0
SPH_SORT_ATTR_DESC
1
SPH_SORT_ATTR_ASC
2
SPH_SORT_TIME_SEGMENTS
3
SPH_SORT_EXTENDED
4
SPH_SORT_EXPR
5
SPH_FILTER_VALUES
0
SPH_FILTER_RANGE
1
SPH_FILTER_FLOATRANGE
2
SPH_ATTR_INTEGER
1
SPH_ATTR_TIMESTAMP
2
SPH_ATTR_ORDINAL
3
SPH_ATTR_BOOL
4
SPH_ATTR_FLOAT
5
SPH_ATTR_BIGINT
6
SPH_ATTR_STRING
7
SPH_ATTR_MULTI
1073741825
SPH_ATTR_MULTI64
1073741826
SPH_GROUPBY_DAY
0
SPH_GROUPBY_WEEK
1
SPH_GROUPBY_MONTH
2
SPH_GROUPBY_YEAR
3
SPH_GROUPBY_ATTR
4
SPH_GROUPBY_ATTRPAIR
5
"
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 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(90): think\Error::appException(Object(think\exception\ErrorException)) #5 [internal function]: think\Error::appShutdown() #6 {main} thrown in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190