Http error happens sometime with images

Posted in: Newspaper
Post count: 5

I have been using the theme and since I updated I get a http error when I upload images, Its not the size of image as it works sometimes but 9/10 times it fails.

I upgraded to the most recent version of the theme. I have never has this happen before using the theme.

I have done the upgrade on memory etc.

Any suggestions

Post count: 5

This is from my hosting service:

“It looks like it is something related to your theme which is causing the upload to exceed the 30 second max_execution_time limit set on the server. Unfortunately this falls outside of our scope of support and you may want to consider contacting the developer of the theme “Newspaper” to see if there is anyhting that can be done for the theme. The site is currently set to the theme Twentyfifteen and is able to upload normally.”

Post count: 108

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

Post count: 3

I had been having the same issue and 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/

  • This reply was modified 8 years by simond.
Post count: 5

Thanks thats the fix !! php7

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