php - HTTP ERROR when trying to upload images from the wordpress -


i getting http error when trying upload images wordpress backend. tried few suggestions of finding php.ini file unable via ssh.

also tried adding 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 using ubuntu instance on amazon lightsail, appreciated.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -