PHP: Calltoundefinedfunctionimageconvolution () Error

Source: Internet
Author: User
When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server. After debugging, it is found that the PHP exception is caused by the imageconvolution function. Query phpmanual and find that this function has been introduced in PHP versions later than 5.1. The PHP version of the server is 5.3.9. Check again

When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server. After debugging, it is found that the PHP exception is caused by the imageconvolution function. Query php manual and find that this function has been introduced in PHP versions later than 5.1. The PHP version of the server is 5.3.9. Check again

When you use PHP to implement an image server, images on the local server are uploaded normally. An error occurs when the code is uploaded to a CentOS server.

After debugging, it is found that the PHP exception is caused by the imageconvolution function.

Query php manual and find that this function has been introduced in PHP versions later than 5.1.

The PHP version of the server is 5.3.9.

Check the GD version information and find that the gd database in the local server is different from that in the CentOS server.

The local version is bundle.

GD Version bundled (2.0.34 compatible)

The service is a generic version.

It can be determined that it is a GD library installation problem.

The GD on the remote CentOS service is originally available, instead of compiling and installing the GD binding version together during PHP installation.

Solution: Use the with-gd option to re-compile and install php.


Iefreer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.