Post by harap » Fri Oct 13, 2023 11:39 am

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.
Last edited by harap on Fri Oct 13, 2023 9:48 pm, edited 1 time in total.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by harap » Fri Oct 13, 2023 2:16 pm

I compared the file line 63 both original and server, there are same. What can I do? Please advise how I can fix it. Thanks!

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by ADD Creative » Fri Oct 13, 2023 4:24 pm

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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Fri Oct 13, 2023 8:09 pm

ADD Creative wrote:
Fri Oct 13, 2023 4:24 pm
The warning means one of your images is invalid. You need to find the image and fix it.
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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by harap » Fri Oct 13, 2023 9:48 pm

Thank you all. It seems I used the image name with space caused the problem.

Active Member

Posts

Joined
Wed Sep 16, 2015 12:34 am
Location - United States

Post by mahdicomp » Tue Nov 19, 2024 3:34 pm

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

https://www.opencart.com/index.php?rout ... ebskygroup
vertification mobile module login and register


Newbie

Posts

Joined
Wed Aug 25, 2021 9:25 pm

Post by OSWorX » Tue Nov 19, 2024 5:00 pm

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 ? ?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: paulfeakins and 4 guests