Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system/library/image.php imagecreatetruecolor error #13111

Closed
cgcmart opened this issue Dec 8, 2023 · 1 comment
Closed

system/library/image.php imagecreatetruecolor error #13111

cgcmart opened this issue Dec 8, 2023 · 1 comment

Comments

@cgcmart
Copy link

cgcmart commented Dec 8, 2023

$this->image = imagecreatetruecolor($width, $height);

php error log:
imagecreatetruecolor(): Argument #1 ($width) must be greater than 0: in /home/cgcmart/public_html/system/library/image.php on line 197

causes admin control panel category list and product list where have image column by click item edit button.

@cgcmart cgcmart changed the title system/library/image.php imagecreattruvcolor error system/library/image.php imagecreatetruecolor error Dec 8, 2023
@cgcmart
Copy link
Author

cgcmart commented Dec 8, 2023

Fixed by by modification line 167 - line 170

	public function resize(int $width, int $height) {
		if (!($width > 0) || !($height > 0)) {
			return false;
		}

@cgcmart cgcmart closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant