PHP 50
WP Http Fehler By micha on 8th December 2020 10:00:46 AM
  1. //Try to increase memory_limit (wp_config)
  2. //Try to change Imagick to GD lib (functions.php)
  3.  
  4. function hs_image_editor_default_to_gd( $editors ) {
  5.         $gd_editor = 'WP_Image_Editor_GD';
  6.         $editors = array_diff( $editors, array( $gd_editor ) );
  7.         array_unshift( $editors, $gd_editor );
  8.         return $editors;
  9. }
  10. add_filter( 'wp_image_editors', 'hs_image_editor_default_to_gd' );

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.