Hi,
Firstly, i am sorry for my English. I am using Opencart 3.0.3.2 version. I have 2 problems:
* White color appears when I upload a picture.
* When I go into some products and click the save button, all the information on the links page is deleted. In some products, I cannot make any changes (such as adding or removing). It also works normally in some products.
I would be glad if you help.
Thank you.
Firstly, i am sorry for my English. I am using Opencart 3.0.3.2 version. I have 2 problems:
* White color appears when I upload a picture.
* When I go into some products and click the save button, all the information on the links page is deleted. In some products, I cannot make any changes (such as adding or removing). It also works normally in some products.
I would be glad if you help.
Thank you.
My opencart error.log for image:
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): '/xxx/public_html/image/catalog/uploads/test-logo.png' is not a valid PNG file in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /xxx/public_html/system/library/image.php on line 182
2021-02-07 10:36:01 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /xxx/public_html/system/library/image.php on line 183
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecreatefrompng(): '/xxx/public_html/image/catalog/uploads/test-logo.png' is not a valid PNG file in /xxx/public_html/system/library/image.php on line 45
2021-02-07 10:36:01 - PHP Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /xxx/public_html/system/library/image.php on line 182
2021-02-07 10:36:01 - PHP Warning: imagedestroy() expects parameter 1 to be resource, boolean given in /xxx/public_html/system/library/image.php on line 183
Well there is something wrong with your PNG file according to the warning.
Try and replace that file with a jpg and see what happens
Try and replace that file with a jpg and see what happens
Also ensure to use a reasonable image size. Otherwise, you may encounter similar problems.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Like others have said, this could be related to your images or do you just mean the white borders?
Probably mod_security - contact your host.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Who is online
Users browsing this forum: No registered users and 25 guests