Image upload warning problem with php7.3

Operating System & Version
CENTOS 7.9
cPanel & WHM Version
v92.0.7

nisamudeen97

Well-Known Member
Jul 7, 2010
59
5
58
Cochin
cPanel Access Level
Root Administrator
Hi,

One of image app processing is not working as expected, we could see the below warning message in apache log while processing it. Mod_security rule is turned off, no disable_function for php. Centos 7 64bit OS with WHM

[cgi:error] AH01215: libpng warning: Interlace handling should be turned on when using png_read_image: /usr/local/cpanel/cgi-sys/ea-php73,

Any possible options to fix it?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,258
2,426
363
cPanel Access Level
Root Administrator
Hey there! Is it possible the version of libpng is too old to work well with your application? You can run the following command on your machine to check this:

Code:
rpm -qa | grep libpng
as the name of the package installed will also be the version number. For example, I checked a CloudLinux 6 machine just now and found this:

Code:
# rpm -qa | grep png
libpng-1.2.49-2.el6_7.x86_64
libpng-devel-1.2.49-2.el6_7.x86_
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
562
259
138
IN
cPanel Access Level
Root Administrator
Do you see any more errors in the logs file other than what you reported, when an app tries to process the image?
 
  • Like
Reactions: cPRex

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,258
2,426
363
cPanel Access Level
Root Administrator
Thanks for that information. The output wouldn't necessarily mean anything to *me* but you could use that to check the requirements for the tool you are using for those images and see what is compatible.

As @kodeslogic mentioned, any other errors around that time in the logs might be helpful as well. If you can watch the Apache logs at /etc/apache2/logs/error_log, or if you can open cPanel >> Errors while performing that work on the site, that may give you more detail on the issue.
 
  • Like
Reactions: kodeslogic