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).
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.
Comment | File | Size | Author |
---|---|---|---|
Fatal Error.png | 12.48 KB | derektom14 |
Comments
Comment #1
joelcollinsdc CreditAttribution: joelcollinsdc commented+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.
Comment #2
fricike CreditAttribution: fricike commented+1, it occured to me while using ImageAPI Optimize (https://drupal.org/node/2114085)
Comment #2.0
fricike CreditAttribution: fricike commentedAdded Update
Comment #3
gooddesignusa CreditAttribution: gooddesignusa commentedThis is a temporary solution:
https://drupal.org/comment/8514863#comment-8514863
Another post that is somewhat related:
https://drupal.org/node/1933342