Title: Gallery crash
Last modified: September 1, 2016

---

# Gallery crash

 *  [crystyan18](https://wordpress.org/support/users/crystyan18/)
 * (@crystyan18)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/gallery-crash/)
 * My wordpress gallery crash and i don’t know how ti fix that…
    Can somebody help
   to fix this [http://prntscr.com/brmsm5](http://prntscr.com/brmsm5)

Viewing 1 replies (of 1 total)

 *  [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * (@cedcommerce)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/gallery-crash/#post-7563207)
 * Hello crystyan18,
    please add this code in functions.php file.
 *     ```
       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' );
       ```
   
 * Hope this will solve your problem.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Gallery crash’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/gallery-crash/#post-7563207)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
