Http Error When Uploading Images To WordPress

Http Error When Uploading Images To WordPress

Increase WordPress Memory Limit

You can do this by adding the following code to your wp-config.php file.

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

Change Image Editor Library Used by WordPress

You can do this by simply adding this code to your theme’s functions.php file or a site-specific plugin.

function wpb_image_editor_default_to_gd( $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', 'wpb_image_editor_default_to_gd' );

Using The .htaccess Method

  SecFilterEngine Off  SecFilterScanPOST Off    # Exclude the file upload and WP CRON scripts from authentication      Satisfy Any     Order allow,deny     Allow from all     Deny from none
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

Leave a Reply

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

(Required)