Why does an HTTP error occur when uploading images to WordPress?

Source: Internet
Author: User

There are many reasons for this error,

1. Permission settings

For server security settings, modify the httpd. conf file of the server and delete the mod_security section.

2. Restrictions on image Upload

3. Image processing plug-in, because you have not installed the image processing library or enabled the relevant PHP functions

3.1.PHP image processing library is not installed or set incorrectly (GD, ImageMagick, etc. are not installed .)

Install the GD Library

Debian

Apt-get install php5-gd

Yum install php-gd

Suse

Yast-I php5_gd

After the installation is complete, restart the PHP or web server.

Service apache2 restart

4. functions. php functions

5. Add a line to the. htaccess file:
Log on to the host control panel and find the. htaccess file. Add two lines of code:
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
 
There are many problems. Here we will not introduce them one by one.
My problem is very simple. It belongs to the third category in the list. Here I install the DX-Watermark Image Auto Watermark plug-in, so I cannot upload images normally. the problem is resolved in 3.1. after installation, restart nginx or apache to upload images and process images automatically.

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.