Page 1 of 1

imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Mon Aug 15, 2022 3:12 pm
by Vector224
Hi there,

I am having some issues with my error report file in my OpenCart 2.3.0.2 I am also using Journal theme 3, and I would appreciate it if someone can help me to fix the issues I have. :D

Code: Select all

2022-08-15 7:09:07 - PHP Warning:  imagecreatetruecolor(): Invalid image dimensions in  /public_html/system/library/image.php on line 105

Code: Select all

2022-08-15 7:09:07 - PHP Warning:  imagecolorallocate() expects parameter 1 to be resource, boolean given in public_html/system/library/image.php on line 113

Code: Select all

2022-08-15 7:09:07 - PHP Warning:  imagefilledrectangle() expects parameter 1 to be resource, boolean given in /public_html/system/library/image.php on line 116

Code: Select all

2022-08-15 7:09:07 - PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, boolean given in /public_html/system/library/image.php on line 118

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Mon Aug 15, 2022 6:07 pm
by ADD Creative
This sort of error is usually caused by a bad image size setting in your theme or an extension. Check all your theme and extension settings. Maybe reenter and resave them.

If that doesn't help, try to work out which one is causing the error and contact the developer.

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Mon Aug 15, 2022 9:42 pm
by JNeuhoff
You may also have to contact the Journal support on this, a standard OpenCart doesn't have this issue.

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Wed Aug 17, 2022 10:17 pm
by Vector224
Hello guys. Thank you for your replies the problem is my support period has ended so I rather fix it myself. Is there any way I can track where the issue is and fix it?

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Wed Aug 17, 2022 10:33 pm
by ADD Creative
ADD Creative wrote:
Mon Aug 15, 2022 6:07 pm
Check all your theme and extension settings. Maybe reenter and resave them.
Did you try the above?

If that didn't help try to work out when the error occurs. You could disable extensions and modules one by one.

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Sun Nov 27, 2022 9:34 pm
by Vector224
Hello, I am still unable to solve it, any help would be highlly appreciated

Re: imagecreatetruecolor(): Invalid image dimensions & expects parameter 1 to be resource, boolean

Posted: Sun Nov 27, 2022 10:58 pm
by straightlight
Vector224 wrote:
Sun Nov 27, 2022 9:34 pm
Hello, I am still unable to solve it, any help would be highlly appreciated
As mentioned on a previous post, you would need to contact Journal support since we do not support Journal on the forum.