I am seeing PHP warnings in my opencart admin error_log. Opencart version is 3.0.3.5 default theme . Php version is 7.3
PHP Warning:
Code: Select all
PHP Warning: imagecopyresampled() expects parameter 1 to be resource, bool given in /home/xxx/public_html/xyz/system/library/image.php on line 182
Code: Select all
imagecopyresampled($this->image, $image_old, $xpos, $ypos, 0, 0, $new_width, $new_height, $this->width, $this->height);
Code: Select all
PHP Warning: imagecolorallocate() expects parameter 1 to be resource, bool given in /home/xxx/public_html/xyz/system/library/image.php on line 177
Code: Select all
$background = imagecolorallocate($this->image, 255, 255, 255);
Code: Select all
PHP Warning: imagefilledrectangle() expects parameter 1 to be resource, bool given in /home/xxx/public_html/xyz/system/library/image.php on line 180
Code: Select all
imagefilledrectangle($this->image, 0, 0, $width, $height, $background);
Code: Select all
PHP Warning: imagecreatetruecolor(): Invalid image dimensions in /home/xxx/public_html/xyz/system/library/image.php on line 169
Code: Select all
$this->image = imagecreatetruecolor($width, $height);