0

I am getting an HTTP ERROR when trying to upload images from the wordpress backend. Tried a few suggestions of finding the php.ini file but unable to do so via SSH.

Also tried adding the below code

function ms_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', 'ms_image_editor_default_to_gd' );

Which did not help.

I am using an Ubuntu instance on Amazon Lightsail, Any help will be appreciated.

  • $gd_editor = 'WP_Image_Editor_GD'; $editors = array_diff( $editors, array( $gd_editor ) ); array_unshift( $editors, $gd_editor ); return $editors; } Did the job –  Sep 11 '17 at 22:14
  • Could you share your apache logs to check the HTTP ERROR better? – Silvio Fernandez Sep 12 '17 at 08:29

0 Answers0