can't upload images i hvae Http error

Posted in: Newspaper
Post count: 3

When i tried upload image i have http error i tried all suggestion but still showing HTTP error

https://docs.presscustomizr.com/article/229-fixing-errors-when-uploading-images-in-wordpress
http://www.wpbeginner.com/wp-tutorials/how-to-fix-image-upload-issue-in-wordpress/

I have never has this happen before using the theme and the hosting provider couldn’t help

Thanks

Post count: 108

Update your website php version to 7.0 through php selector on your hosting..

Post count: 3

thank McDohl the issue is fixed by adding this code to theme’s functions.php file

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’ );

https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-http-image-upload-error-in-wordpress/

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.