Title: &quot;undefined method WP_Error::resize()&quot;
Last modified: August 24, 2016

---

# "undefined method WP_Error::resize()"

 *  [davidharcombe](https://wordpress.org/support/users/davidharcombe/)
 * (@davidharcombe)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/)
 * I have WordPress 4.1.1 and MaxGalleria 3.1.5. Every attempt to display a gallery
   results in this:
 * `Call to undefined method WP_Error::resize() in /var/www/wordpress/wp-content/
   plugins/maxgalleria/maxgalleria-image-gallery.php on line 636, referer: http://
   10.211.55.3/wordpress/`
 * Any fix?
 * [https://wordpress.org/plugins/maxgalleria/](https://wordpress.org/plugins/maxgalleria/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980224)
 * Hi davidharcombe,
 * If you would like to have me log into your site and see what going on, you can
   send me a temporary admin username and password to [alan@maxfoundry.com](https://wordpress.org/support/topic/undefined-method-wp_errorresize/alan@maxfoundry.com?output_format=md)
 * Alan
 *  [3rdCoast](https://wordpress.org/support/users/3rdcoast/)
 * (@3rdcoast)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980330)
 * Same issue here. Any suggestions?
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980331)
 * 3rdCoast,
 * Since this was reported we have released version 3.1.6. I’m not sure if this 
   helps since I have not seen this warning when I run Maxgalleria. Also check that
   you do not have WP_DEBUG set to true in your wp-config.php file. If you would
   like for me to look at what is going on at your site you can send me a temporary
   admin username and password to [alan@maxfoundry.com](https://wordpress.org/support/topic/undefined-method-wp_errorresize/alan@maxfoundry.com?output_format=md).
 * Alan
 *  [3rdCoast](https://wordpress.org/support/users/3rdcoast/)
 * (@3rdcoast)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980332)
 * Hi, Alan.
 * I checked the versions we are currently using and are using WordPress 4.1.2 with
   Maxgalleria 3.1.6. We will send you login information. Thanks for helping us 
   troubleshoot this.
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980334)
 * 3rdCoast,
 * We are seeing this issue in sites using gantry themes. Is that what your site
   is running?
 *  [3rdCoast](https://wordpress.org/support/users/3rdcoast/)
 * (@3rdcoast)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980335)
 * Hi, Alan.
 * Yes. This site does use a Gantry theme. I see you have sent us an email as well
   and I’ll be responding to your questions about the theme.
 * Thanks for your help as we figure this out.
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [11 years ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980340)
 * Here is a possible temporary fix. First, make a backup copy of maxgalleria-image-
   gallery.php in your plugins/maxgalleria folder. Then open maxgalleria-image-gallery.
   php in an editor and replace lines 636 & 637
 *     ```
       $resized = $image_editor->resize($width, $height, $crop);
       $new_image = $image_editor->save($resized_image_path);
       ```
   
 * with
 *     ```
       $resized = NULL;
       $new_image = array('width' => 0, 'height' => 0);
       ```
   
 * Thanks to Guy for reporting this.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘"undefined method WP_Error::resize()"’ is closed to new replies.

 * ![](https://ps.w.org/maxgalleria/assets/icon-128x128.jpg?rev=1225417)
 * [MaxGalleria](https://wordpress.org/plugins/maxgalleria/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/maxgalleria/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/maxgalleria/)
 * [Active Topics](https://wordpress.org/support/plugin/maxgalleria/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxgalleria/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxgalleria/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [AlanP57](https://wordpress.org/support/users/alanp57/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/undefined-method-wp_errorresize/#post-5980340)
 * Status: not resolved