Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1622016 bytes) in /www/wwwroot/154.218.168.34/vendor/getgrav/image/Gregwar/Image/Adapter/GD.php on line 52
Crikey! There was an error...
Whoops \ Exception \ ErrorException (E_ERROR)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 1622016 bytes) Whoops\Exception\ErrorException thrown with message "Allowed memory size of 134217728 bytes exhausted (tried to allocate 1622016 bytes)" Stacktrace: #3 Whoops\Exception\ErrorException in /www/wwwroot/154.218.168.34/vendor/getgrav/image/Gregwar/Image/Adapter/GD.php:52 #2 Whoops\Run:handleError in /www/wwwroot/154.218.168.34/vendor/filp/whoops/src/Whoops/Run.php:218 #1 Whoops\Run:handleShutdown in /www/wwwroot/154.218.168.34/system/src/Grav/Common/Errors/SystemFacade.php:18 #0 Grav\Common\Errors\SystemFacade:handleShutdown in [internal]:0
Stack frames (4)
3
Whoops\Exception\ErrorException
/vendor/getgrav/image/Gregwar/Image/Adapter/GD.php52
2
Whoops\Run handleError
/vendor/filp/whoops/src/Whoops/Run.php218
1
Whoops\Run handleShutdown
/system/src/Grav/Common/Errors/SystemFacade.php18
0
Grav\Common\Errors\SystemFacade handleShutdown
[internal]0
/www/wwwroot/154.218.168.34/vendor/getgrav/image/Gregwar/Image/Adapter/GD.php
        $w = $this->width();
        $h = $this->height();
        $n = imagecreatetruecolor($w, $h);
        imagefill($n, 0, 0, ImageColor::gdAllocate($this->resource, $background));
        imagecopyresampled($n, $this->resource, 0, 0, 0, 0, $w, $h, $w, $h);
        imagedestroy($this->resource);
        $this->resource = $n;
        return $this;
    }
    protected function doResize($bg, int $target_width, int $target_height, int $new_width, int $new_height)
    {
        $width = $this->width();
        $height = $this->height();
        $n = imagecreatetruecolor($target_width, $target_height);
        if ($bg !== 'transparent') {
            imagefill($n, 0, 0, ImageColor::gdAllocate($this->resource, $bg));
        } else {
            imagealphablending($n, false);
            $color = ImageColor::gdAllocate($this->resource, 'transparent');
            imagefill($n, 0, 0, $color);
            imagesavealpha($n, true);
        }
        imagecopyresampled($n, $this->resource, (int) (($target_width - $new_width) / 2), (int) (($target_height - $new_height) / 2), 0, 0, $new_width, $new_height, $width, $height);
        imagedestroy($this->resource);
        $this->resource = $n;
        return $this;
    }
    public function crop($x, $y, $width, $height)
    {
        $destination = imagecreatetruecolor($width, $height);
        imagealphablending($destination, false);
        imagesavealpha($destination, true);
        imagecopy($destination, $this->resource, 0, 0, (int) $x, (int) $y, $this->width(), $this->height());
        imagedestroy($this->resource);
        $this->resource = $destination;
        return $this;
    }
    public function negate()
    {
        imagefilter($this->resource, IMG_FILTER_NEGATE);
Arguments
  1. "Allowed memory size of 134217728 bytes exhausted (tried to allocate 1622016 bytes)"
    
/www/wwwroot/154.218.168.34/vendor/filp/whoops/src/Whoops/Run.php
                    return true;
                }
            }
            $exception = new ErrorException($message, $level, $level, $file, $line);
            if ($this->canThrowExceptions) {
                throw $exception;
            } else {
                $this->handleException($exception);
            }
            return true;
        }
        return false;
    }
    public function handleShutdown()
    {
        $this->canThrowExceptions = false;
        $error = $this->system->getLastError();
        if ($error && Misc::isLevelFatal($error['type'])) {
            $this->allowQuit = false;
            $this->handleError($error['type'], $error['message'], $error['file'], $error['line']);
        }
    }
    public function setInspectorFactory(InspectorFactoryInterface $factory)
    {
        $this->inspectorFactory = $factory;
    }
    public function addFrameFilter($filterCallback)
    {
        if (!is_callable($filterCallback)) {
            throw new \InvalidArgumentException(sprintf("A frame filter must be of type callable, %s type given.", gettype($filterCallback)));
        }
        $this->frameFilters[] = $filterCallback;
        return $this;
    }
    private function getInspector($exception)
    {
        return $this->inspectorFactory->create($exception);
    }
    private function resolveHandler($handler)
    {
/www/wwwroot/154.218.168.34/system/src/Grav/Common/Errors/SystemFacade.php
<?php
 
namespace Grav\Common\Errors;
 
class SystemFacade extends \Whoops\Util\SystemFacade
{
    protected $whoopsShutdownHandler;
    public function registerShutdownFunction(callable $function)
    {
        $this->whoopsShutdownHandler = $function;
        register_shutdown_function([$this, 'handleShutdown']);
    }
    public function handleShutdown()
    {
        $error = $this->getLastError();
        if ($error && !($error['type'] & (E_CORE_WARNING | E_CORE_ERROR))) {
            $handler = $this->whoopsShutdownHandler;
            $handler();
        }
    }
    public function setHttpResponseCode($httpCode)
    {
        if (!headers_sent()) {
            header_remove('location');
            header_remove('Content-Encoding');
        }
        return http_response_code($httpCode);
    }
}
[internal]

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"www"
HOME
"/home/www"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_HOST
"zhn-lanjingtiyu.com"
PATH_INFO
""
REDIRECT_STATUS
"200"
SERVER_NAME
"154.218.168.34"
SERVER_PORT
"443"
SERVER_ADDR
"154.218.169.41"
REMOTE_PORT
"63656"
REMOTE_ADDR
"216.73.216.254"
SERVER_SOFTWARE
"nginx/1.22.1"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
REQUEST_SCHEME
"https"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/www/wwwroot/154.218.168.34"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/tag:%E4%BD%93%E8%82%B2%E5%8D%A1%E5%B0%94%E5%BE%B7%E5%85%8B%E5%AE%A3%E5%B8%83%E4%B8%8E%E6%B7%B1%E8%B6%B3%E8%A7%A3%E7%BA%A6"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
SCRIPT_FILENAME
"/www/wwwroot/154.218.168.34/index.php"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1749360317.6205
REQUEST_TIME
1749360317
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler