Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 146049800 bytes) in /var/www/html/system/media/gd.php on line 50 Warning: http_response_code(): Cannot set response code - headers already sent (output started at /var/www/html/system/media/gd.php:50) in /var/www/html/system/core/frontcontroller.php on line 123

Internal server error!

(error 500)

The site is experiencing some dificulties, please try again, if the problem persists please contact support.

Go to homepage
Error

Allowed memory size of 268435456 bytes exhausted (tried to allocate 146049800 bytes)

File
/var/www/html/system/media/gd.php on line 49
Code

$this->width = $info[0];

$this->height = $info[1];

$this->mime = $info['mime'] ?? '';

if ($this->mime == 'image/gif') {

$this->image = imagecreatefromgif($file);

} elseif ($this->mime == 'image/png') {

$this->image = imagecreatefrompng($file); // <==

imageinterlace($this->image, false);

} elseif ($this->mime == 'image/jpeg') {

$this->image = imagecreatefromjpeg($file);

} elseif ($this->mime == 'image/webp') {

$this->image = imagecreatefromwebp($file);

Trace

#0 /var/www/html/system/core/startup.php(335): Vvveb\System\Core\vErrorHandler(1, 'Allowed memory ...', '/var/www/html/s...', 50) #1 [internal function]: Vvveb\System\Core\fatalErrorHandler() #2 {main}