Hello,
I am running OC 4.0.2.3 and php8.1. Image manager the 2nd...pages are unable to open. Got the following error log:
2023-10-12 20:16:53 - PHP Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile File: /home/SorryHidedmysite.com/system/library/image.php Line: 63
How to fix it? Please help. Thanks in advance.
I am running OC 4.0.2.3 and php8.1. Image manager the 2nd...pages are unable to open. Got the following error log:
2023-10-12 20:16:53 - PHP Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile File: /home/SorryHidedmysite.com/system/library/image.php Line: 63
How to fix it? Please help. Thanks in advance.
Last edited by harap on Fri Oct 13, 2023 9:48 pm, edited 1 time in total.
The warning means one of your images is invalid. You need to find the image and fix it.
It could also be that you have display errors on that that warning is causing the problem. Try making sure display errors is of in all there places.
It could also be that you have display errors on that that warning is causing the problem. Try making sure display errors is of in all there places.
Yep, as above it sounds likely that one or more of your images use the wrong colour profile. This can be fixed in Photoshop and then the image re-saved.ADD Creative wrote: ↑Fri Oct 13, 2023 4:24 pmThe warning means one of your images is invalid. You need to find the image and fix it.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
for resolve this problem edit
system/library/image.php
in line 63
replace $this->image = imagecreatefrompng($file);
with $this->image = @imagecreatefrompng($file);
this warning solved
system/library/image.php
in line 63
replace $this->image = imagecreatefrompng($file);
with $this->image = @imagecreatefrompng($file);
this warning solved
https://www.opencart.com/index.php?rout ... ebskygroup
vertification mobile module login and register
Just to summarize:
1. using the @ to "hide" errors is one of the most stupid suggestions since php exists
2. using spaces, special chars like ?=)(/&% etc. .. and Umlauts like ÄÖÜäöü falls in the same category
Whenever images are used, check following before uploading into your store:
A. size - bigger than 120 kib an image should not be (then it has a format like 1200 x 1200 which is big enough for every store!)
B. title/name - see above # 2
Operating a website or webstore require a (litte technical) understanding how webservices, servers and services are working.
You cannot drive a car without knowing the basics - or do you ? ?
1. using the @ to "hide" errors is one of the most stupid suggestions since php exists
2. using spaces, special chars like ?=)(/&% etc. .. and Umlauts like ÄÖÜäöü falls in the same category
Whenever images are used, check following before uploading into your store:
A. size - bigger than 120 kib an image should not be (then it has a format like 1200 x 1200 which is big enough for every store!)
B. title/name - see above # 2
Operating a website or webstore require a (litte technical) understanding how webservices, servers and services are working.
You cannot drive a car without knowing the basics - or do you ? ?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: paulfeakins and 4 guests