How to Fix the HTTP Image Upload Error in WordPress

How to Fix the HTTP Image Upload Error in WordPress

HTTP image upload error is a common error in WordPress while uploading media in WordPress. You can face the error while you are trying to upload an image or other files using a built-in media uploader. Moreover, if you are getting this error, then this article will fix the issue.

Need helps on WordPress, Feel free to Contact Me

All Possible Solutions to Fix the HTTP image upload error in WordPress-

  1. Check HTTP Error Type: Sometimes, the error may happen temporarily. So, please try again after a few minutes.
  2. Increase WordPress Memory Limit: Increase memory limit by adding the following codes in the wp-config.php file-
<?php     

    define( 'WP_MEMORY_LIMIT', '256M' );


3. Change Image Editor Library: Set the GD library as your default image editor. To do this, add the following codes in the functions.php file-

function webakstop_default_img_upload( $editors ) {        
    $gd_editor = 'WP_Image_Editor_GD';        
    $editors = array_diff( $editors, 
    array( $gd_editor ) );        
    array_unshift( $editors, $gd_editor );        
    return $editors;
}
add_filter( 'wp_image_editors', 'webakstop_default_img_upload' );

4. Edit .htaccess File: If all the above solutions fail, add the following codes to your site's .htaccess file-

SetEnv MAGICK_THREAD_LIMIT 1

Read the whole article from Webackstop.com


Jasim Peringattuthodi

Learning Management System Administrator at Dubai Health Authority

2 å¹´

SetEnv MAGICK_THREAD_LIMIT 1 giving a 500 server Error...what to do?

赞
回复

要查看或添加评论,请登录

MD Zakaria Islam的更多文章

  • How to Show Photo Comparison in Gutenberg

    How to Show Photo Comparison in Gutenberg

    Photo comparison shows the comparison between two photos so that users can easily understand the difference between…

  • How to Fix the 500 Internal Server Error in WordPress

    How to Fix the 500 Internal Server Error in WordPress

    Internal Server Error sometimes called 500 Internal Server Error is a common error. Are you also facing the Internal…

  • How to Fix WordPress Updating or Publishing Failed Error

    How to Fix WordPress Updating or Publishing Failed Error

    Sometimes when you are editing your post or page, you may see the updating or publishing failed error on your WordPress…

  • How to fix Missing Temporary Folder Error in WordPress

    How to fix Missing Temporary Folder Error in WordPress

    Are you facing an error in WordPress which is saying that “Missing Temporary Folder”? The missing temporary folder…

  • How to create pagination for the Custom Post Type

    How to create pagination for the Custom Post Type

    If you are trying to create a custom post type for your site that allows you to showcase custom content and you are…

  • How to Enable Automatic Updates in WordPress

    How to Enable Automatic Updates in WordPress

    To enable automatic updates in WordPress, I will show the process that can be done manually. To do this, first, you…

    1 条评论
  • Why should you Speed up your WordPress Site

    Why should you Speed up your WordPress Site

    The importance of speed up a WordPress site is untold. Fast loading pages improve user experience, increase your page…

  • How to Customize WordPress Excerpt?Length

    How to Customize WordPress Excerpt?Length

    WordPress Excerpt displays a portion of the whole content. Usually, in the case of archive page, this excerpt is used…

  • How to Fix Critical Error in WordPress

    How to Fix Critical Error in WordPress

    It is one best common issue that you can face at any time, yes, I am talking about the critical error in WordPress…

  • How to Add Viewport Meta Tag in WordPress Genesis Child theme

    How to Add Viewport Meta Tag in WordPress Genesis Child theme

    A responsive viewport meta tag is an essential feature of making a site responsive. Nowadays, responsiveness plays an…

社区洞察

其他会员也浏览了