string(37000) "


    
    System Error
    
    
    


    


[1] ErrorException in /www/wwwroot/sun.tpsns.com/vendor/topthink/think-image/src/Image.php line 362 请求方式GET 请求地址 /index.php/home/Goods/goodsInfo/id/228/store_id/20.html

Allowed memory size of 134217728 bytes exhausted (tried to allocate 2560001 bytes)

  1. $x = $this->info['width'] - $w;
  2. $y = $this->info['height'] - $h;
  3. $posx = ($width - $w * $scale) / 2;
  4. $posy = ($height - $h * $scale) / 2;
  5. do {
  6. //创建新图像
  7. $img = imagecreatetruecolor($width, $height);
  8. // 调整默认颜色
  9. $color = imagecolorallocate($img, 255, 255, 255);
  10. imagefill($img, 0, 0, $color);
  11. //裁剪
  12. imagecopyresampled($img, $this->im, $posx, $posy, $x, $y, $neww, $newh, $w, $h);
  13. imagedestroy($this->im); //销毁原图
  14. $this->im = $img;
  15. } while (!empty($this->gif) && $this->gifNext());
  16. $this->info['width'] = (int) $width;
  17. $this->info['height'] = (int) $height;
  18. return $this;
  19. /* 固定 */

Environment Variables

GET Data

id
228
store_id
20
POST Data
empty
Files
empty

Cookies

PHPSESSID
vefh16bneasov1m400pmap83j1
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/goodsInfo/id/228/store_id/20.html
DOCUMENT_URI
/index.php/home/Goods/goodsInfo/id/228/store_id/20.html
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
3.145.52.101
REMOTE_PORT
55685
SERVER_ADDR
172.28.239.141
SERVER_PORT
443
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/home/Goods/goodsInfo/id/228/store_id/20.html
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
HTTP_COOKIE
PHPSESSID=vefh16bneasov1m400pmap83j1
PHP_SELF
/index.php/home/Goods/goodsInfo/id/228/store_id/20.html
REQUEST_TIME_FLOAT
1746523059.8145
REQUEST_TIME
1746523059
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
1746523059
THINK_VERSION
5.0.15
THINK_START_TIME
1746523059.8169
THINK_START_MEM
322520
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
goodsInfo
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 /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