I edited a page on my site to double its displayed size, and after I saved, I got the following error:

Recoverable fatal error: Argument 1 passed to image_resize() must be an instance of stdClass, boolean given, called in /var/www/html/drupal/sites/all/modules/image_resize_filter/image_resize_filter.module on line 499 and defined in image_resize() (line 279 of /var/www/html/drupal/includes/image.inc).

Print Screen of error

This error completely kills the page, preventing any viewing or editing of it or anything that uses its teaser, even though the page's teaser is defined not to use the modified image, all displaying this same error.

Update: By temporarily commenting out the error line, I was able to edit the image and resize it to what I had before, but now while the filter changes the URL of my image to the new one in the resize folder, the new image doesn't actually exist. Clicking on the image still works as a link to the original large image. My sites/default/files/resize folder is completely empty.

CommentFileSizeAuthor
Fatal Error.png12.48 KBderektom14
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelcollinsdc’s picture

+1. I traced it down to the image not being able to be loaded by gd for some reason. If this happens, image resize filter causes a fatal error instead of just passing the image through unresized.

fricike’s picture

+1, it occured to me while using ImageAPI Optimize (https://drupal.org/node/2114085)

fricike’s picture

Issue summary: View changes

Added Update

gooddesignusa’s picture

Issue summary: View changes

This is a temporary solution:
https://drupal.org/comment/8514863#comment-8514863

Another post that is somewhat related:
https://drupal.org/node/1933342