Image upload warning problem with php7.3
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?
-
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: 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:# rpm -qa | grep png libpng-1.2.49-2.el6_7.x86_64 libpng-devel-1.2.49-2.el6_7.x86_
0 -
Hi, I have checked it below are the package details and its version. [root@~]# rpm -qa | grep libpng libpng-1.5.13-8.el7.x86_64 libpng-devel-1.5.13-8.el7.x86_64
0 -
Do you see any more errors in the logs file other than what you reported, when an app tries to process the image? 0 -
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. 0
Please sign in to leave a comment.
Comments
4 comments