wordpress upload media http error when size over 20~30KB

my wordpress will have http error when uploading media. After some testing that I found out all files above 30KB will have this error while size below 30KB will be more likely to be successfully uploaded (but not all the time)

I have done a few search and below fixed has already been done:

  1. configure php.ini


  2. in wp-config.php

    define(‘WP_MEMORY_LIMIT’, ‘1024M’)

  3. in theme functions.php

    add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );
    function change_graphic_lib($array) {
    return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );

  4. add in .htaccess

    SecFilterEngine Off
    SecFilterScanPOST Off

  5. add in httpd.conf

    MaxRequestLen 300000000

still the problem is the same, and I still could not upload files more than 20~30kb.

Also I noticed that I could not submit new post which have large text content, I guess it is due to the same issue that the size of the post request is limited.

However I have already changed the post_max_size=300M, so I don’t know what causes this issue now.

Read more here: wordpress upload media http error when size over 20~30KB

Leave a Reply

Your email address will not be published. Required fields are marked *